Learn R Programming

spatial.gev.bma (version 1.0)

gev.init: Initilizes a state object for a Spatial GEV distribution

Description

This utility function just initializes the state object that is then passed around during the course of an MCMC for a hierarchical spatial GEV distribution. It starts the object in a nice spot and fills in the relevant items.

Usage

gev.init(Y.list, X.all, S, prior.user, full, fixed.xi)

Arguments

Y.list
The list of Y values

X.all
The matrix of covariates

S
The matrix of spatial locations

prior.user
The user-specified prior parameters, if there are any

full
A boolean indicating if BMA is to be performed

fixed.xi
An indication if the parameter xi is to be estimated (NULL) or set to a given value.

Value

This returns a state object that is then used for the MCMC by the main updating routines.