Learn R Programming

BayesBrainMap (version 0.1.3)

compute_R_inv: Compute SPDE and prior precision matrices for S

Description

Compute SPDE matrices (F, G and GFinvG) and prior precision matrix for S

Usage

compute_R_inv(meshes, kappa, C1 = 1/(4 * pi), rm_extra = FALSE)

Value

A list containing R inverse and SPDE matrices

Arguments

meshes

NULL for spatial independence model, otherwise a list of objects of class "BrainMap_mesh" containing the triangular mesh (see make_mesh) for each brain structure.

kappa

Current estimates of SPDE parameter kappa for each latent field

C1

Constant, equal to \(1/(4*pi)\) for a 2-dimensional field with alpha=2

rm_extra

If TRUE. remove extra (non-data) vertices from the mesh for greater computational efficiency