assess_form_variable_completeness: Asses completeness of data for each variable in a secuTrial...

Description Usage Arguments Value See Also Examples

View source: R/analysis.R

Description

Requires a loaded secuTrial validation overview and a loaded secuTrial standard export. Both the validation overview and the export should be from the same time (not more than minutes apart if possible) to ensure data integrity.

Usage

1
2
assess_form_variable_completeness(form, cn, validation_overview,
  completeness = "allforms", occ_in_vp = 1, omit.mnp = TRUE)

Arguments

form

Formname (from the export) for which to assess variable completeness

cn

The central patient record file (i.e. 'patient' from load.tables)

validation_overview

The tibble returned by load_validation_overview

completeness

Specifies if completeness is assessed for all forms ('allforms') or only for saved forms ('savedforms')

occ_in_vp

Specifies how often the form occurs in the visit plan (only relevant if 'allforms' is set)

omit.mnp

Removes variable names from the result table that start with mnp

Value

data.frame showing percent completeness per variable

See Also

load_validation_overview

Examples

1
assess_form_variable_completeness(bmd, patient, val_ov, completeness="allforms", occ_in_vp=5)

SwissClinicalTrialOrganisation/DM_secuTrial_R documentation built on May 21, 2019, 10:16 a.m.