drawAttritionDiagramPlp
draws the attition diagram, showing how many people were excluded from
the study population, and for what reasons.
drawAttritionDiagramPlp(
attrition,
targetLabel = "Target Population",
outcomeLabel = "Outcome Count",
fileName = NULL
)
The table of attrition details return from the population attr(popualtion, 'metaData')$attrition
A label to us for the treated cohort.
A label to us for the comparator cohort.
Name of the file where the plot should be saved, for example 'plot.png'.
See the function ggsave
in the ggplot2 package for supported file
formats.
A ggplot object. Use the ggsave
function to save to file in a different
format.