Constructs a conditional autoregressive spatial random effect from an
adjacency matrix. With proper = FALSE (the default) this is the
improper CAR / ICAR (type = "car"); with proper = TRUE it returns
the same object as spatial_car_proper().
Arguments
- adjacency
Symmetric adjacency matrix (
[n_units x n_units]).- level
Either
"group"(one effect per level ofgroup_var) or"obs"(one effect per row of the data;nrow(data)must equalnrow(adjacency)).- group_var
Name of the grouping variable in the data; required when
level = "group".- proper
If
TRUE, use proper CAR (type = "car_proper"); else ICAR (type = "car").Optional shared-effect handle (see model docs).
- parameterization
"standard"(default) or"collapsed"(deprecated).