Re: [R] rpart: how to assign observations to nodes in regression trees

2009-12-01 Thread Terry Therneau
help('rpart.object') will give you information on the return value from rpart. I think you want the 'where' portion. For new data help('predict.rpart') gives the predicted results. Terry T -- Hi, I am building a regression tree (method=anova) by using rp

[R] rpart: how to assign observations to nodes in regression trees

2009-11-30 Thread Diego Bellisai
Hi, I am building a regression tree (method=anova) by using rpart package and as a final result I get the final leaves characterized by different means and standard deviations for the dependent variable. However, differently from the classification tree for categorical variables I cannot find a way

[R] rpart: how to assign observations to nodes in regression trees

2009-11-30 Thread Diego Bellisai
Hi, I am building a regression tree (method=anova) by using rpart package and as a final result I get the final leaves characterized by different means and standard deviations for the dependent variable. However, differently from the classification tree for categorical variables I cannot find a way

[R] rpart: how to assign observations to nodes in regression trees

2009-11-30 Thread Diego Bellisai
Hi, I am building a regression tree (method=anova) by using rpart package and as a final result I get the final leaves characterized by different means and standard deviations for the dependent variable. However, differently from the classification tree for categorical variables I cannot find a way