Package: SurveyNCD 0.1.0
SurveyNCD: Tools for Self-Reported Health Indicators in Complex Surveys
Provides tools for analysing population health survey data (WHO STEPS, DHS, MICS, and similar complex sample surveys), where chronic conditions are self-reported rather than ICD-coded and estimates must account for stratification, clustering, and sampling weights. Includes a self-reported multimorbidity index based on the Functional Comorbidity Index (Groll et al., 2005, <doi:10.1016/j.jclinepi.2004.10.018>), design-weighted population prevalence estimation via the 'survey' package, a survey-weighted concentration index for health inequality analysis, a DHS anthropometric z-score categoriser, a choropleth mapping helper, and exploratory survey-weighted gradient boosting (via 'xgboost') with SHAP-based explainability. The gradient boosting component applies case weights but does not yet propagate cluster and strata design effects into variance estimates; it should be treated as exploratory rather than as design-based inference.
Authors:
SurveyNCD_0.1.0.tar.gz
SurveyNCD_0.1.0.zip(r-4.7-any)SurveyNCD_0.1.0.zip(r-4.6-any)SurveyNCD_0.1.0.zip(r-4.5-any)
SurveyNCD_0.1.0.tgz(r-4.6-any)SurveyNCD_0.1.0.tgz(r-4.5-any)
SurveyNCD_0.1.0.tar.gz(r-4.7-any)SurveyNCD_0.1.0.tar.gz(r-4.6-any)
SurveyNCD_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
SurveyNCD/json (API)
| # Install 'SurveyNCD' in R: |
| install.packages('SurveyNCD', repos = c('https://stataid-research-lab.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/stataid-research-lab/surveyncd/issues
biostatisticsdhsepidemiologyncdpublic-healthr-programmingsurveywho-steps
Last updated from:94fd241551. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 156 | ||
| source / vignettes | OK | 310 | ||
| linux-release | OK | 154 | ||
| macos-release | OK | 150 | ||
| macos-oldrel | OK | 126 | ||
| windows-devel | OK | 119 | ||
| windows-release | OK | 99 | ||
| windows-oldrel | OK | 123 | ||
| wasm-release | OK | 138 |
Exports:%>%fci_itemsmm_prevalencemultimorbidity_indexplot_shap_summaryrecode_binarysurvey_concentration_indexsurvey_map_indicatorsurvey_shapsurvey_xgboostwho_anthro_score
Dependencies:clicpp11DBIdplyrfarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMatrixminqamitoolsnumDerivpillarpkgconfigpurrrR6RColorBrewerRcppRcppArmadillorlangS7scalesstringistringrsurveysurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr
Last update: 2026-07-04
Started: 2026-06-21
Last update: 2026-07-04
Started: 2026-06-21
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| The 18 conditions of the Functional Comorbidity Index | fci_items |
| Population-level multimorbidity estimates from complex survey data | mm_prevalence |
| Calculate a self-reported multimorbidity index | multimorbidity_index |
| Plot SHAP Summary | plot_shap_summary |
| Recode a messy survey column into clean 0/1 | recode_binary |
| Calculate Survey-Weighted Concentration Index | survey_concentration_index |
| Map Survey Indicators Universally | survey_map_indicator |
| Extract SHAP Values from a Survey-Weighted XGBoost Model | survey_shap |
| Train an XGBoost Model with Complex Survey Weights | survey_xgboost |
| Calculate WHO Anthropometric Categories from DHS/MICS Data | who_anthro_score |
