View source: R/prepare_survey_data.R
prepare_survey_data | R Documentation |
Prepare survey data required to run the circumcision model. Can also optionally apply normalise_weights_kish, to normalise survey weights and apply Kish coefficients.
prepare_survey_data(
areas,
survey_circumcision,
survey_individuals = NULL,
survey_clusters = NULL,
area_lev,
start_year = 2006,
cens_year = NULL,
cens_age = 59,
rm_missing_type = FALSE,
norm_kisk_weights = TRUE,
strata.norm = c("survey_id", "area_id"),
strata.kish = c("survey_id")
)
areas |
|
survey_circumcision |
|
survey_individuals |
|
survey_clusters |
|
area_lev |
|
start_year |
|
cens_year |
|
cens_age |
|
rm_missing_type |
|
norm_kisk_weights |
|
strata.norm |
Stratification variables for normalising survey weights, Default: c("survey_id", "area_id") |
strata.kish |
Stratification variables for estimating and applying the Kish coefficients, Default: "survey_id" |
Survey data with required variables to run circumcision model.
normalise_weights_kish
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.