Generates small area estimates by smoothing direct estimates using an area level model
smoothArea(
formula,
domain,
design = NULL,
responseType = c("gaussian", "binary")[1],
Amat = NULL,
direct.est = NULL,
X.area = NULL,
domain.size = NULL,
pc.u = 1,
pc.alpha = 0.01,
pc.u.phi = 0.5,
pc.alpha.phi = 2/3,
CI = 0.95,
n.sample = 250,
var.tol = 1e-10
)
A list with elements
direct estimates
fitted INLA object for iid domain effects model
non-spatial smoothed estimates
fitted INLA object for spatial domain effects model
spatially smoothed estimates (if adjacency matrix provided)
an object of class 'formula' describing the model to be fitted. If direct.est is specified, the right hand side of the formula is not necessary.
formula specifying variable containing domain labels
an object of class "svydesign" containing the data for the model
of the response variable, currently supports 'binary' (default with logit link function) or 'gaussian'.
adjacency matrix for the regions. If set to NULL, the IID spatial effect will be used.
data frame of direct estimates, with first column containing domain, second column containing direct estimate, and third column containing variance of direct estimate.
areal covariates data frame. One of the column names needs to match 'domain', in order to be linked to the data input. Currently only supporting time-invariant domain-level covariates.
domain size data frame. One of the column names needs to match 'domain' in order to be linked to the data input and there must be a size column containing domain sizes.
hyperparameter U for the PC prior on precisions.
hyperparameter alpha for the PC prior on precisions.
hyperparameter U for the PC prior on the mixture probability phi in BYM2 model.
hyperparameter alpha for the PC prior on the mixture probability phi in BYM2 model.
the desired posterior credible interval to calculate
number of draws from posterior used to compute summaries
tolerance parameter; if variance of an area's direct estimator is below this value, that direct estimator is dropped from model