Runs phenotypeR diagnostics on the cohort.
The diganostics include:
* Age groups and sex summarised.
* A summary of visits of everyone in the cohort using visit_occurrence table.
* A summary of age and sex density of the cohort.
* Attritions of the cohorts.
* Overlap between cohorts (if more than one cohort is being used).
Usage
cohortDiagnostics(cohort, survival = FALSE, match = TRUE, matchedSample = 1000)
Value
A summarised result
Arguments
cohort
Cohort table in a cdm reference
survival
Boolean variable. Whether to conduct survival analysis (TRUE) or not (FALSE).
match
Boolean variable. Whether to conduct the analysis for the matched cohorts (TRUE) or not (FALSE).
matchedSample
Only if match = TRUE. The number of people to take a random sample for
matching. If NULL, no sampling will be performed.