Fit BYM2 Small Area Estimation model using tmbstan
.
bym2_tmbstan.Rd
Fit BYM2 Small Area Estimation model using tmbstan
.
Usage
bym2_tmbstan(
sf,
nsim_warm = 100,
nsim_iter = 1000,
chains = 4,
cores = parallel::detectCores(),
ii = NULL
)
Arguments
- sf
A simple features object with some geometry.
- nsim_warm
Number of warmup samples, passed to
rstan
.- nsim_iter
Number of samples, passed to
rstan
.- chains
Number of chains, each of which gets
nsim_warm + nsim_iter
samples, passed torstan
.- cores
Number of cores, passed to
rstan
, defaults toparallel::detectCores()
.- ii
The (zero-indexed) indices of the observations held-out.