Skip to content

2 questions about likfit in geoR

1 message · Ruben Roa

#
--------------
Hi Lauren, 
First, you have to pass the argument Hessian=TRUE in likfit
Then to see the Hessian, you can use:
yourlikfitobject$info.minimisation.function
The Hessian will be the last item. By inverting the Hessian you will have the observed
covariance matrix. The observed variances will be in the main diagonal. In the Hessian the order
of parameters is as follows: phi, ratio of sigma^2 over tau^2, kappa, and lambda (the 
latter when you have included the Box-Cox parameter, recommended).
In my experience (always with lambda<>1) the parameter beta is underestimated. I have 
compared it with what you get after predictions (with mean(krige.object$predict); this should 
be similar to, though not identical with beta) and with the simple sample mean of the original data and 
beta has always been much smaller. I contacted the author of geoR (Paulo Ribeiro Jr) and he said that 
he would check the code. To get beta in the original units you have to back-transform it (assuming
lambda is <>1) usign the BCtransform function.
I hope this helps.
Ruben