cleanCohortData | R Documentation |
This function eliminates patients which do not fulfill the inclusion criteria
cleanCohortData(
cohortData,
mandatoryStates,
outOfCohortAllowed = FALSE,
mergeStates = FALSE,
mergeThreshold = 0.5
)
cohortData |
Imported cohort data |
mandatoryStates |
States which have to be present in the trajectory, otherwise dropped#' |
outOfCohortAllowed |
boolean whether the patient trajectory can surpass the target cohort's observation-period |
mergeStates |
Boolean, if you want to merge states when they overlap |
mergeThreshold |
Value from 0 to 1. If mergeStates is TRUE the states will be label-merged given they overlap more than the specified threshold. Can be given as vector, then multiple iterations are runned, |
A dataframe with selected patients. Columns: cohort_definition_id, subject_id, cohort_start_date, cohort_end_date
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.