# Data Adjustment

Sets what data the analysis keeps and how the numbers are adjusted, then applies it.

The **Data Adjustment** page turns the reported numbers into the data the analysis uses. You choose which years and areas to keep, and how to correct incomplete reporting, extreme outliers and missing months; **Adjust data** then applies it. Open it after the [Data Quality Assessment](https://datasuite.damurka.com/en/apps/countdown/data-quality.md) pages, whose results guide each choice. Until the data has been adjusted once, the Denominators and analysis pages stay locked in the sidebar. (RMNCAH) (Vaxx)

Before you start: review the [Data Quality Assessment](https://datasuite.damurka.com/en/apps/countdown/data-quality.md) pages, in particular [Reporting Rate](https://datasuite.damurka.com/en/apps/countdown/data-quality/reporting-rate.md).

![The Data Adjustment page, locked: the years kept, the adjustment settings by service group, and the Summary](https://datasuite.damurka.com/images/app-data-adjustment.png)

## Using the page

```mermaid
flowchart TD
  E["Edit"] --> K["Choose the data to keep"] --> F["Set the k-factors"] --> A["Adjust data"] --> C["View the changes the adjustment made"]
  C -- "as expected" --> D["Denominators"]:::done
  C -- "a change looks wrong" --> E
```

### 1. Press Edit

The banner turns to *Editing. The analysis pages keep the adjustment already made until you press Adjust data again.* **Cancel changes** drops your edits.

### 2. Choose the data to keep

Untick a year under **Years, everywhere** to leave it out everywhere. To leave out one region or district, press **Remove data for an area**, pick it (or type a district's name), choose **Every year** or the years, and press **Remove its data**.

![The Remove data for an area dialog: where, when, and what removing does](https://datasuite.damurka.com/images/app-data-adjustment-remove-area.png)

When to remove data, and what it does to coverage: [Data adjustment > Remove years](https://datasuite.damurka.com/en/methodology/data-adjustment/remove-years.md#when-to-remove-a-year).

### 3. Set the k-factors

Choose a **k** for each service group. To give one indicator its own value, or to switch off its outlier or missing-value correction, open the group with its arrow. To give a region or district its own settings, press **Settings for a region or district**, pick it and press **Give it its own settings**; what it does not change is inherited.

![The Settings for a region or district dialog](https://datasuite.damurka.com/images/app-data-adjustment-area-settings.png)

What each value assumes and how to choose: [Choosing k](https://datasuite.damurka.com/en/methodology/data-adjustment/completeness-adjustment.md#choosing-k).

### 4. Press Adjust data again

The Summary button reads **Adjust data** the first time and **Adjust data again** after that. The page shows *Adjusting…*, then *The data is adjusted with these settings.* and locks again. If it fails, the message *The data could not be adjusted:* gives the reason.

### 5. Check the changes

Press **View the changes the adjustment made** to open [Data Adjustment Changes](https://datasuite.damurka.com/en/apps/countdown/data-preparation/data-adjustment-changes.md).

## Controls

| Control | Choices | Default and notes |
| --- | --- | --- |
| **Edit** | — | Unlocks the settings. Once the data is adjusted they are locked, so nothing changes by mistake. |
| **Years, everywhere** | One chip per year in the data | Every year kept (ticked). Untick a year to leave it out. |
| **Remove data for an area** | A region or district; **Every year** or some years | Nothing removed. |
| **Everywhere** / **Settings for a region or district** | Everywhere, or a region or district you add | Everywhere. A district's own settings win over its region's. |
| **k** (one per service group) | 0, 0.25, 0.5, 0.75, 1 | The value stored in the dataset. |
| Per indicator (open a group with its arrow) | Completeness (k): the group's value or its own; **Outliers** on or off; **Missing values** on or off | The group's k; both corrections on. |
| **Back to the Countdown default** | — | Puts every setting back to the default. |
| **Adjust data** / **Adjust data again** | — | Applies the settings to the data. |

## Cards

**1 · Data kept for analysis** — the years and areas the analysis keeps. *Removed data is left out of every analysis and report, its population too.* Under **Also removed, for an area** each removal is listed as *area (region or district) · when · removed from the analysis*. Check that it lists exactly what you meant to leave out.

**2 · Adjustment settings** — one row per service group: **Antenatal care**, **Delivery and postnatal care**, **Vaccination**, **Outpatient visits** and **Inpatient admissions** (outliers only). Each row gives the number of indicators, the group's *reporting rate* (The percentage of expected monthly facility reports that were received: the completeness of monthly facility reporting. Reporting rates over 90% are good.) in the last year (*Reporting 99% in 2025 · 1 districts below 90%*) and its *k-factor* (The ratio of the volume of services provided by non-reporting facilities to that of reporting facilities.). The arrow at the left opens the group's indicators, with the number of months each correction would change. A group with high reporting changes little whatever its k; a group with many districts below the threshold is where the choice of k matters most.

![Editing: the Vaccination group open, with each indicator's k, outlier and missing-value settings](https://datasuite.damurka.com/images/app-data-adjustment-edit.png)

**Summary** — the status (*Adjusted*, *Editing* or *Not adjusted*), **Years kept** (for example *6 of 6*), **Areas' data removed**, **Areas with own settings**, and the text the reports' footnote will print (**As the footnote will read**). Its button reads **Edit**, **Adjust data** or **Adjust data again**. Before you move on, the status should read *Adjusted*.

Below the cards, **Download Adjusted Dataset** saves the adjusted data as a Stata file (`master_adj_dataset.dta`) and **View the changes the adjustment made** opens [Data Adjustment Changes](https://datasuite.damurka.com/en/apps/countdown/data-preparation/data-adjustment-changes.md).

> **Vaxx app**
>
> There are three service groups: **Antenatal care**, **Delivery and postnatal care** and **Vaccination** (16 indicators).

![Vaxx: the Data Adjustment page with its three service groups](https://datasuite.damurka.com/images/app-vaxx-data-adjustment.png)

## Common pitfalls

- Leaving the page while it reads *Editing*: your changes are not used until you press **Adjust data again**, and **Cancel changes** drops them.
- Removing a year everywhere when only one area had a problem that year: use **Remove data for an area** instead, so the other areas keep their data.
- Pressing **Back to the Countdown default** to undo one change: it puts every setting back. To undo one indicator's own setting, use the ↺ button next to it (*Back to the inherited setting*).

Method: [Data adjustment](https://datasuite.damurka.com/en/methodology/data-adjustment.md) ([how the adjustments fit together](https://datasuite.damurka.com/en/methodology/data-adjustment.md#how-the-adjustments-fit-together)). Next: [Data Adjustment Changes](https://datasuite.damurka.com/en/apps/countdown/data-preparation/data-adjustment-changes.md).
