[R] lm() function to get coefficients doesn`t work

Jonathan Baron baron at cattell.psych.upenn.edu
Mon Jun 17 01:46:49 CEST 2002


On 06/17/02 00:36, Frithjof Weinert wrote:
> Hi,
>
>to get the residuals and coefficients I did the following:

>lm(index ~ bmw + mru + rwe + vow + kar + sie + bas,
>data=kurse)

Try

lm1 <- lm(index ~ bmw + mru + rwe + vow + kar + sie + bas,data=kurse)
summary(lm1)
residuals(lm1)

which you should be able to find with
help(lm)

-- 
Jonathan Baron, Professor of Psychology, University of Pennsylvania
R page:               http://finzi.psych.upenn.edu/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list