[R] multiple linear regression

Peter Ehlers
Fri, 21 Aug 2009 12:57:07 -0000

Ronggui Huang wrote:
> pls use lm(y ~ x1+x2)

and perhaps have a look at chapter 11 in the Introduction to R
manual which you will probably find right there already on your
computer.

Peter Ehlers

>
> 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.
>>
>>
>
>
>