Skip to content
Prev 43409 / 398506 Next

a question regarding leaps

Dear Rajarshi,
At 06:43 PM 1/29/2004 -0500, Rajarshi Guha wrote:
It's hard to know exactly from your description what the source of the 
problem is, but I'd guess that it's due to missing data: That is, the 
models fit by regsubsets() likely removed observations that were present 
when you fit the model by lm(). If this is the case, then you could make 
the two results consistent by filtering the missing data before using lm().

I hope that this helps,
  John

-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox