A function to extract the outcomes found in incidence
Source:R/CharacterzationQueries.R
getIncidenceOutcomes.RdA function to extract the outcomes found in incidence
Usage
getIncidenceOutcomes(
connectionHandler,
schema,
ciTablePrefix = "ci_",
cgTablePrefix = "cg_",
targetId = NULL
)Arguments
- connectionHandler
A connection handler that connects to the database and extracts sql queries. Create a connection handler via `ResultModelManager::ConnectionHandler$new()`.
- schema
The result database schema (e.g., 'main' for sqlite)
- ciTablePrefix
The prefix used for the cohort incidence results tables
- cgTablePrefix
The prefix used for the cohort generator results tables
- targetId
An integer corresponding to the target cohort ID
See also
Other Characterization:
getBinaryCaseSeries(),
getBinaryRiskFactors(),
getCaseBinaryFeatures(),
getCaseContinuousFeatures(),
getCaseCounts(),
getCaseTargetBinaryFeatures(),
getCaseTargetCounts(),
getCharacterizationCohortBinary(),
getCharacterizationCohortContinuous(),
getCharacterizationDemographics(),
getCharacterizationOutcomes(),
getCharacterizationTargets(),
getContinuousCaseSeries(),
getContinuousRiskFactors(),
getDechallengeRechallenge(),
getDechallengeRechallengeFails(),
getIncidenceRates(),
getIncidenceTargets(),
getTargetBinaryFeatures(),
getTargetContinuousFeatures(),
getTimeToEvent(),
plotAgeDistributions(),
plotSexDistributions()
Examples
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
#> Connecting using SQLite driver
outcomes <- getIncidenceOutcomes(
connectionHandler = connectionHandler,
schema = 'main'
)