sepGMRFpredict {lgc}R Documentation

Prediction for GMRF with separable covariance structure on d-dim lattice.

Description

Calculates conditional expectations for GMRF with separable covariance structure on d-dim lattice. Is highly efficient utilizing both sparseness and separability.

Usage

  sepGMRFpredict(Qlist, a, simulate = FALSE,
    trace = !simulate)

Arguments

Qlist

List of precision matrices acting in each of the length(dim(a)) dimensions.

a

Array repesenting the lattice with NAs where no observation is available.

simulate

Return a conditional sample instead of just predicting?

trace

Trace the applied lattice expansions.

Value

Updated array a with NAs replaced by predictions (or conditional simulations).


[Package lgc version 1.4 Index]