[R] regression with covariate
Dylan Beaudette
dylan.beaudette at gmail.com
Thu Jun 18 20:14:23 CEST 2009
Hi,
take a look at the following manual pages:
?lm
?longley
In general, you would use Wilkinson-Rogers notation for linear models:
y ~ x + z, etc.
Some nice examples here:
http://data.princeton.edu/R/linearmodels.html
Cheers,
Dylan
On Thu, Jun 18, 2009 at 11:04 AM, Martin
Batholdy<batholdy at googlemail.com> wrote:
> hi,
>
> How can I compute a regression between x and y adding a covariate z?
>
> ______________________________________________
> 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.
>
More information about the R-help
mailing list