Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify cycle count data at regional level by comparing with NTS data #77

Open
joeytalbot opened this issue Jul 7, 2021 · 4 comments
Open
Assignees

Comments

@joeytalbot
Copy link
Contributor

No description provided.

@Robinlovelace
Copy link
Contributor

Links with #76

@Robinlovelace
Copy link
Contributor

Next step I guess is to convert the numbers here of km cycled per person per year into bkm cycled/yr using mid year population estimates, e.g. from here: https://www.ons.gov.uk/peoplepopulationandcommunity/populationandmigration/populationestimates/datasets/middlesuperoutputareamidyearpopulationestimates

Suggested place to put that code: https://github.com/saferactive/saferactive/blob/master/code/tests/regional-uptake-nts.R that could just continue that reproducible script.

@Robinlovelace
Copy link
Contributor

Just a thought: it may be worth uploading regions_simple and reading that in instead of the detailed raw geojson object here:

regions = read_sf("https://github.com/saferactive/saferactive/releases/download/0.1.4/Regions_.December_2020._EN_BGC.geojson")
regions = sf::st_make_valid(regions)
qtm(regions)
regions_simple = rmapshaper::ms_simplify(regions, 0.01)

Was thinking of doing that but will hold my horses for now. Let me know Joey how it goes and happy to provide further input. That region object could be used to get regional mid year population estimates from the MSOA data, suggest making centroids of those MSOAs and then aggregating with aggregate() or st_join() and then group_by() + summarise() pipeline.

@Robinlovelace
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants