View source: R/CharacterzationQueries.R
| getOutcomesUsedInIncidence | R Documentation |
A function to extract the outcomes found in incidence
getOutcomesUsedInIncidence(
connectionHandler,
schema,
ciTablePrefix = "ci_",
cgTablePrefix = "cg_",
characterizationTargetId = NULL,
targetId = NULL,
parentId = NULL
)
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 |
characterizationTargetId |
The characterization identifier for the target |
targetId |
An integer corresponding to the target cohort ID |
parentId |
the parent target cohort Id to extract outcomes for |
Specify the connectionHandler, the schema and the prefixes
A data.frame with the incidence outcome cohort ids and names
Other Characterization:
characterizationCompareBinary(),
characterizationCompareContinuous(),
getAggregateBinaryRiskFactors(),
getAggregateContinuousRiskFactors(),
getBinaryCaseSeries(),
getBinaryRiskFactors(),
getBinaryTargetBaseline(),
getCaseCounts(),
getCharacterizationCaseSettings(),
getCharacterizationDemographics(),
getCharacterizationTargetSettings(),
getContinuousCaseSeries(),
getContinuousRiskFactors(),
getContinuousTargetBaseline(),
getDechallengeRechallenge(),
getDechallengeRechallengeFails(),
getIncidenceRates(),
getIncidenceTargetSettings(),
getNonCaseCounts(),
getOutcomesUsedInCharacterization(),
getTargetCounts(),
getTargetsUsedInCharacterization(),
getTargetsUsedInIncidence(),
getTimeToEvent(),
plotAgeDistributions(),
plotSexDistributions(),
viewIncidenceRate()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
outcomes <- getOutcomesUsedInIncidence(
connectionHandler = connectionHandler,
schema = 'main'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.