Learn R Programming

geostan (version 0.8.1)

auto_gaussian: Auto-Gaussian family for CAR models

Description

create a family object for the auto-Gaussian CAR or SAR specification

Usage

auto_gaussian(type)

Value

An object of class family

Arguments

type

Optional; either "CAR" for conditionally specified auto-model or "SAR" for the simultaneously specified auto-model. The type is added internally by stan_car or stan_sar when needed.

See Also

stan_car

Examples

Run this code
cp = prep_car_data(shape2mat(georgia))
fit <- stan_car(log(rate.male) ~ 1,
                data = georgia,
                car_parts = cp,
                family = auto_gaussian(),
                chains = 2, iter = 700) # for speed only
print(fit)

Run the code above in your browser using DataLab