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. ______________________________________________ R-help@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.