nimble (version 0.7.0)

carMaxBound: Calculate the upper bound for the autocorrelation parameter of the dcar_proper distribution

Description

Calculate the upper bound for the gamma parameter of the dcar_proper distribution

Usage

carMaxBound(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

The upper bound (maximum allowable value) 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)\).

See Also

CAR-Proper, carMinBound, carBounds