nish-kishore / sirfunctions

Key functions used by the SIR team
Other
0 stars 0 forks source link

Allow yearly AFP rate calculation in multi-year period with different GUIDs #38

Closed lizkrowlucal closed 7 months ago

lizkrowlucal commented 7 months ago

Chad had 2 districts that changed GUID in 2022 - i.e. one guid in 2021, then a new guid 2022 on. When I run the function across 2021-2023, even though it is chunking by year, it excludes those guids because they are not consistent across the full data set.

Can we make it so that it returns in the data but with an NA for the years that those GUIDs didn't exist?

nish-kishore commented 7 months ago

Add spatial_continuity_check parameter which defaults to T. If set to false we will not run spatial continuity validation on lines 120-133 for ctry, 93-11 for prov and any instances where pop.data <- filter()