Public-Health-Scotland / phsmethods

An R package to standardise methods used in Public Health Scotland (https://public-health-scotland.github.io/phsmethods/)
https://public-health-scotland.github.io/phsmethods/
54 stars 13 forks source link

Primary and secondary suppression functions #117

Open rubenv95 opened 8 months ago

rubenv95 commented 8 months ago

Is your feature request related to a problem? Please describe. At PHS, having a consistent way to apply primary and secondary suppression to data that we publish would be beneficial.

Describe the solution you'd like I have developed 2 functions already that I'd like to explore adding to the PHS methods package. There are potentially ways to improve the function set up, but there is a good start already developed and in use.

Describe alternatives you've considered The current set up means that all teams apply suppression independently, without using a consistent method.

Additional context The package below was developed to compile functions used within a PHS Shiny Dashboard - but it is has been decided the suppression functions would fit better in with the PHS methods package. https://github.com/rubenv95/phsshinyextras/blob/main/R/primary_suppression.R https://github.com/rubenv95/phsshinyextras/blob/main/R/secondary_suppression.R