View source: R/convenience-functions.R
auto_gaussian | R Documentation |
create a family object for the auto-Gaussian CAR or SAR specification
auto_gaussian(type)
type |
Optional; either "CAR" for conditionally specified auto-model or "SAR" for the simultaneously specified auto-model. The type is added internally by |
An object of class family
stan_car
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.