predictSpatial: Predict the Spatial Random Effect Part of an INLA MBG Model

Description Usage Arguments Value

Description

For a given set of paramters and new set of coordinates, get the component of the linear predictor corresponding to the spatial random effect, by linear interpolation.

Usage

1
predictSpatial(params, coords, mesh, draw = 1, time = NULL, n_time = NULL)

Arguments

params

an object of class params produced by getINLAParameters.

coords

a two-column dataframe with the coordinates to evaluate the spatial random effect at.

mesh

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

draw

which parameter set to use

time

if a space-time model, the index to the discrete time variable for which spatial predictions are to be made in this round.

n_time

if a space-time model, the length of the discrete time variable used in the model.

Value

a vector of the same length as the number of rows in coords, giving the corresponding values of the spatial linear predictor


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