- y
Numeric vector of area-level direct estimates for the matrix
interface. If the first argument is a formula, it is treated as formula.
- x, X
Numeric matrix or data frame of area-level covariates for the
matrix interface. Rows must correspond to entries of y. Include an
intercept column if one is desired.
- sampling_variance
Numeric vector of known sampling variances for y.
With the formula interface, this may also be an unquoted column name from
data or a length-one character string naming a column in data.
- formula
Optional model formula such as y ~ x1 + x2. The formula
interface requires data.
- data
Optional data frame containing variables used by formula and,
optionally, sampling_variance.
- prior_beta_variance
Positive scalar prior variance for the regression
coefficients.
- prior_shape
Non-negative scalar shape parameter for the inverse-gamma
prior on the random-effect variance.
- prior_rate
Non-negative scalar rate parameter for the inverse-gamma
prior on the random-effect variance.
- n_iter
Positive integer number of MCMC iterations.
- burn_in
Positive integer number of initial MCMC iterations to discard.
- scale
Logical; if TRUE, center and scale non-intercept covariates
before fitting. Intercept columns named (Intercept), Intercept, or
intercept are not scaled.
- progress
Logical; if TRUE, display a progress bar.