Re: [R] More digits in prediction using random forest object

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Wed, 12 Mar 2008 12:55:53 -0400

How many trees are you growing in the forest? If you grow a 100-tree forest, the possible predictions (for a two-class data) would simply be

{0, 0.01, 0.02, ..., 0.99, 1}

Then, of course, if you only grow three trees, the predictions can only be

{0, 1/3, 2/3, 1}

You can ask for as many digits as R can give you, but it won't do you any good.

Andy

From: Nagu
>
> I need to get more digits in predicting a test sample with a random
> forests object. Format or options(digits=) do nothing. Any ideas?
>
> Thank you,
> Nagu
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
>



Notice: This e-mail message, together with any attachme...{{dropped:15}}

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 12 Mar 2008 - 17:13:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 12 Mar 2008 - 17:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive