[R] an object of class lm returned by lm?
dmurdoch at pair.com
Sun Nov 16 02:00:36 CET 2003
On Sat, 15 Nov 2003 19:41:29 -0500, you wrote:
>Can someone tell me what an object of class lm returned by lm means? I
>assumed it mean the regression model - but I'm not sure how to enter
>this in. I have tried
>but this is not working. I have also tried saving the regression
>results and entering these, but again this is incorrect.
>This language is from the following:
>lm.LMtests(model, listw, zero.policy=FALSE, test="LMerr", spChk=NULL)
>model - an object of class lm returned by lm
>listw - a listw object created for example by nb2listw, expected to be
>Any help is welcomed. Thanks.
Most functions in R return objects. The description of "model" is
referring to the object returned by the lm() function. For example,
fit <- lm(y~a+b)
Then "fit" would be a suitable value to pass as the model.
More information about the R-help