Replies: 2 comments 12 replies
-
Yes I think that would be valuable, perhaps as an option within the |
Beta Was this translation helpful? Give feedback.
-
This function redacts values that are 5 or less. If the marginal totals are known (eg in a table elsewhere, or because you know the size of the population) then these could be recovered. My approach has been to ensure all values less than 5 are redacted and the sum of all redacted values exceeds 5. So for example:
eg here: https://github.com/opensafely/covid-vaccine-effectiveness-research/blob/5c2aedebe1fe4b238765d1e12d9086cb34f8924c/lib/redaction_functions.R#L8 -- this function produces the mask, which is then used elsewhere for actual redaction. Is this worth implemented here too? |
Beta Was this translation helpful? Give feedback.
-
I have been using this function that @alexwalkercebm wrote to suppress low numbers in measures outputs. It seems to me that if you are using measures, you would always want to do this and it could be implemented by default.
I would suggest a snippet similar to above but would mask the numerator and denominator only (before calculating 'value' col). This way it's obvious which groups have been suppressed at what time.
Beta Was this translation helpful? Give feedback.
All reactions