icar.Q: Creates the inverse covariance matrix for an intrinsic...

View source: R/icar.Q.R

icar.QR Documentation

Creates the inverse covariance matrix for an intrinsic conditionally autoregressive spatial model.

Description

This function creates the ICAR precision matrices used in the spatial models

Usage

icar.Q(xy, threshold, rho = 1, fun = FALSE)

Arguments

xy

An n x 2 matrix of spatial coordinates

threshold

Distance threshold for neighborhood definition

rho

The autoregressive parameter. Defaults to 1, which is the Intrinsic Conditionally AutoRegressive model (ICAR)

fun

If TRUE this function returns a function of rho that generates the precision matrix of a ICAR process

Details

Constructs the inverse covariance matrix (aside from scaling) for the ICAR model

Value

An n x n matrix

Author(s)

Devin S. Johnson <devin.johnson@noaa.gov>


dsjohnson/stocc documentation built on Oct. 12, 2022, 2:20 a.m.