outcomeSurvivalPlot | R Documentation |
Plot the outcome incidence over time
outcomeSurvivalPlot(
plpData,
outcomeId,
populationSettings = createStudyPopulationSettings(binary = T, includeAllOutcomes = T,
firstExposureOnly = FALSE, washoutPeriod = 0, removeSubjectsWithPriorOutcome = TRUE,
priorOutcomeLookback = 99999, requireTimeAtRisk = F, riskWindowStart = 1, startAnchor
= "cohort start", riskWindowEnd = 3650, endAnchor = "cohort start"),
riskTable = T,
confInt = T,
yLabel = "Fraction of those who are outcome free in target population"
)
plpData |
The plpData object returned by running getPlpData() |
outcomeId |
The cohort id corresponding to the outcome |
populationSettings |
The population settings created using |
riskTable |
(binary) Whether to include a table at the bottom of the plot showing the number of people at risk over time |
confInt |
(binary) Whether to include a confidence interval |
yLabel |
(string) The label for the y-axis |
This creates a survival plot that can be used to pick a suitable time-at-risk period
TRUE if it ran
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.