Learn R Programming

DrugUtilisation (version 0.8.3)

stratifyByUnit: Function to stratify a conceptSet by unit

Description

[Deprecated]

Usage

stratifyByUnit(conceptSet, cdm, ingredientConceptId)

Value

The conceptSet stratified by unit

Arguments

conceptSet

List of concepts to be included.

cdm

A cdm_reference object.

ingredientConceptId

Ingredient OMOP concept that we are interested for the study.

Examples

Run this code
# \donttest{
library(DrugUtilisation)

cdm <- mockDrugUtilisation()

codelist <- CodelistGenerator::getDrugIngredientCodes(cdm, "acetaminophen")

codelistStratified <- stratifyByUnit(codelist, cdm, 1125315)

codelistStratified
# }

Run the code above in your browser using DataLab