{
  "_id": "6acd73e1a14063b82c3abb95",
  "Package": "SurveyNCD",
  "Title": "Survey-Weighted Analysis of Self-Reported Health Indicators",
  "Version": "0.2.0",
  "Authors@R": "c(person(\"Sujon\", \"Mia\", email = \"sujonsgc@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0009-0001-1032-2818\")),\nperson(\"Md. Atiqul\", \"Islam\", email = \"atique@stat.jnu.ac.bd\",\nrole = \"ctb\",\ncomment = \"Professor & Academic Mentor, Department of Statistics\"))",
  "Description": "Design-based analysis of population health survey data\nfrom the World Health Organization (WHO) Stepwise Approach to\nNon-Communicable Disease (NCD) Risk Factor Surveillance\n(STEPS), Demographic and Health Surveys (DHS), Multiple\nIndicator Cluster Surveys (MICS) and similar complex sample\nsurveys, where chronic conditions are self-reported rather than\ncoded with the International Classification of Diseases (ICD).\nProvides survey design constructors for DHS, MICS and STEPS\nmicrodata; design-based prevalence for any binary indicators\nand groupings; a self-reported multimorbidity count based on\nthe Functional Comorbidity Index (FCI) of Groll et al. (2005)\n<doi:10.1016/j.jclinepi.2004.10.018>, with condition-pattern\nanalysis, sensitivity bounds for missing answers, and direct\nage standardisation to the WHO World Standard Population;\nstandard, generalized, Erreygers and Wagstaff concentration\nindices with design-based standard errors following Kakwani,\nWagstaff and van Doorslaer (1997)\n<doi:10.1016/S0304-4076(96)01807-6> and O'Donnell et al. (2016)\n<doi:10.1177/1536867X1601600112>, concentration curves, and\nslope and relative indices of inequality; categorisation of\nDHS-coded child growth z-scores; publication-ready tables and\nplots. Simulated example data with a known population are\nincluded. Experimental helpers for choropleth maps and\ncase-weighted gradient boosting with SHapley Additive\nexPlanations (SHAP) are also provided.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/StatAid-Research-Lab/SurveyNCD",
  "BugReports": "https://github.com/StatAid-Research-Lab/SurveyNCD/issues",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "7.3.1",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://stataid-research-lab.r-universe.dev",
  "Date/Publication": "2026-10-12 18:07:15 UTC",
  "RemoteUrl": "https://github.com/stataid-research-lab/surveyncd",
  "RemoteRef": "HEAD",
  "RemoteSha": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-12 23:23:26 UTC",
    "User": "root"
  },
  "Author": "Sujon Mia [aut, cre] (ORCID: <https://orcid.org/0009-0001-1032-2818>),\nMd. Atiqul Islam [ctb] (Professor & Academic Mentor, Department of\nStatistics)",
  "Maintainer": "Sujon Mia <sujonsgc@gmail.com>",
  "_user": "stataid-research-lab",
  "_type": "src",
  "_file": "SurveyNCD_0.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/294cdbd4489ce2f942581059cbd6557fbfb3cd875b2723d503d12d53fa348c69",
  "_filesize": 815222,
  "_sha256": "294cdbd4489ce2f942581059cbd6557fbfb3cd875b2723d503d12d53fa348c69",
  "_expires": "2027-01-20T23:57:19.000Z",
  "_created": "2026-10-12T23:23:26.000Z",
  "_published": "2026-10-12T23:57:20.962Z",
  "_buildurl": "https://github.com/r-universe/stataid-research-lab/actions/runs/38321433683",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115051707738,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11778868429"
    },
    {
      "job": 115051706833,
      "time": 133,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11779600288"
    },
    {
      "job": 115051706942,
      "time": 144,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11780032230"
    },
    {
      "job": 115051706858,
      "time": 109,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11779874566"
    },
    {
      "job": 115050529130,
      "time": 203,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11779048063"
    },
    {
      "job": 115051706893,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11779465494"
    },
    {
      "job": 115051706868,
      "time": 85,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11779370653"
    },
    {
      "job": 115051706880,
      "time": 121,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11779179525"
    },
    {
      "job": 115051706963,
      "time": 113,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11778919869"
    }
  ],
  "_upstream": "https://github.com/stataid-research-lab/surveyncd",
  "_commit": {
    "id": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
    "author": "Sujon Mia <sujonsgc@gmail.com>",
    "committer": "Sujon Mia <sujonsgc@gmail.com>",
    "message": "docs: update cran-comments for 0.2.0 changes\n",
    "time": 1791828435
  },
  "_maintainer": {
    "name": "Sujon Mia",
    "email": "sujonsgc@gmail.com",
    "login": "sujon-stat",
    "linkedin": "in/ sujon-mia-123072319",
    "orcid": "0009-0001-1032-2818",
    "description": "Statistics Undergraduate | Aspiring Data Scientist & ML Researcher | Exploring Explainable AI in Healthcare",
    "uuid": 199617996
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "survey",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "sf",
      "role": "Suggests"
    },
    {
      "package": "srvyr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "xgboost",
      "role": "Suggests"
    }
  ],
  "_owner": "stataid-research-lab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-25",
      "n": 2
    },
    {
      "week": "2026-26",
      "n": 8
    },
    {
      "week": "2026-27",
      "n": 2
    },
    {
      "week": "2026-37",
      "n": 3
    },
    {
      "week": "2026-38",
      "n": 2
    },
    {
      "week": "2026-41",
      "n": 3
    },
    {
      "week": "2026-42",
      "n": 3
    }
  ],
  "_tags": [],
  "_topics": [
    "biostatistics",
    "dhs",
    "epidemiology",
    "ncd",
    "public-health",
    "survey",
    "who-steps"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "sujon-stat",
      "count": 29,
      "uuid": 199617996
    }
  ],
  "_userbio": {
    "uuid": 295106009,
    "type": "organization",
    "name": "Jagannath University",
    "followers": 1
  },
  "_downloads": {
    "count": 236,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SurveyNCD"
  },
  "_devurl": "https://github.com/stataid-research-lab/surveyncd",
  "_searchresults": 8,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/SurveyNCD.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/stataid-research-lab/surveyncd",
  "_realowner": "stataid-research-lab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-09-28"
    }
  ],
  "_exports": [
    "%>%",
    "dhs_design",
    "fci_items",
    "mics_design",
    "mm_bounds",
    "mm_patterns",
    "mm_prevalence",
    "mm_standardize",
    "multimorbidity_index",
    "ncd_table",
    "plot_shap_summary",
    "recode_binary",
    "steps_design",
    "survey_concentration_curve",
    "survey_concentration_index",
    "survey_map_indicator",
    "survey_prevalence",
    "survey_shap",
    "survey_slope_index",
    "survey_xgboost",
    "who_anthro_score",
    "who_standard_population"
  ],
  "_datasets": [
    {
      "name": "child_anthro",
      "title": "Simulated child anthropometry (DHS-style)",
      "object": "child_anthro",
      "class": [
        "data.frame"
      ],
      "fields": [
        "child_id",
        "hh_id",
        "region",
        "residence",
        "stratum",
        "psu",
        "wt",
        "sex",
        "age_months",
        "wealth_score",
        "wealth_quintile",
        "hw70",
        "hw71",
        "hw72"
      ],
      "rows": 1034,
      "table": true,
      "tojson": true
    },
    {
      "name": "ncd_survey",
      "title": "Simulated adult NCD survey (STEPS-style)",
      "object": "ncd_survey",
      "class": [
        "data.frame"
      ],
      "fields": [
        "hh_id",
        "region",
        "residence",
        "stratum",
        "psu",
        "wt",
        "sex",
        "age",
        "wealth_score",
        "wealth_quintile",
        "bmi",
        "htn_raw",
        "dm_raw",
        "arth_raw",
        "asthma_raw",
        "angina_raw",
        "stroke_raw",
        "dep_raw"
      ],
      "rows": 2400,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "autoplot.surveyncd",
      "title": "Plot SurveyNCD results with ggplot2",
      "topics": [
        "autoplot.surveyncd",
        "autoplot.surveyncd_ci",
        "autoplot.surveyncd_curve",
        "autoplot.surveyncd_mm_prevalence",
        "autoplot.surveyncd_patterns",
        "autoplot.surveyncd_prevalence"
      ]
    },
    {
      "page": "child_anthro",
      "title": "Simulated child anthropometry (DHS-style)",
      "topics": [
        "child_anthro"
      ]
    },
    {
      "page": "design_helpers",
      "title": "Build a survey design from DHS, MICS or STEPS microdata",
      "topics": [
        "design_helpers",
        "dhs_design",
        "mics_design",
        "steps_design"
      ]
    },
    {
      "page": "fci_items",
      "title": "The 18 conditions of the Functional Comorbidity Index",
      "topics": [
        "fci_items"
      ]
    },
    {
      "page": "mm_bounds",
      "title": "Sensitivity of multimorbidity prevalence to \"don't know\" answers",
      "topics": [
        "mm_bounds"
      ]
    },
    {
      "page": "mm_patterns",
      "title": "Most common combinations of conditions (multimorbidity patterns)",
      "topics": [
        "mm_patterns"
      ]
    },
    {
      "page": "mm_prevalence",
      "title": "Population-level multimorbidity estimates from complex survey data",
      "topics": [
        "mm_prevalence"
      ]
    },
    {
      "page": "mm_standardize",
      "title": "Age-standardised prevalence from a survey design",
      "topics": [
        "mm_standardize"
      ]
    },
    {
      "page": "multimorbidity_index",
      "title": "Calculate a self-reported multimorbidity index",
      "topics": [
        "multimorbidity_index"
      ]
    },
    {
      "page": "ncd_survey",
      "title": "Simulated adult NCD survey (STEPS-style)",
      "topics": [
        "ncd_survey"
      ]
    },
    {
      "page": "ncd_table",
      "title": "Publication-ready prevalence table",
      "topics": [
        "ncd_table"
      ]
    },
    {
      "page": "plot_shap_summary",
      "title": "Plot SHapley Additive exPlanations (SHAP) Summary",
      "topics": [
        "plot_shap_summary"
      ]
    },
    {
      "page": "recode_binary",
      "title": "Recode a messy survey column into clean 0/1",
      "topics": [
        "recode_binary"
      ]
    },
    {
      "page": "survey_concentration_curve",
      "title": "Concentration curve from a survey design",
      "topics": [
        "survey_concentration_curve"
      ]
    },
    {
      "page": "survey_concentration_index",
      "title": "Survey-weighted concentration index",
      "topics": [
        "survey_concentration_index"
      ]
    },
    {
      "page": "survey_map_indicator",
      "title": "Map Survey Indicators Universally",
      "topics": [
        "survey_map_indicator"
      ]
    },
    {
      "page": "survey_prevalence",
      "title": "Design-based prevalence of one or more binary indicators",
      "topics": [
        "survey_prevalence"
      ]
    },
    {
      "page": "survey_shap",
      "title": "Extract SHAP Values from a Survey-Weighted XGBoost Model",
      "topics": [
        "survey_shap"
      ]
    },
    {
      "page": "survey_slope_index",
      "title": "Slope and relative index of inequality from a survey design",
      "topics": [
        "survey_slope_index"
      ]
    },
    {
      "page": "survey_xgboost",
      "title": "Train an XGBoost Model with Complex Survey Weights",
      "topics": [
        "survey_xgboost"
      ]
    },
    {
      "page": "who_anthro_score",
      "title": "Calculate WHO Anthropometric Categories from DHS/MICS Data",
      "topics": [
        "who_anthro_score"
      ]
    },
    {
      "page": "who_standard_population",
      "title": "WHO World Standard Population",
      "topics": [
        "who_standard_population"
      ]
    }
  ],
  "_readme": "https://github.com/stataid-research-lab/surveyncd/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "DBI",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "minqa",
    "mitools",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "survey",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "full-workflow.Rmd",
      "filename": "full-workflow.html",
      "title": "A complete analysis with SurveyNCD",
      "author": "Sujon Mia - StatAid Research Lab",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Clean raw answers and score respondents",
        "2. Build the survey design once",
        "3. Prevalence",
        "Age standardisation",
        "Which conditions occur together?",
        "How much could \"don't know\" answers matter?",
        "4. Socioeconomic inequality",
        "5. Child undernutrition from DHS-coded z-scores",
        "6. Experimental: mapping and machine learning",
        "How the example data were made"
      ],
      "created": "2026-10-10 06:56:31",
      "modified": "2026-10-10 06:56:31",
      "commits": 1
    },
    {
      "source": "calculating-health-inequality.Rmd",
      "filename": "calculating-health-inequality.html",
      "title": "Calculating Health Inequality in Complex Surveys",
      "author": "Sujon Mia - StatAid Research Lab",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Setup and Package Loading",
        "Phase 1: Cleaning Anthropometric Data",
        "Phase 2: Specifying the Complex Survey Design",
        "Phase 3: Calculating the Concentration Index",
        "Interpretation"
      ],
      "created": "2026-06-21 14:41:11",
      "modified": "2026-07-04 15:55:03",
      "commits": 2
    },
    {
      "source": "mapping-survey-indicators.Rmd",
      "filename": "mapping-survey-indicators.html",
      "title": "Geospatial Mapping of Health Inequalities",
      "author": "Sujon Mia - StatAid Research Lab",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Setup and Package Loading",
        "The Universal Mapping Workflow",
        "1. Preparing the Data",
        "2. Generating the Spatial Plot",
        "Interpretation"
      ],
      "created": "2026-06-21 14:41:11",
      "modified": "2026-07-04 15:55:03",
      "commits": 2
    },
    {
      "source": "real-data-nhanes.Rmd",
      "filename": "real-data-nhanes.html",
      "title": "Real data: high cholesterol in NHANES 2009-2010",
      "author": "Sujon Mia - StatAid Research Lab",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Prevalence with design-based confidence intervals",
        "Age-standardised comparisons"
      ],
      "created": "2026-10-10 06:56:31",
      "modified": "2026-10-10 06:56:31",
      "commits": 1
    }
  ],
  "_score": 5.146128035678238,
  "_indexed": true,
  "_nocasepkg": "surveyncd",
  "_universes": [
    "stataid-research-lab",
    "sujon-stat"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-10-12T23:25:48.000Z",
      "distro": "resolute",
      "commit": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
      "fileid": "https://r2.ropensci.org/7062ca02839a566faec5168027b951b5502f87c3e1d8a67361971e1070a4ee01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stataid-research-lab/actions/runs/38321433683"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-10-12T23:25:29.000Z",
      "distro": "resolute",
      "commit": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
      "fileid": "https://r2.ropensci.org/229fa5c43ed88e5c96bad2476933e4bc2db0fd0c21ccbffd22c882513ccfb978",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stataid-research-lab/actions/runs/38321433683"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-10-12T23:56:10.000Z",
      "commit": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
      "fileid": "https://r2.ropensci.org/989b05b53f16db320121ab7dc30d95d9dc81ae5f4b73ff71d55ccf6cdfb950a4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stataid-research-lab/actions/runs/38321433683"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-10-12T23:55:47.000Z",
      "commit": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
      "fileid": "https://r2.ropensci.org/7ca35f63ad7ffc5df2ba4dd0881b4e88cb5cfba4f95e7bcc4e3bf45c1ba9ce5e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stataid-research-lab/actions/runs/38321433683"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-10-12T23:25:38.000Z",
      "commit": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
      "fileid": "https://r2.ropensci.org/6aa0c020149a07f96d014a9d178dc2eb99dec429a07b40f8a91b1f1a8e1dcb15",
      "status": "success",
      "buildurl": "https://github.com/r-universe/stataid-research-lab/actions/runs/38321433683"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-10-12T23:24:32.000Z",
      "commit": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
      "fileid": "https://r2.ropensci.org/05587de6590c575c551d66e80bcdc610f067a53179d529fd2cd99957d89777e4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stataid-research-lab/actions/runs/38321433683"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-10-12T23:24:43.000Z",
      "commit": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
      "fileid": "https://r2.ropensci.org/38fade63f050d9915f2f34deb1d61fe6405f42c0d91f515b7957326997f9062d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stataid-research-lab/actions/runs/38321433683"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-10-12T23:24:52.000Z",
      "commit": "1a9ed12c496ebaf593430109d6fe6c23c4a21c33",
      "fileid": "https://r2.ropensci.org/ddf1a86a4cd68705de1d8310f491348283c3749b4f525e4dfe3b04405ef64a2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stataid-research-lab/actions/runs/38321433683"
    }
  ]
}