Description Usage Arguments Value
Fit a Spatio-Temporal Linear Mixed Model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | stlmm(data, formula, ...)
## S3 method for class 'data.frame'
stlmm(
data,
formula,
xcoord,
ycoord = NULL,
tcoord,
stcov,
estmethod = "reml",
s_cor = "exponential",
t_cor = "exponential",
chol = FALSE,
condition = 1e-04,
logdet = FALSE,
weights = "cressie",
initial = NULL,
optim_options = NULL,
h_options = NULL,
max_options = NULL,
stempsv_options = NULL,
...
)
|
data |
A data object containing all necessary variables. |
formula |
A formula of the form |
... |
Additonal arguments. |
xcoord |
A character vector specifying the column name of the x-coordinate
variable in |
ycoord |
A character vector specifying the column name of the y-coordinate
variable in |
tcoord |
A character vector specifying the column name of the t-coordinate (time)
variable in |
stcov |
The spatio-temporal covariance type
|
estmethod |
The estimation method
|
s_cor |
The spatial correlation
|
t_cor |
The temporal correlation
|
chol |
Should the Cholesky decomposition be used? If |
condition |
A small number added to the diagonals of matrices before
inverting them to prevent ill-conditioning (defaults to |
logdet |
Should the log determinant be returned? (defaults to |
weights |
Weights when |
initial |
Initial values for the parameters. Must be made with
|
optim_options |
A list containing additional options to pass to optim. |
h_options |
A list containing options to compute distances if
|
max_options |
A list containing additonal options for placing upper bounds on the total variance, spatial range, and temporal range. This can be helpful for numerical stability in optimization.
|
stempsv_options |
A list containing additional options for the empirical spatio-temporal semivariogram. Named arguments are
|
A list containing several objects
CovarianceParameters
Estimated covariance parameters.
Coefficients
Fixed effect estimates.
NamesCoefficients
Names of the fixed effect estimates.
CovCoefficients
The covariance matrix of the fixed effect estimates.
Objective
A list containing optimization information.
CovarianceForms
The spatial, temopral, and spatio-temporal correlation forms.
formula
The model formula.
model
A list containing the fixed effect design matrix and response vector.
data_object
An ordered data object.
invert_object
An inverse object.
coord_names
The names of the coordinate vectors.
coords
The coordinate vectors.
h_options
Returning the h_options
argument.
stempsv_options
Returning the stempsv_options
argument.
stempsv
The empirical spatio-temporal semivariogram (if estmethod = "svwls"
)
optim_options
Returning the stempsv_options
argument.
max_options
Returning the max_options
argument.
chol
Returning the chol
argument.
condition
Returning the condition
argument.
residuals
Raw residuals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.