[R] rpart query
Smith, Phil
pzs6 at cdc.gov
Tue Feb 26 21:35:26 CET 2002
Hi R users:
I'm an old S user and have just discovered R. I'm having trouble getting
rpart() to grow a tree like tree() does in S. I've checked closely: tree()
in S grows my tree using the call:
tree(putd4313 ~ incpov1+racekid+sex+agegrp+m.agegrp , data = dat ,
subset=set )
but
rpart( putd4313 ~ incpov1+racekid+sex+agegrp+m.agegrp , data = dat ,
subset=set , method='anova' )
in R does not.
Would you kindly suggest what I'm doing wrong in R?
Thanks,
Phil Smith
CDC
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list