Description Usage Arguments Value
For a given set of parameters and new dataset, get the predicted values of the linear predictor form the fixed and spatial random effects.
1 2 | predictAll(draw, params, mesh, coords, data, fixed_subset = NULL,
fixed = TRUE, spatial = TRUE)
|
draw |
which parameter set to use |
params |
an object of class |
mesh |
the |
coords |
a two-column dataframe with the coordinates to evaluate the spatial random effect at. |
data |
a dataframe with all the columns referred to in |
fixed_subset |
an optional character vector giving a subset of covariates to include in the fixed effects prediction. |
fixed |
whether to include fixed effects terms in the predictor |
spatial |
whether to include spatial terms in the predictor |
a vector of the same length as the number of rows in coords
and data
, giving the corresponding values of the spatial linear
predictor (both from the fixed and reandom effects)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.