
Dear R users,

I have problem with bagging survial tree after finding the final tree.

f<-rpart(Surv(time ,dead )~ x1 +x2+ x3+x4+x5+x6, data=crp)
f.prun<-prune(f,cp=0.036701) 
# final tree i have 3 endnote including 
#the variable x3 and x4

how can i use the bagging code i use 
like this but it did not work
bagging(f_cp, nbagg=25, data=crp) 
library(ipred)
sbundle <- list(list(model = coxph, predict = predict))
errorest(Surv(time ,dead )~x1 +x2+ x3+x4+x5+x6, data=crp, model = bagging, nbagg = 100, 
            comb = sbundle, control = rpart.control(minsplit = 2, xval = 0, cp = 0.03670131 ))

 

Thanks very much

Paaveen
 		 	   		  
_________________________________________________________________
Take your contacts everywhere

	[[alternative HTML version deleted]]

