Fit Integrated MVN Small Area Estimation model using tmbstan.
fik_tmbstan.RdRandom effects have a multivariate Gaussian distribution with covariance
matrix calculated using integrated_covariance.
Usage
fik_tmbstan(
sf,
nsim_warm = 100,
nsim_iter = 1000,
chains = 4,
cores = parallel::detectCores(),
L = 10,
type = "hexagonal",
kernel = matern,
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_itersamples, passed torstan.- cores
Number of cores, passed to
rstan, defaults toparallel::detectCores().- L
The number of Monte Carlo samples to draw from each area.
- type
The
typeargument ofsf::st_sample, defaults to"hexagonal"- kernel
A kernel function, defaults to
matern.- ii
The (zero-indexed) indices of the observations held-out.
- ...
Additional arguments to
kernel.