Simulate ACS estimates from published estimates and MOEs.
Usage
acs_simulate(
estimates,
moes,
cov = NULL,
n_sims = 1000,
dist = c("normal", "censored_normal"),
conf = 0.9
)Arguments
- estimates
Numeric estimates.
- moes
Numeric MOEs corresponding to
estimates.- cov
Optional covariance matrix on the standard-error scale.
- n_sims
Number of Monte Carlo simulations.
- dist
Distribution assumption:
"normal"or"censored_normal". The censored variant replaces below-zero draws with zero, matching the convention used in Napierala & Denton (2017) for ACS counts.- conf
Confidence level associated with input MOEs.