[R] an object of class lm returned by lm?

Spencer Graves spencer.graves at pdf.com
Sun Nov 16 02:04:35 CET 2003

      I haven't used "lm.LMtest", but I can make a guess:  Have you 
tried the following: 

         mdl <- lm(y~a+b, data=...)
        lm.LMtests(mdl, ...)

      hope this  helps.  spencer graves

Jill Caviglia-Harris 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
>row-standardised (W-style) 
>Any help is welcomed.  Thanks.
>Jill L. Caviglia-Harris, Ph.D.
>Assistant Professor
>Economics and Finance Department
>Salisbury University
>Salisbury, MD 21801-6860
>   phone: (410) 548-5591
>   fax: (410) 546-6208
>R-help at stat.math.ethz.ch mailing list

More information about the R-help mailing list