threemc_ppc2 | R Documentation |
Aggregate specified numeric
columns by population-weighted
age groups (rather than single year ages), split by specified categories.
Using an alternative method to previously.
threemc_ppc2(
fit,
out,
survey_circumcision_test,
areas = NULL,
area_lev = 1,
age_groups = c("0-4", "5-9", "10-14", "15-19", "20-24", "25-29", "30-34", "35-39",
"40-44", "45-49", "50-54", "54-59"),
N = 1000,
seed = 123
)
fit |
Fit object returned by |
out |
Results of model fitting (at specified model |
survey_circumcision_test |
|
areas |
|
area_lev |
Area level you wish to aggregate to when performing posterior predictive comparisons with survey estimates. |
age_groups |
Age groups to aggregate by, Default: c("0-4", "5-9", "10-14", "15-19", "20-24", "25-29", "30-34", "35-39", "40-44", "45-49", "50-54", "54-59") |
N |
Number of samples to generate, Default: 1000 |
seed |
Random seed used for taking binomial sample from posterior predictive distribution. |
type |
Decides type of circumcision coverage to perform PPC on, must be one of "MC", "MMC", or "TMC", Default = "MMC" |
CI_range |
CI interval about which you want to compare empirical and posterior predictive estimates for left out surveys, Default = c(0.5, 0.8, 0.95) |
data.frame
with samples aggregated by aggr_cols
and
weighted by population.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.