RE: [R] rpart and TREE, can be the same?

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Sat 17 Jul 2004 - 04:01:06 EST


I guess if you define the splitting criterion in rpart so that it matches the one used in tree(), that's possible. However, I believe the two also differ in how they handle NAs.

Andy

> From: WWei@mdanderson.org
>
> Hi, all,
>
> I am wondering if it is possible to set parameters of 'rpart'
> and 'tree'
> such that they will produce the exact same tree? Thanks.
>
> Auston Wei
> Statistical Analyst
> Department of Biostatistics and Applied Mathematics
> The University of Texas MD Anderson Cancer Center
> Tel: 713-563-4281
> Email: wwei@mdanderson.org
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 17 04:12:27 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:03 EST