nimble (version 0.7.0)

carBounds: Calculate bounds for the autocorrelation parameter of the dcar_proper distribution

Description

Calculate the lower and upper bounds for the gamma parameter of the dcar_proper distribution

Usage

carBounds(C, adj, num, M)

Arguments

C

vector of the same length as adj, giving the normalized weights associated with each pair of neighboring locations.

adj

vector of indices of the adjacent locations (neighbors) of each spatial location. This is a sparse representation of the full adjacency matrix.

num

vector giving the number of neighboring locations of each spatial location, with length equal to the number of locations.

M

vector giving the diagonal elements of the conditional variance matrix, with length equal to the number of locations.

Value

A numeric vector containing the bounds (minimum and maximum allowable values) for the gamma parameter of the dcar_proper distribution.

Details

Bounds for gamma are the inverse of the minimum and maximum eigenvalues of: \(M^(-0.5) C M^(0.5)\). The lower and upper bounds are returned in a numeric vector.

See Also

CAR-Proper, carMinBound, carMaxBound