Skip to content
Prev 26921 / 29559 Next

logLik value of the spml spatial panel model

Hello,

Indeed the Loglik was not returned here by the function sarpanelerror
here. I have provided a patch (attached). It's an ugly one but better
than nothing. So instead of running spml you could run test..spml after
sourcing the file to obtain the fespaterr$logLik. 

fespaterr <- test..spml(fm, data = Produc, listw = mat2listw(usaww),
                   model="within", spatial.error="b", Hess = FALSE)


The only modification I've made is in the function test..(sperrorlm)
where I've added ll=LL in the list returned.


Hope it helps,

Jeremie




-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.R
Type: application/octet-stream
Size: 33277 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20181025/a28b6639/attachment.obj>

-------------- next part --------------