[R] Two dependent variables in formula
Alberto Murta
amurta at ipimar.pt
Wed Jan 9 15:40:29 CET 2008
On Wednesday 09 January 2008 1:57 pm, Carla Rebelo wrote:
> Hello,
>
> I' m trying to change the formula in the rpart function. The
> format of a general formula is Answer ~ expression, where Answer is
> the dependent variable and expression is set of terms containing the
> independent variables and separated by operators. I want the response
> of the formula is more than one dependent variable. It is possible?
>
> ______________________________________________
> 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.
You should take a look at package 'mvpart':
http://cran.r-project.org/src/contrib/Descriptions/mvpart.html
--
Alberto G. Murta
IPIMAR - National Institute of Fisheries and Marine Research
Avenida de Brasilia s/n; 1449-006 - Lisboa; Portugal
Tel: +351 213027000; Fax: +351 21 3015948; email: amurta at ipimar.pt
More information about the R-help
mailing list