getINLAParameters: Extracting parameters from INLA MBG models

Description Usage Arguments Value

Description

Given a fitted inla object for a spatial or spatio-temporal geostatistical model, extract model parameters either from the maximum a posterior parameter set, or as samples from the predictive posterior.

Usage

1
getINLAParameters(inla, method = c("sample", "MAP"), n = 1)

Arguments

inla

a fitted inla object with fixed effects terms and a spatial or spatio-temporal random effect model. If method = "sample" then inla must have been fitted with the argument control.compute = list(config=TRUE).

method

whether to draw n samples from the predict posterior (if method = "sample", the default) or to make predictions at the maximum a posteriori estimates of the model parameters (if method = "MAP"). If method = "sample" then inla must have been fitted with the argument control.compute = list(config=TRUE).

n

if method = "sample", the number of samples to draw from the predictive posterior.

Value

An object of class params, being a list with three elements:


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