data_clean: Clean ANC-RT Data

Description Usage Arguments Details Value Author(s)

View source: R/data_clean.R

Description

Cleans ANC-RT data so that it can be used with other functions in the ANCRTAdjust package.

Usage

1
data_clean(data, total_age_cat = NULL)

Arguments

data

A country-specific ANC-RT database. The function check_data should have been run on the data to properly prepare the data for use here. The following variables (with these variable names) must be included in data:

  • time: The time period that the data was collected.

  • faciluid: The unique facility identifier.

  • n_clients: The number of women from the specified facility, during the specified time period, that attended their first ANC visit.

  • n_status: The number of women from the specified facility, during the specified time period, that had their HIV status ascertained at their first ANC visit, either by testing or through previous knowledge.

  • testpos: The number of women from the specified facility, during the specified time period, that tested positive for HIV at their first ANC visit.

  • knownpos: The number of women from the specified facility, during the specified time period, that already knew that they were HIV-positive at their first ANC visit.

  • testneg: The number of women from the specified facility, during the specified time period, that tested negative for HIV at their first ANC visit.

  • totpos: The number of women from the specific facility, during the specified time period, that were HIV-positive at their first ANC visit.

  • age: Age category of pregnant women (optional).

total_age_cat

The value of the age variable indicating all age categories combined (only necessary if age disaggregated data is included).

Details

This function has been developed to clean common issues associated with ANC-RT data. The following tasks are accomplished:

Value

A cleaned ANC-RT database with additional variables:

Author(s)

Mathieu Maheu-Giroux

Brittany Blouin


brittanyblouin/ANCRTAdjust documentation built on Oct. 28, 2019, 4:53 a.m.