Download Package `GSIF`

Transcript
fit.gstatModel-methods
21
fit.gstatModel-methods
Methods to fit a regression-kriging model
Description
Tries to automatically fit a 2D or 3D regression-kriging model for a given set of points (object of
type "SpatialPointsDataFrame" or "geosamples") and covariates (object of type "SpatialPixelsDataFrame").
It first fits a regression model (e.g. Generalized Linear Model, regression tree, random forest model
or similar) following the formulaString, then fits variogram for residuals usign the fit.variogram
method from the gstat package. Creates an output object of class gstatModel-class.
Usage
## S4 method for signature
## 'SpatialPointsDataFrame,formula,SpatialPixelsDataFrame'
fit.gstatModel(observations, formulaString, covariates,
method = list("GLM", "rpart", "randomForest", "quantregForest"),
dimensions = list("2D", "3D", "2D+T", "3D+T"),
fit.family = gaussian(), stepwise = TRUE, vgmFun = "Exp",
subsample = 5000, subsample.reg = 10000, ...)
## S4 method for signature 'geosamples,formula,SpatialPixelsDataFrame'
fit.gstatModel(observations, formulaString, covariates,
method = list("GLM", "rpart", "randomForest", "quantregForest"),
dimensions = list("2D", "3D", "2D+T", "3D+T"),
fit.family = gaussian(), stepwise = TRUE,
vgmFun = "Exp", subsample = 5000, subsample.reg = 10000, ...)
## S4 method for signature 'geosamples,formula,list'
fit.gstatModel(observations, formulaString, covariates,
method = list("GLM", "rpart", "randomForest", "quantregForest"),
dimensions = list("2D", "3D", "2D+T", "3D+T"),
fit.family = gaussian(), stepwise = TRUE,
vgmFun = "Exp", subsample = 5000, subsample.reg = 10000, ...)
## S4 method for signature 'geosamples,list,list'
fit.gstatModel(observations, formulaString, covariates,
method = list("GLM", "rpart", "randomForest", "quantregForest"),
dimensions = list("2D", "3D", "2D+T", "3D+T"),
fit.family = gaussian(), stepwise = TRUE,
vgmFun = "Exp", subsample = 5000, subsample.reg = 10000, ...)
Arguments
observations
object of type "SpatialPointsDataFrame" or "geosamples-class"
formulaString
object of type "formula" or a list of formulas
covariates
object of type "SpatialPixelsDataFrame", or list of grids