Re: [R-sig-Geo] spml and logLik, help!

2012-11-15 Thread Ariel Ortiz-Bobea
After some digging, I realized the problem is that the log-likelihood is simply not exported by one of the internal functions (splm:::sperrorlm). To fix this simply modify that function. After loading splm type: fixInNamespace(sperrorlm, splm) And manually add ll=LL as an element to the return

[R-sig-Geo] spml and logLik, help!

2012-11-04 Thread Ariel Ortiz-Bobea
Hello, I would greatly appreciate some help on this. Any tips are more than welcome. I'm trying to obtain the log-likelihood at the optimum parameter values using spml() from the splm package. The created fit object contains a slot called logLik which is supposed to have that value but I find it