Skip to content
Prev 15878 / 29559 Next

GLS/OLS

Dear List members,

after reading several old mail from R-sig-geo and checking the gstat  
manual there is still sth. confusion about the way how gstat  
calculates the Regressions.
On the on hand some mails, as the the following one, tell that GLS is  
used to estimate the Regressioncoefficients and the error:
http://mailman.geo.uu.nl/pipermail/gstat-info/2006q3/000091.html
No, the order gstat does in a single pass is 4, 5, 2, 3: you feed it
with a variogram, this variogram is used to obtain gls residuals instead
of ols. After 3, you could repeat this, but gstat has not an automated
looping mechanism for this (the interactive menu can be used for it, but
requires the user to do the iterations).

So does the gstat manual as it tells that there is the possibility of  
calculating only the regressioncoefficients by using
On the other hand there exists the command
and the manual reads as follows:

"By default, the residuals gstat uses are ordinary least squares residuals
(i.e. regular regression residuals), meaning that for the sake of estimating
the trend, observations are considered independent. To honour a dependence
structure present, generalised least squares residuals can be  
calculated instead.
For this, a variogram model to define the covariance structure is needed. In
the following example..."

which implicates that by default OLS is used.

So I am asking: What exactly occurs, when I use the predict.gstat command?
Is it possibly that, by default, the Trend is fitted by OLS and then  
the variogram if fitted by GLS? But why is there this BLUE=TRUE option  
for the predict.gstat command?



Any help would be appreciated.

Cheers!  Michael