impute_user_se | R Documentation |
If a user provides data where standard error (SE) columns have missing values, the
corresponding pre-calculated SE from UNPD data are used to impute the missing values.
The imputation of UNPD survey data is described at the bottom of this document in
the details section.
Imputation of (SE) variables is carried out annually with UNPD survey data fit_fp_csub
as [@Cahill et al 2017 (appendix page 16)]. The summary of this procedure is described
below.
There are two scenarios. Each scenario has a corresponding procedure.
For scenario 1, the imputation is carried out by calculating the maximum of known sampling errors across all other countries and setting the unknown sampling errors equal to the median of these maximums. For scenario 2 we impute the sampling errors by setting them equal to the maximum of the known sampling errors in that country.
impute_user_se(user_data, subnational, is_in_union)
user_data |
‘Data.frame’ Survey data such as |
subnational |
'‘Logical’ If TRUE runs the sub national model. |
is_in_union |
‘Character’ "Y" if women are in union. |
‘Data.frame’ Imputed survey data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.