View source: R/CharacterizationPlots.R
| viewIncidenceRate | R Documentation |
Creates a table with the incidence rates and optionally demographics
viewIncidenceRate(
incidenceData,
ageData = NULL,
genderData = NULL,
stratification = "overall",
maxAgeSampleSize = 5000
)
incidenceData |
The data extracted using 'getIncidenceRates' |
ageData |
The data extracted using 'getBinaryTargetBaseline' with analysisIds = 3 |
genderData |
The data extracted using 'getBinaryTargetBaseline' with analysisIds = 1 |
stratification |
Pick either overall/age/sex/year to specify whether to view the overall rates or stratified by age/sex/year |
maxAgeSampleSize |
When creating the age distributions this is the max age vector length to create |
Input the incidence rate data (and optionally demographic data)
Returns a gt table that displays the incidence rates
Other Characterization:
characterizationCompareBinary(),
characterizationCompareContinuous(),
getAggregateBinaryRiskFactors(),
getAggregateContinuousRiskFactors(),
getBinaryCaseSeries(),
getBinaryRiskFactors(),
getBinaryTargetBaseline(),
getCaseCounts(),
getCharacterizationCaseSettings(),
getCharacterizationDemographics(),
getCharacterizationTargetSettings(),
getContinuousCaseSeries(),
getContinuousRiskFactors(),
getContinuousTargetBaseline(),
getDechallengeRechallenge(),
getDechallengeRechallengeFails(),
getIncidenceRates(),
getIncidenceTargetSettings(),
getNonCaseCounts(),
getOutcomesUsedInCharacterization(),
getOutcomesUsedInIncidence(),
getTargetCounts(),
getTargetsUsedInCharacterization(),
getTargetsUsedInIncidence(),
getTimeToEvent(),
plotAgeDistributions(),
plotSexDistributions()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
schema <- 'main'
incidenceData <- getIncidenceRates(
connectionHandler = connectionHandler ,
schema = schema
)
# incidence data does not have rate values to imputing them
incidenceData$incidenceRateP100py <- 1 +
sample(c(-1,1),replace = TRUE)*runif(nrow(incidenceData))
incidenceData$incidenceProportionP100p <- 0.5 +
sample(c(-1,1),replace = TRUE)*runif(nrow(incidenceData))
ageData <- getBinaryTargetBaseline(
connectionHandler = connectionHandler,
schema = schema,
analysisIds = 3
)
genderData <- getBinaryTargetBaseline(
connectionHandler = connectionHandler,
schema = schema,
analysisIds = 1
)
viewIncidenceRate(
incidenceData = incidenceData,
ageData = ageData,
genderData = genderData
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.