Skip to content
Prev 27478 / 29559 Next

Calculating impact measures for spatial panel models and trouble specifying SDEM model using spml

Dear Roger and all,

In the end I used lm() to estimate my non-spatial FE models in order to extract the log likelihood values (the results are exactly the same when using the plm() function.

I also used this method to estimate the SLX model. I just used the slag() function on each explanatory variable I wanted to have a spatial lag for, added it to my dataframe, and then estimated using lm() so that I can extract the log likelihood. I also managed to run my SDEM model with the spml() function without using slag() within the model.

I just have one question: in the splm package documentation, there should be an extractable logLik value when I build a model using the spml() function

However, when I do summary(spatial.SEM)$logLik, the result is NULL. When I do logLik(spatial.SEM), the error message is:

Error in UseMethod("logLik") :
no applicable method for 'logLik' applied to an object of class "splm"

Since spml() uses maximum likelihood estimation so why can't I extract the log likelihood value?

Any help would be greatly appreciated!

Best wishes,
Letisha
Message-ID: <KL1PR0601MB3863CCFF4397920B3B68F36EEEC00@KL1PR0601MB3863.apcprd06.prod.outlook.com>
In-Reply-To: <SG2PR06MB3870C9253EB325F2D420C36BEEC10@SG2PR06MB3870.apcprd06.prod.outlook.com>