View source: R/fit_inla_model.R
fit_inla_model | R Documentation |
Fit an INLA model based on a constructed data stack and formula
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
)
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 |
( |
Using INLA::inla()
with reasonable defaults and settings tuned to predict
across a grid.
A fitted INLA model object created by INLA::inla()
MbgModelRunner
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.