Description Usage Arguments Details Value
Plot the outcome incidence over time
1 2 3 4 5 6 7 8 9 10 | outcomeSurvivalPlot(
plpData,
outcomeId,
removeSubjectsWithPriorOutcome = T,
riskWindowStart = 1,
riskWindowEnd = 3650,
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 |
removeSubjectsWithPriorOutcome |
Remove patients who have had the outcome before their target cohort index date from the plot |
riskWindowStart |
(integer) The time-at-risk starts at target cohort index date plus this value |
riskWindowEnd |
(integer) The time-at-risk ends at target cohort index date plus this value |
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.