Description Usage Arguments Details Value Author(s) Examples
geolm creates a geostatistical linear model object
of the appropriate class based on the arguments,
especially the cmod arguments.
1 2 3 4 5 6 7 8 9 10 |
formula |
An object of class
|
data |
A data frame containing the response, covariates, and location coordinates. |
coordnames |
The columns of |
mod |
A model object produced by one
of the |
weights |
An optional vector of weights for the
errors to be used in the fitting process. A vector
that is proportional to the reciprocal variances of the
errors, i.e., errors are assumed to be uncorrelated
with variances |
mu |
A single numeric value indicating the consant
mean of the spatial process if simple kriging is
desired. Default is |
longlat |
A logical indicating whether Euclidean
( |
cmod |
Retained for backwards compatibility. A model object produced by one
of the |
Note: for the multiresolution Gaussian process model, if
cmod$est == "f" (i.e., if the nugget is finescale
instead of measurement error), then the weights
argument is internally set to rep(1, n), where
n is the number of observations.
formula should be specified after the form y
~ x1 + x2, where y is the response variable and
x1 and x2 are the covariates of interest.
If mu is provided, the variables to the right of
~ are ignored.
Returns a geolm_* object, where *
depends on mod.
Joshua French
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.