matchedDiagnostics: Compare characteristics of cohort matched to database...

View source: R/matchedDiagnostics.R

matchedDiagnosticsR 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)


PhenotypeR documentation built on April 3, 2025, 10:46 p.m.