[R] multiple linear regression
Ronggui Huang
ronggui.huang at gmail.com
Fri Aug 21 11:09:25 CEST 2009
pls use lm(y ~ x1+x2)
2009/8/21 Inchallah Yarab <inchallahyarab at yahoo.fr>:
> Good morning,
>
> I want to make a linear regression of a variable fuction of two variables y = a1 x1 + a2 x2 + c
>
> I found the function lm (y ~ x) but it used for a simple linear regression, but for multiple regression i do not know which function do this!!
>
> Can you help me please!!
>
> Thank you in advance
>
>
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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.
>
>
--
HUANG Ronggui, Wincent
PhD Candidate
Dept of Public and Social Administration
City University of Hong Kong
Home page: http://asrr.r-forge.r-project.org/rghuang.html
More information about the R-help
mailing list