powered by
Fit Variogram Sills to Data, using REML (only for direct variograms; not for cross variograms)
fit.variogram.reml(formula, locations, data, model, debug.level = 1, set, degree = 0)
an object of class "variogramModel"; see fit.variogram
formula defining the response vector and (possible) regressors; in case of absence of regressors, use e.g. z~1
z~1
spatial data locations; a formula with the coordinate variables in the right hand (dependent variable) side.
data frame where the names in formula and locations are to be found
variogram model to be fitted, output of vgm
vgm
debug level; set to 65 to see the iteration trace and log likelihood
additional options that can be set; use set=list(iter=100) to set the max. number of iterations to 100.
set=list(iter=100)
order of trend surface in the location, between 0 and 3
Edzer Pebesma
Christensen, R. Linear models for multivariate, Time Series, and Spatial Data, Springer, NY, 1991.
Kitanidis, P., Minimum-Variance Quadratic Estimation of Covariances of Regionalized Variables, Mathematical Geology 17 (2), 195--208, 1985
fit.variogram,
library(sp) data(meuse) fit.variogram.reml(log(zinc)~1, ~x+y, meuse, model = vgm(1, "Sph", 900,1))
Run the code above in your browser using DataLab