rspde_lme {rSPDE} | R Documentation |
rSPDE linear mixed effects models
Description
Fitting linear mixed effects model with latent Whittle-Matern models.
Usage
rspde_lme(
formula,
loc,
data,
model = NULL,
repl = NULL,
which_repl = NULL,
optim_method = "L-BFGS-B",
use_data_from_graph = TRUE,
starting_values_latent = NULL,
start_sigma_e = NULL,
start_alpha = NULL,
alpha = NULL,
start_nu = NULL,
nu = NULL,
nu_upper_bound = 4,
rspde_order = NULL,
parallel = FALSE,
n_cores = parallel::detectCores() - 1,
optim_controls = list(),
improve_hessian = FALSE,
hessian_args = list()
)
Arguments
formula |
Formula object describing the relation between the response variables and the fixed effects. If the response variable is a matrix, each column of the matrix will be treated as a replicate. |
loc |
A vector with the names of the columns in |
data |
A |
model |
Either an object generated by |
repl |
Vector indicating the replicate of each observation. If |
which_repl |
Which replicates to use? If |
optim_method |
The method to be used with |
use_data_from_graph |
Logical. Only for models generated from graphs from |
starting_values_latent |
A vector containing the starting values for the latent model. If the latent model was generated by |
start_sigma_e |
Starting value for the standard deviation of the measurament error. |
start_alpha |
Starting value for the smoothness parameter. Will be used if |
alpha |
If |
start_nu |
Starting value for the smoothness parameter. |
nu |
If |
nu_upper_bound |
A parameter that limits the maximum value that nu can assume. |
rspde_order |
The order of the rational approximation to be used while fitting the model. If not given, the order from the model object will be used. |
parallel |
logical. Indicating whether to use optimParallel or not. |
n_cores |
Number of cores to be used if parallel is true. |
optim_controls |
Additional controls to be passed to |
improve_hessian |
Should a more precise estimate of the hessian be obtained? Turning on might increase the overall time. |
hessian_args |
List of controls to be used if |
Value
A list containing the fitted model.