make_mesh_2D {templateICAr}R Documentation

Make 2D INLA mesh

Description

Create INLA mesh and observation weight matrix based on a binary brain mask

Usage

make_mesh_2D(mask)

Arguments

mask

Brain mask (matrix of 0 and 1 or TRUE and FALSE).

Details

This function requires the INLA package, which is not a CRAN package. See https://www.r-inla.org/download-install for easy installation instructions.

Value

List containing INLA mesh, observation weight matrix A for translating between mesh locations and original data locations, the brain mask used to create the mesh, and the number of original and mesh data locations.


[Package templateICAr version 0.6.4 Index]