opensafely-actions / demographic-standardisation

demographic-standardisation
MIT License
0 stars 0 forks source link

Where to store / retrieve reference populations #1

Open wjchulme opened 1 year ago

wjchulme commented 1 year ago

The reference population used for standardisation needs to be available when running the reusable action. One option would be to retrieve reference populations on the fly from a reputable source (eg ONS) everytime the reusable action is run, but this isn't possible inside the server as most connections outside the server are denied.

This repo currently contains a locally-run script that gets mid-year population estimates from the ONS, stratified by 1-year age, sex, region, using the onsr package. This is for convenience -- it's possible to just go to the ONS website and download the equivalent dataset (but it would need some reshaping).

What are the other options?

Probably the first option is ok for now, but having a set of standard, assured reference populations that can be automatically retrieved is a nice to have (stratified by ethnicity, european populations, etc).