You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
At my team, we have to create age bands which do not have the same length. Currently, the create_age_groups does not allow this.
Describe the solution you'd like
I created a simple version of create_age_groups which allows custom bin lengths by specifying the cut points with a numeric vector.
The text was updated successfully, but these errors were encountered:
@r6lm This is a great idea and something we'd like to see taken forward.
Do you have a suggested implementation? I like the idea of an age_breaks parameter that would take a vector of integers, and override the default behaviour of create_age_groups.
@Nic-Chr suggested providing 'common' age bands - #54 (comment) however, I think these are already easy enough to do with create_age_groups and the advantage to be had here would be to allow 'non-systematic' groupings e.g. 0-18, 18-40, 40-65, 65+ etc. Nic's implementation does allow that - https://phs-git.nhsnss.scot.nhs.uk/Nic-Chr/rtemethods/src/branch/master/R/age_band.R so I think those ideas could be brought into phsmethods::create_age_groups
Is your feature request related to a problem? Please describe.
At my team, we have to create age bands which do not have the same length. Currently, the
create_age_groups
does not allow this.Describe the solution you'd like
I created a simple version of
create_age_groups
which allows custom bin lengths by specifying the cut points with a numeric vector.The text was updated successfully, but these errors were encountered: