View source: R/check_prostate_redcap.R
check_prostate_redcap | R Documentation |
Run sequential quality control checks and
thereby restrict the pts
and smp
datasets
to cases that pass certain criteria. trt
(treatment) data are
passed along without changes.
check_prostate_redcap(
data,
qc_crit_pts = qc_criteria_pts(),
qc_crit_smp = qc_criteria_smp(),
qc_level_pts = NULL,
qc_level_smp = NULL,
recommended_only = FALSE,
time_origin = c("seq", "dx", "adt", "met")
)
data |
List with elements |
qc_crit_pts |
Criteria for checking the |
qc_crit_smp |
Criteria for checking the |
qc_level_pts |
Level of QC that the return |
qc_level_smp |
As |
recommended_only |
Return qc'd |
time_origin |
Time origin for follow-up time scales: sequencing
( |
List:
pts
: Patient-level data after QC.
smp
: Sample-level data after QC.
qc_pts
: Tibble of sequential exclusions for pts
.
qc_smp
: Tibble of sequential exclusions for smp
.
The qc_pts
and qc_smp
tibbles can be used to extract
information on which records failed which QC step.
Overview of analysis-ready data elements: https://stopsack.github.io/prostateredcap/articles/dataelements.html
## Not run:
# Process output of load_prostate_redcap():
pts_smp_qc <- check_prostate_redcap(pts_smp, recommended_only = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.