Learn R Programming

DrugUtilisation (version 1.0.1)

summariseDoseCoverage: Check coverage of daily dose computation in a sample of the cdm for selected concept sets and ingredient

Description

Check coverage of daily dose computation in a sample of the cdm for selected concept sets and ingredient

Usage

summariseDoseCoverage(
  cdm,
  ingredientConceptId,
  estimates = c("count_missing", "percentage_missing", "mean", "sd", "q25", "median",
    "q75"),
  sampleSize = NULL
)

Value

The function returns information of the coverage of computeDailyDose.R for the selected ingredients and concept sets

Arguments

cdm

A cdm_reference object.

ingredientConceptId

Ingredient OMOP concept that we are interested for the study.

estimates

Estimates to obtain.

sampleSize

Maximum number of records of an ingredient to estimate dose coverage. If an ingredient has more, a random sample equal to sampleSize will be considered. If NULL, all records will be used.

Examples

Run this code
# \donttest{
cdm <- mockDrugUtilisation()

summariseDoseCoverage(cdm, 1125315)
# }

Run the code above in your browser using DataLab