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

DoB from chi #70

Closed Moohan closed 2 years ago

Moohan commented 2 years ago

To close #42.

There was a discussion recently about this again within my team, so I've had a first stab at a generic function.

Still to do are tests and documentation.

Happy to receive any comments on the interface for this.

The idea I've gone with is that the users give some chi numbers and optionally a min and max-age (e.g. my dataset is children so 0 - 18) and a min and max date (e.g. date of the episode would be a 'max date' as they can't be born before that, min date is really an alternative to max age).

Moohan commented 2 years ago

I think this is ready for review now. I still need to: