Re: [R] Random Forest (fwd)

From: Torsten Hothorn <Torsten.Hothorn_at_stat.uni-muenchen.de>
Date: Sat, 07 Jun 2008 14:22:25 +0200 (CEST)

> Hello
>
> Is there exists a package for multivariate random forest, namely for
> multivariate response data ? It seems to be impossible with the
> "randomForest" function and I did not find any information about this
> in the help pages ...

party:::cforest can do, here is an example:

y <- matrix(rnorm(100), nc = 2)
x <- matrix(runif(50 * 5), nc = 5)
dat <- data.frame(y = y, x = x)

cf <- cforest(y.1 + y.2 ~ ., data = dat) predict(cf)

gives

> predict(cf)

                y.1          y.2
  [1,] -0.300622618  0.318143745

  [2,] -0.270218355 0.331261683
  [3,] -0.330129113 0.308545082
...

Best wishes,

Torsten

> Thank you for your help
>
> Bertrand
>
> ______________________________________________
> 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.
>
>



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 Sat 07 Jun 2008 - 12:57:54 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 Sat 07 Jun 2008 - 13:30:38 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