next up previous
Next: If/else syntax issues Up: R, S, and Splus Previous: QQ plot confidence intervals

Regressing multiple outcomes on the same explanatory variables

Create a matrix of the outcomes, Y, with one column per outcome, and then just use the formula syntax, YX.

Keywords: regression, lm, linear model.

Last modified 12/20/09.

Chris Paciorek 2012-01-21