matchedDiagnostics {PhenotypeR} | R Documentation |
Compare characteristics of cohort matched to database population
Description
A summary of the cohort that is matched to the original cohort that has been given by the user. Such summary contains basic cohort summary including number of visits within one year prior of the cohort_start_date, as well as a large scale charactersitics using the following domians of OMOP CDM:
* condition_occurrence * visit_occurrence * measurement * procedure_occurrence * observation * drug_exposure
Usage
matchedDiagnostics(cohort, matchedSample = 1000)
Arguments
cohort |
Cohort table in a cdm reference |
matchedSample |
The number of people to take a random sample for matching. If NULL, no sampling will be performed. |
Value
A summarised result
Examples
library(PhenotypeR)
cdm <- mockPhenotypeR()
result <- matchedDiagnostics(cdm$my_cohort)
CDMConnector::cdmDisconnect(cdm = cdm)
[Package PhenotypeR version 0.1.5 Index]