createExposureOutcome: Create exposure-outcome combinations.

View source: R/Analyses.R

createExposureOutcomeR Documentation

Create exposure-outcome combinations.

Description

Create exposure-outcome combinations.

Usage

createExposureOutcome(exposureId, outcomeId, trueEffectSize = NA)

Arguments

exposureId

A concept ID indentifying the drug of interest in the exposure table. If multiple strategies for picking the exposure will be tested in the analysis, a named list of numbers can be provided instead. In the analysis, the name of the number to be used can be specified using the exposureType parameter in the createSccAnalysis function.

outcomeId

A concept ID indentifying the outcome of interest in the outcome table. If multiple strategies for picking the outcome will be tested in the analysis, a named list of numbers can be provided instead. In the analysis, the name of the number to be used can be specified using the #' outcomeType parameter in the createSccAnalysis function.

trueEffectSize

Should this be set to 1 this will be considererd a negative control

Details

Create a hypothesis of interest, to be used with the runSccAnalyses function.

Value

An object of class exposureOutcome specifying an exposure-outcome pair for analysis.

Examples


if (interactive()) {
# Create a simple exposure-outcome pair
eo1 <- createExposureOutcome(exposureId = 1124300,
                             outcomeId = 444382)

# Create a negative control (true effect size = 1)
eo2 <- createExposureOutcome(exposureId = 1124300,
                             outcomeId = 444382,
                             trueEffectSize = 1)
}


SelfControlledCohort documentation built on June 17, 2026, 5:07 p.m.