ron-r
4/6/2014 - 2:47 PM

regression tree

regression tree


library(party)
fit2 <- ctree(TimeSpan ~ User_gameCnt + MaxLevel, data=tdata)
plot(fit2, main="Conditional Inference Tree for fit2")
f<-predict(fit2)
tdatafit2<-cbind(tdata,f)
fix(tdatafit2)