View source: R/CharacterzationQueries.R
| getDechallengeRechallengeFails | R Documentation |
A function to extract the failed dechallenge-rechallenge cases
getDechallengeRechallengeFails(
connectionHandler,
schema,
cTablePrefix = "c_",
characterizationTargetId = NULL,
outcomeId = NULL,
databaseId = NULL,
dechallengeStopInterval = NULL,
dechallengeEvaluationWindow = 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) |
cTablePrefix |
The prefix used for the characterization results tables |
characterizationTargetId |
The characterization target cohort id of interest |
outcomeId |
Am integer corresponding to the outcome cohort ID |
databaseId |
The unique identifier for the database of interest |
dechallengeStopInterval |
(optional) The maximum number of days between the outcome start and target end for an outcome to be flagged |
dechallengeEvaluationWindow |
(optional) The maximum number of days after the target restarts to see whether the outcome restarts |
Specify the connectionHandler, the schema and the target/outcome cohort IDs and database id
A data.frame each failed dechallenge rechallenge exposures and outcomes
Other Characterization:
characterizationCompareBinary(),
characterizationCompareContinuous(),
getAggregateBinaryRiskFactors(),
getAggregateContinuousRiskFactors(),
getBinaryCaseSeries(),
getBinaryRiskFactors(),
getBinaryTargetBaseline(),
getCaseCounts(),
getCharacterizationCaseSettings(),
getCharacterizationDemographics(),
getCharacterizationTargetSettings(),
getContinuousCaseSeries(),
getContinuousRiskFactors(),
getContinuousTargetBaseline(),
getDechallengeRechallenge(),
getIncidenceRates(),
getIncidenceTargetSettings(),
getNonCaseCounts(),
getOutcomesUsedInCharacterization(),
getOutcomesUsedInIncidence(),
getTargetCounts(),
getTargetsUsedInCharacterization(),
getTargetsUsedInIncidence(),
getTimeToEvent(),
plotAgeDistributions(),
plotSexDistributions(),
viewIncidenceRate()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
conCohort <- getDechallengeRechallengeFails(
connectionHandler = connectionHandler,
schema = 'main',
characterizationTargetId = 1,
outcomeId = 3,
databaseId = 'eunomia'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.