View source: R/StudyPackages.R
addControlsToStudyPackage | R Documentation |
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
addControlsToStudyPackage(
controlConcepts,
targetId,
comparatorId = NULL,
fileName = "inst/settings/NegativeControls.csv",
type = "outcome"
)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.