[R] Linear Regression

livia yn19832 at msn.com
Fri Oct 5 15:11:56 CEST 2007


Thank you very much for your reply and I did not make myself clear. 
My model is like lm(y ~ x1+x2+x3,data), I would like to see E(y) and the
standard error.


Ben Bolker wrote:
> 
> 
> 
> livia wrote:
>> 
>> Hello,
>> 
>> I am performing a multiple linear regression, is there a way of get the
>> mean and standard error of the response variable?
>> 
>> Could anyone give me some advice? Many thanks.
>> 
> 
> You may need to give us more information/express your request more
> clearly.  Two
> answers I can think of (if your model is LM1 = lm(z~x+y)) are
> 
> mean(z)
> sd(z)/sqrt(length(z))
> 
> or
> 
> predict(LM1,se.fit=TRUE)
> 
>   Ben Bolker
> 

-- 
View this message in context: http://www.nabble.com/Linear-Regression-tf4574635.html#a13059177
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list