FitModel | R Documentation |
Fit a model with INLA
FitModel(..., formula = NULL, CovNames = NULL, mesh, spat.ind = "i", predictions = FALSE, tag.pred = "pred", control.fixed = NULL, waic = FALSE, dic = FALSE)
... |
Data stacks. |
formula |
If not |
CovNames |
Names of covariates to use. If |
mesh |
INLA mesh. |
spat.ind |
Index for spatial mesh. Defaults to |
predictions |
Boolean: should predictions (on the linear scale) be made? Defaults to |
tag.pred |
Name of tag for predictions. Defaults to "pred". |
control.fixed |
List of arguments to be passed to INLA via control.fixed (e.g. parameters of priors of fixed effects). Default is |
waic |
Should wAIC be calculated? Defaults to |
dic |
Should DIC be calculated? Defaults to |
If predictions is TRUE
, a list with
- model: an object of class INLA, with the results of the analysis in them.
. predictions: Posterior means and standard deviationsfor linear predictor for predictions. Note that
If predictions is FALSE, just the model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.