create_withdrawal_qc_flowchart: Create a Flowchart Illustrating Cleaning Process for...

View source: R/create_cleaning_flowcharts.R

create_withdrawal_qc_flowchartR Documentation

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

Description

This function generates a flowchart diagram illustrating the cleaning process for withdrawal 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 withdrawal records.

Usage

create_withdrawal_qc_flowchart(
  n_raw_wd_records,
  n_no_doc_child_id_withdrawal,
  n_drop_nonvalid_ids,
  n_invalid_date_of_withdrawal,
  n_cleaned_wd_records
)

Arguments

n_raw_wd_records

Initial number of withdrawal records in the dataset.

n_no_doc_child_id_withdrawal

Number of records with no child ID.

n_drop_nonvalid_ids

Number of records dropped due to non-valid child IDs.

n_invalid_date_of_withdrawal

Number of records with a date of withdrawal prior to enrolment.

n_cleaned_wd_records

Number of records after cleaning.

Value

A graph object representing the flowchart of the withdrawal data cleaning process.


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