create_screening_qc_flowchart: This function generates a flowchart to visualize the cleaning...

View source: R/create_cleaning_flowcharts.R

create_screening_qc_flowchartR Documentation

This function generates a flowchart to visualize the cleaning process for screening data specific to the TIMCI project. The flowchart illustrates the steps involved in identifying and addressing different issues in the raw screening records to obtain cleaned data for further analysis.

Description

This function generates a flowchart to visualize the cleaning process for screening data specific to the TIMCI project. The flowchart illustrates the steps involved in identifying and addressing different issues in the raw screening records to obtain cleaned data for further analysis.

Usage

create_screening_qc_flowchart(
  n_raw_screening_records,
  n_nonvalid_deviceid_records,
  n_other_fid_records,
  n_before_startdate_records,
  n_before_facility_startdate_records,
  n_after_lockdate_records,
  n_ineligible_cg_records,
  n_nonvalid_fid_records,
  n_edited_nonvalid_fid_records,
  n_inconsistent_fid_records,
  n_edited_inconsistent_fid_records,
  n_repeat_visit_records,
  n_edited_repeat_visit_records,
  n_incorrect_date_setup_records,
  n_late_submissions,
  n_late_completions,
  n_inconsistent_age_info,
  n_cleaned_screening_records
)

Arguments

n_raw_screening_records

Initial number of screening records.

n_nonvalid_deviceid_records

Number of screening records with a non-valid device ID.

n_other_fid_records

Number of screening records corresponding to a facility involved in another TIMCI study (India-specific).

n_before_startdate_records

Number of screening records with an entry date earlier than the study start date.

n_before_facility_startdate_records

Number of screening records with an entry date earlier than the specific facility start date.

n_after_lockdate_records

Number of screening records with an entry date later than the lock date.

n_ineligible_cg_records

Number of screening records with an ineligible caregiver.

n_nonvalid_fid_records

Number of screening records with a non-valid facility ID.

n_edited_nonvalid_fid_records

Number of screening records where non-valid facility IDs were manually corrected.

n_inconsistent_fid_records

Number of screening records with inconsistent facility ID information.

n_edited_inconsistent_fid_records

Number of screening records where inconsistent facility IDs were manually corrected.

n_repeat_visit_records

Number of screening records marked as repeat visits.

n_edited_repeat_visit_records

Number of screening records that were manually edited to indicate repeat visits.

n_incorrect_date_setup_records

Number of screening records with incorrect creation dates that were manually edited.

n_late_submissions

Number of screening records with late submissions.

n_late_completions

Number of screening records with late completions.

n_inconsistent_age_info

Number of screening records with inconsistent age information.

n_cleaned_screening_records

Number of cleaned screening records obtained after the data cleaning process.

Value

This function returns a graph object representing the flowchart.


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