addControlsToStudyPackage: Add controls to a SkeletonComparativeEffectStudy package

View source: R/StudyPackages.R

addControlsToStudyPackageR Documentation

Add controls to a SkeletonComparativeEffectStudy package

Description

See https:://github.com/ohdsi/SkeletonComparativeEffectStudy for details on creating a study This function adds a set of negative controls to the study package to be automatically instantiated as cohorts. Id's are determined by the study package, normally this is the same as the concept id

Usage

addControlsToStudyPackage(
  controlConcepts,
  targetId,
  comparatorId = NULL,
  fileName = "inst/settings/NegativeControls.csv",
  type = "outcome"
)

Arguments

controlConcepts

data.frame with at least 1 row (recommended > 10) containing conceptId and conceptName

targetId

target cohort Id controls are for

comparatorId

comparator cohort Id controls are for (optional in self controlled studies)

fileName

path of existing negative control file or where file will be written

type

"outcome" or "exposure" - only outcomes are currently supported by the study package


OHDSI/CemConnector documentation built on Aug. 5, 2023, 2:47 p.m.