Learn R Programming

PhenotypeR (version 0.3.1)

databaseDiagnostics: Database diagnostics

Description

phenotypeR diagnostics on the cdm object.

Diagnostics include: * Summarise a cdm_reference object, creating a snapshot with the metadata of the cdm_reference object. * Summarise the observation period table getting some overall statistics in a summarised_result object. * Summarise the person table including demographics (sex, race, ethnicity, year of birth) and related statistics.

Usage

databaseDiagnostics(cohort)

Value

A summarised result

Arguments

cohort

Cohort table in a cdm reference

Examples

Run this code
# \donttest{
library(omock)
library(PhenotypeR)
library(CohortConstructor)

cdm <- mockCdmFromDataset(source = "duckdb")

cdm$new_cohort <- conceptCohort(cdm,
                                conceptSet = list("codes" = c(40213201L, 4336464L)),
                                name = "new_cohort")

# }

Run the code above in your browser using DataLab