mc_car: Conditional Autoregressive Model Structure

Description Usage Arguments Value Author(s) Source See Also

View source: R/mc_car.R

Description

The function mc_car helps to build the components of the matrix linear predictor used for fitting conditional autoregressive models. This function is used in general for fitting spatial areal data using the well known conditional autoregressive models (CAR). This function depends on a list of neighboors, 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

1
mc_car(list_neigh, intrinsic = FALSE)

Arguments

list_neigh

list of neighboors.

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.


wbonat/mcglm documentation built on June 23, 2020, 11:06 a.m.