[R] Novice question

Mike Mascari mascarm at mascari.com
Mon Aug 4 19:15:46 CEST 2003


Prof Brian Ripley wrote:

> Could you try to use a sensible subject line, and a description of your 
> problem?  We are left guessing what you really meant.

Sorry.

> If you want to regress xm on ys, you need
> 
> lm(xm ~ ys)
> 
> You seem to have a single y and two x's, in which case this is not
> `multivariate linear regression' and you want
> 
> lm(ys ~ xs1 + xs2)

Yes. That's it. Thanks!

Mike Mascari




More information about the R-help mailing list