Skip to content
Prev 26919 / 29559 Next

logLik value of the spml spatial panel model

Danlin Yu <yud at mail.montclair.edu> writes:


Hello,

Could you post the exact command you have used with all the relevant
options? If you dug into the code then you've noticed quite a lot of
nested control structures so a clear idea of your commands might be
useful here.

for instance

    fm <- logc ~ logp+ logpn + logy
    sarpool <-  suppressWarnings(splm::spml(fm,cigar,
                                            listw=lwcig,
                                            model="pooling",
    spatial.error="none",lag=TRUE,index=c("region","time")))

Will produce the logLik
    sarpool$logLik
called so a likelihood value is always produced although not always
returned.


Best regards,

Jeremie