[R] Two dependent variables in formula
Gavin Simpson
gavin.simpson at ucl.ac.uk
Wed Jan 9 15:54:38 CET 2008
On Wed, 2008-01-09 at 13:57 +0000, 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?
Try one or both the packages mvpart or party. mvpart replaces all of
rpart when you load it and provides handling for multivariate responses.
party provides an alternative implementation based on conditional
inference trees.
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list