Closed ablack3 closed 5 months ago
hi @ablack3 if you use: summariseCohortAttrition(cohort) or summary(cohort) this should provide a summarised_result object with the attrition and then can be suppressed using the suppress method. Is this not working for you?
Oh I did not know that was possible. I was using cohortAttrition(cohort)
I'll try it.
there are functions for tables and plots too: tableCohortAttrition and plotCohortAttrition (although the first one is still experimental)
Iqvia has a requirement that no cells in the cohort attrition table that are less than 5 can be reported. Additionally it should be impossible to deduce the value of a suppressed cell from the values of the other cells. I'm not sure if anyone else has encountered this but on the polypharmacy study we had to do some custom suppression of the cohort_attrition table to meet this requirement.
The logic we implemented was "If any cell in the cohort attrition for a cohort was between 1 and 4 (inclusive) we suppress all values for that cohort except the final count."
here is a reprex with a possible implementation. It is possible to supress less information by combining categories but this implementation was quick and easy so it is what we used for the study.
tagging @JTBrash
Created on 2024-05-16 with reprex v2.1.0