Skip to content
Prev 16128 / 29559 Next

Please help to solve error of spml model in SPLM of R

On Tue, 25 Sep 2012, gum hwang wrote:

            
Try:

lm(fm.2, data = mega.data, na.action=na.fail)

and see if you get the same error. It looks as though there are different 
numbers of observations on some variables. Also always run traceback() 
after any error you do not understand, to see the calling sequence of 
functions. Here model.frame.default() was the failing function, which is 
also called in lm(), hence my suggestion. It is also possible that you 
have multiple objects called Census, say both in the global environment 
and in mega.data.

Hope this clarifies,

Roger