Skip to content
Prev 318577 / 398503 Next

Multiple left hand side variables in a formula


        
On Fri, Mar 1, 2013 at 8:02 PM, Frank Harrell <f.harrell at vanderbilt.edu> wrote:
It can handle 2 level factors

   lm(cbind(Sepal.Length, setosa = Species == "setosa") ~ ., iris)

and more with some manual effort:

   lm(cbind(virginica = Species == "virginica", setosa = Species ==
"setosa") ~ ., iris)

Typically you don't see more than that as a dependent variable.  Do
you actually need more?

--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com