我使用party
包河獲取統計信息節點從迴歸樹在從所得的樹的各個節點黨pagckage
我想獲得各種統計數據(平均值,中值等),但我看不到如何做到這一點。例如,
airq <- subset(airquality, !is.na(Ozone))
airct <- ctree(Ozone ~ ., data = airq,
controls = ctree_control(maxsurrogate = 3))
airct
plot(airct)
產生具有4個終端節點的樹。我將如何獲得每個節點的平均空氣質量?
想要顯示每個節點的矢量嗎? – agstudy