fit_inla_model {mbg} | R Documentation |
Fit INLA model
Description
Fit an INLA model based on a constructed data stack and formula
Usage
fit_inla_model(
formula,
data_stack,
spde,
samplesize_vec = 1,
precision_vec = 1,
family = "binomial",
link = "logit",
fixed_effects_pc_prior = list(threshold = 3, prob_above = 0.05),
verbose = TRUE
)
Arguments
formula |
(character) INLA formula to fit. Generated in
|
data_stack |
Stacked data, covariates, and spatial index. Generated in
|
spde |
SPDE object generated by |
samplesize_vec |
( |
precision_vec |
( |
family |
(character, default 'binomial') GLM family to use. For more information,
see |
link |
(character, default 'logit') Link function to use, typically related to the
GLM |
fixed_effects_pc_prior |
A named list specifying the penalized complexity prior for all fixed effects except for the intercept. The two named items are "threshold", the test threshold for the size of each fixed effect, and "prob_above", the prior probability that the beta for each covariate will EXCEED that threshold. |
verbose |
( |
Details
Using INLA::inla()
with reasonable defaults and settings tuned to predict
across a grid.
Value
A fitted INLA model object created by INLA::inla()