predictAll: Predict the Linear Predictor of an INLA MBG Model

Description Usage Arguments Value

Description

For a given set of parameters and new dataset, get the predicted values of the linear predictor form the fixed and spatial random effects.

Usage

1
2
predictAll(draw, params, mesh, coords, data, fixed_subset = NULL,
  fixed = TRUE, spatial = TRUE)

Arguments

draw

which parameter set to use

params

an object of class params produced by getINLAParameters.

mesh

the inla.mesh object used to construct the spatial random effect.

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 params.

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

Value

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)


SEEG-Oxford/seegMBG documentation built on May 9, 2019, 11:08 a.m.