create_day0_qc_flowchart: Create a Flowchart Illustrating Cleaning Process for Day 0...

View source: R/create_cleaning_flowcharts.R

create_day0_qc_flowchartR Documentation

Create a Flowchart Illustrating Cleaning Process for Day 0 Data (TIMCI-specific)

Description

This function generates a flowchart diagram illustrating the cleaning process for Day 0 data specific to TIMCI. The flowchart visually represents the various stages and outcomes of data processing, including exclusion, editing, and checks for data quality related to Day 0 records.

Usage

create_day0_qc_flowchart(
  n_raw_day0_records,
  n_nonvalid_fid_records,
  n_incorrect_enroldate_records,
  n_dropped_true_duplicate_records,
  n_true_duplicate_detected,
  n_duplicate_records,
  n_dropped_duplicate_records,
  n_edited_duplicate_records,
  n_drug_edits,
  n_spo2_meas1_edits,
  n_spo2_meas2_edits,
  n_negative_illness_onset,
  n_missing_cp,
  n_missing_diagnosis,
  n_missing_referral_cg,
  n_cleaned_day0_records
)

Arguments

n_raw_day0_records

Initial number of Day 0 records in the dataset.

n_nonvalid_fid_records

Number of records with a non-valid facility ID.

n_incorrect_enroldate_records

Number of records with an incorrect enrolment date.

n_dropped_true_duplicate_records

Number of records dropped due to true duplication.

n_true_duplicate_detected

Number of true duplicate records detected.

n_duplicate_records

Number of records with duplicated child IDs.

n_dropped_duplicate_records

Number of records dropped due to duplicated child IDs.

n_edited_duplicate_records

Number of records edited due to duplicated child IDs.

n_drug_edits

Number of records with re-entered structured drug data.

n_spo2_meas1_edits

Number of records with corrected SpO2 measure 1 (India only).

n_spo2_meas2_edits

Number of records with corrected SpO2 measure 2 (India only).

n_negative_illness_onset

Number of records with a negative illness onset.

n_missing_cp

Number of records with missing clinical presentation.

n_missing_diagnosis

Number of records with missing diagnosis.

n_missing_referral_cg

Number of records with no referral information from caregiver.

n_cleaned_day0_records

Number of records after cleaning.

Value

A graph object representing the flowchart of the Day 0 data cleaning process.


Thaliehln/timci documentation built on April 8, 2024, 3:38 p.m.