mc_car: Conditional Auto regressive Model Structure

View source: R/mc_car.R

mc_carR Documentation

Conditional Auto regressive Model Structure

Description

The function mc_car helps to build the components of the matrix linear predictor used for fitting conditional auto regressive models. This function is used in general for fitting spatial areal data using the well known conditional auto regressive models (CAR). This function depends on a list of neighbors, such a list can be constructed, for example using the tri2nb function from the spdep package based on spatial coordinates. This way to specify the matrix linear predictor can also be applied for spatial continuous data, as an approximation.

Usage

mc_car(list_neigh, intrinsic = FALSE)

Arguments

list_neigh

list of neighbors.

intrinsic

logical.

Value

A list of a matrix (intrinsic = TRUE) or two matrices (intrinsic = FALSE).

Author(s)

Wagner Hugo Bonat, wbonat@ufpr.br

Source

Bonat, W. H. (2018). Multiple Response Variables Regression Models in R: The mcglm Package. Journal of Statistical Software, 84(4):1–30.

See Also

mc_id, mc_compute_rho, mc_conditional_test, mc_dist, mc_ma, mc_rw
and mc_mixed.


mcglm documentation built on Sept. 16, 2022, 1:06 a.m.