knitr::opts_chunk$set(echo = TRUE)
This vignette covers package data. Central to all vignettes are data inputs in the form of, country classifications, estimated correlations, estimated national and subnational model parameters for one-country runs, and national and subnational family planning source data.
national_FPsource_data
and subnat_FPsource_data
Country_and_area_classification_inclFP2020
country_names
national_estimated_correlations_logitnormal
subnational_estimated_correlations
national_theta_rms_hat_logitnormal
, national_tau_alpha_cms_hat_logitnormal
, and national_sigma_delta_hat_logitnormal
, subnational_alpha_cms_hat
, subnational_tau_alpha_pms_hat
, and subnational_inv.sigma_delta_hat
.library(mcmsupply)
These are are two family planning commodity source datasets provided in this package - one for the national level observations, national_FPsource_data
and one for the subnational level data subnat_FPsource_data
. For the national level data, there is a vignette calculate_FPsource_national_data_from_DHSmicrodata
in the inst/data-raw
folder that explains how the national level data was calculated using the DHS micro-data. A similar approach was used for the subnational data using IPUMS data.
head(national_FPsource_data)
head(subnat_FPsource_data)
Country and area classification data is used as the a link between low-level divisions (country) and higher-level divisions (sub-regions, regions). After loading the package, enter Country and area classification
into the console to access this data.
Country_and_area_classification
??Country_and_area_classification
Country names is to inform users of what countries are available at the national and subnational administrative division in the preloaded data of the mcmsupply package. After loading the package, enter country_names
into the console to access this data.
country_names
??country_names
This is the estimated correlations for the rates of change between methods in the global national model. The approach for estimating correlations at the national level is very similar to that at the subnational level. For an example of how to calculate the subnational correlations, please review the inst/data-raw/estimated_global_subnational_correlations.R
script.
mcmsupply::national_estimated_correlations_bivarlogitnormal
This is the estimated correlations for the rates of change between methods in the global national model. There is a vignette to describe how we calculated these correlations at the subnational level, please review the inst/data-raw/estimated_global_subnational_correlations.R
script.
subnational_estimated_correlations
These are the estimated parameters used in a one-country national model run. national_theta_rms_hat_logitnormal
are the regional intercepts used to inform the country-specific intercept of the model, the national_tau_alpha_cms_hat_logitnormal
are the associated variance with these country-specific intercepts. national_sigma_delta_hat_logitnormal
is the variance-covariance matrix used to inform the multivariate normal prior describing the first-order differences of the spline coefficients ($\delta_{k}$).
national_theta_rms_hat_bivarlogitnorm
national_tau_alpha_cms_hat_bivarlogitnorm
national_inv_sigma_delta_hat_bivarlogitnorm
These are the estimated parameters used in a one-country subnational model run. subnational_alpha_cms_hat
are the country-specific intercepts used to inform the subnational province-specific intercepts of the model, the subnational_tau_alpha_pms_hat
are the associated variance with these province-specific intercepts. subnational_inv.sigma_delta_hat
is a precision of the variance-covariance matrix used to inform the multi-variate normal prior on first-order differences of the spline coefficients for the one-country subnational model.
subnational_alpha_cms_hat
subnational_tau_alpha_pms_hat
subnational_inv.sigma_delta_hat
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.