# Data dictionary

What the ids and column names in the Countdown apps' data mean -- the six denominator options, how column names are built, the target populations, indicators and reporting rates.

<!-- Generated from cd2030.core 1.4.5 (cd_dictionary()) by inst/scripts/export-data-dictionary.R. Edit the dictionary in cd2030.core, not this page. -->

# Data dictionary

The apps' data names things with short ids -- an indicator (`penta1`), a denominator option (`anc1derived`), a target population (`totinftpenta`) -- combined into column names such as `cov_penta3_penta1derived`. This page says what each part means. Read the meaning here rather than from the spelling: **`anc1` and `penta1` are the ANC1-derived and Penta1-derived denominators, while `anc1derived` and `penta1derived` are the population-growth options.**

Generated from cd2030.core 1.4.5. In R, `cd2030.core::cd_dictionary()` returns these tables and `cd2030.core::cd_describe_columns()` reads column names with them.

## Denominators

The six denominator options ([Denominator assessment and selection](https://datasuite.damurka.com/en/methodology/denominators.md)).

| Id | Label | What it is | Levels |
| --- | --- | --- | --- |
| `un` | UN projections | The UN estimates of live births and population (UN projections). National only. | national |
| `dhis2` | DHIS2 projections | The population projections in DHIS2 (live births, total population, under-1s). | national, adminlevel_1, district |
| `anc1` | ANC1-derived | Derived each year from that year's reported ANC1 visits and the survey's ANC1 coverage: pregnancies = ANC1 / ANC1 survey coverage, then deliveries, births and infants from them. | national, adminlevel_1, district |
| `penta1` | Penta1-derived | Derived each year from that year's reported Penta1 doses and the survey's Penta1 coverage: infants = Penta1 / Penta1 survey coverage, then births, deliveries and pregnancies from them. | national, adminlevel_1, district |
| `anc1derived` | ANC1 population growth | The ANC1-derived value of the survey year, carried to the other years with the population growth rate of the chosen population (not re-derived from each year's ANC1). | national, adminlevel_1, district |
| `penta1derived` | Penta1 population growth | The Penta1-derived value of the survey year, carried to the other years with the population growth rate of the chosen population (not re-derived from each year's Penta1). | national, adminlevel_1, district |

## How column names are built

| Pattern | Meaning | Example |
| --- | --- | --- |
| `<indicator>` | The number of services or events reported for the indicator (a count). | `penta1` |
| `cov_<indicator>_<denominator>` | Coverage of the indicator (%) with that denominator option. | `cov_penta3_penta1derived` |
| `<population>_<denominator>` | The target population (thousands) as estimated by that denominator option. | `totinftpenta_penta1` |
| `<population>_<denominator>derived` | The same population carried from the survey year with population growth (the population-growth options). | `totinftpenta_penta1derived` |
| `r_<indicator>` | The indicator's coverage in the survey (%). | `r_penta1` |
| `ul_<indicator>` | The upper bound of the survey estimate's confidence interval (%). | `ul_penta1` |
| `ll_<indicator>` | The lower bound of the survey estimate's confidence interval (%). | `ll_penta1` |
| `<group>_rr` | Reporting rate of that service group (% of expected reports received). | `vacc_rr` |
| `nat_<name>` | The national value of &lt;name&gt; (intermediate). | `nat_pop` |
| `admin1_<name>` | The first-administrative-level value of &lt;name&gt; (intermediate). | `admin1_pop` |
| `<name>_survey` | &lt;name&gt; in the survey year. | `penta1_survey` |

## Target populations

In thousands: coverage = 100 x count / (population x 1000).

| Id | Label | What it is |
| --- | --- | --- |
| `totpreg` | Pregnancies | Expected pregnancies: the denominator of the antenatal care indicators. |
| `totdeliv` | Deliveries | Expected deliveries: the denominator of institutional deliveries and caesarean sections. |
| `totbirths` | Total births | Expected births, live and stillborn (DHIS2 denominator of BCG, live births, low birth weight, PNC). |
| `totlbirths` | Live births | Expected live births (ANC1- and Penta1-derived denominator of BCG, live births, low birth weight, PNC). |
| `totlivebirths` | Live births | Live births in the DHIS2 projections (the base of the DHIS2 denominators). |
| `totinftpenta` | Infants eligible for Penta | Infants surviving the neonatal period: the denominator of Penta, PCV, rotavirus, IPV, OPV, zero-dose, under-vaccinated and the Penta dropouts. |
| `totinftmeasles` | Infants eligible for Measles 1 | Infants surviving to the age of Measles 1: the denominator of Measles 1 and its dropouts. |
| `totmeasles2` | Children eligible for Measles 2 | Children surviving to the age of Measles 2: the denominator of Measles 2. |
| `totpop` | Total population | Total population in the DHIS2 projections. |
| `totunder1` | Children under 1 | Children under 1 in the DHIS2 projections. |

## Indicators

An indicator's id is also the column of its monthly count; `computed` indicators are calculated from the counts.

| Id | Label | Group | Reported or computed |
| --- | --- | --- | --- |
| `anc1` | ANC 1 | anc | reported |
| `anc_1trimester` | ANC 1st Trimester | anc | reported |
| `anc4` | ANC 4 Visits | anc | reported |
| `ipt2` | IPT 2nd Dose | anc | reported |
| `ipt3` | IPT 3rd Dose | anc | reported |
| `syphilis_test` | Syphilis Test | anc | reported |
| `ifa90` | IFA 90+ Days | anc | reported |
| `hiv_test` | HIV Test | anc | reported |
| `sba` | Skilled Birth Attendance | idelv | reported |
| `ideliv` | Institutional Deliveries | idelv | reported |
| `instlivebirths` | Institutional Live Births | idelv | reported |
| `csection` | Caesarean Sections | idelv | reported |
| `low_bweight` | Low Birth Weight | idelv | reported |
| `pnc48h` | PNC within 48 hours | idelv | reported |
| `total_stillbirth` | Total Stillbirths | idelv | reported |
| `stillbirth_f` | Fresh Stillbirths | idelv | reported |
| `stillbirth_m` | Macerated Stillbirths | idelv | reported |
| `maternal_deaths` | Maternal Deaths | idelv | reported |
| `neonatal_deaths` | Neonatal Deaths | idelv | reported |
| `penta1` | Pentavalent 1 | vacc | reported |
| `penta2` | Pentavalent 2 | vacc | reported |
| `penta3` | Pentavalent 3 | vacc | reported |
| `measles1` | Measles 1 | vacc | reported |
| `measles2` | Measles 2 | vacc | reported |
| `measles3` | MCV 3 |  | reported |
| `bcg` | BCG | vacc | reported |
| `ipv1` | IPV 1 | vacc | reported |
| `ipv2` | IPV 2 | vacc | reported |
| `opv1` | OPV 1 | vacc | reported |
| `opv2` | OPV 2 | vacc | reported |
| `opv3` | OPV 3 | vacc | reported |
| `pcv1` | PCV 1 | vacc | reported |
| `pcv2` | PCV 2 | vacc | reported |
| `pcv3` | PCV 3 | vacc | reported |
| `rota1` | Rotavirus 1 | vacc | reported |
| `rota2` | Rotavirus 2 | vacc | reported |
| `opd_total` | OPD Total (Outpatient) | opd | reported |
| `opd_under5` | OPD Under 5 Years | opd | reported |
| `ipd_total` | IPD Total (Inpatient) | ipd | reported |
| `ipd_under5` | IPD Under 5 Years | ipd | reported |
| `zerodose` | Zero-dose | vacc | computed |
| `undervax` | Under-vaccinated | vacc | computed |
| `dropout_penta13` | Penta 1 to Penta 3 Dropout | vacc | computed |
| `dropout_penta1mcv1` | Penta 1 to Measles 1 Dropout | vacc | computed |
| `dropout_penta3mcv1` | Penta 3 to Measles 1 Dropout | vacc | computed |
| `dropout_measles12` | Measles 1 to Measles 2 Dropout | vacc | computed |
| `instdeliveries` | Institutional Live Births per Delivery |  | reported |

## Reporting rates

| Id | Meaning |
| --- | --- |
| `anc_rr` | Reporting rate, antenatal care (% of expected reports received). |
| `idelv_rr` | Reporting rate, institutional deliveries (% of expected reports received). |
| `vacc_rr` | Reporting rate, vaccination (% of expected reports received). |
| `opd_rr` | Reporting rate, outpatient (% of expected reports received). |
| `ipd_rr` | Reporting rate, inpatient (% of expected reports received). |
| `mean_rr` | Reporting rate, all services (mean) (% of expected reports received). |

## Other columns

| Column | Meaning |
| --- | --- |
| `country` | The country. |
| `iso3` | The country's ISO3 code. |
| `adminlevel_1` | The first administrative level (region, province). |
| `district` | The district. |
| `year` | The year. |
| `month` | The month. |
| `denominator` | A denominator option id: un = UN projections, dhis2 = DHIS2 projections, anc1 = ANC1-derived, penta1 = Penta1-derived, anc1derived = ANC1 population growth, penta1derived = Penta1 population growth. |
| `indicator` | An indicator id (see the indicators). |
| `un_births` | Live births in the UN projections (thousands). |
| `un_population` | Total population in the UN projections (thousands). |
| `un_under1` | Children under 1 in the UN projections (thousands). |
| `un_popgrowth` | Annual population growth rate in the UN projections. |
| `population_growth_change` | Population change from the survey year to this year (percent, annualised log2), used to carry the population-growth denominators. |
| `population_proportion` | This unit's share of the national population in the survey year. |
| `denominator_label` | The denominator option's label (see denominator). |
| `selected` | Whether this is the denominator chosen for the indicator (denominator or maternal_denominator). |
| `coverage` | Coverage of the indicator (%) with this row's denominator option. |
| `survey` | The indicator's survey coverage estimate for this year (%), when a survey has one. |
| `survey_lower` | The lower bound of the survey estimate's confidence interval (%). |
| `survey_upper` | The upper bound of the survey estimate's confidence interval (%). |
| `difference` | Coverage minus the survey estimate (percentage points); positive when the facility-based coverage is higher. |
| `survey_year` | The survey year the derived denominators start from (the base year of the ANC1/Penta1-derived and population-growth options). |
