covid19datahub / COVID19

A worldwide epidemiological database for COVID-19 at fine-grained spatial resolution
https://covid19datahub.io
GNU General Public License v3.0
251 stars 92 forks source link

Policy data never change across all counties and time #140

Closed zhaolongwen1990 closed 3 years ago

zhaolongwen1990 commented 3 years ago

I selected one-day data, all counties have the same restriction policy, which includes school_closing, workplace_place, gatherings_restriction, and all other restrictions in the package. Also, I selected one county which is Saint Louis county, it seems saint Louis county has a constant restriction policy across time this year which is impossible. I guess other counties have the same problem.

eguidotti commented 3 years ago

Hi @zhaolongwen1990, many thanks for your message! I just double checked.

As written here at the moment the policies for admin area 3 (i.e. counties) are inherited from national lavel policies. And from the Oxford Covid-19 Government Response Tracker it seems these national level policies have been the same since March (so basically since the case data for counties are available).

On the other hand, now that the policies for single states are available, it would be better to inherit the policies of counties from the corresponding state, and not the nation. I'll see how to fix this. Keep you posted!

zhaolongwen1990 commented 3 years ago

Thanks for replying, Emanuele This package is really important to our project, thanks for your work. Where can I retrieve the single state policies? I don't see a related command in the covid19 function.

covid19( country = NULL, level = 1, start = "2010-01-01", end = Sys.Date(), raw = FALSE, vintage = FALSE, verbose = TRUE, cache = TRUE, wb = NULL, gmr = NULL, amr = NULL )

On Wed, Dec 9, 2020 at 1:00 PM Emanuele Guidotti notifications@github.com wrote:

Hi @zhaolongwen1990 https://github.com/zhaolongwen1990, many thanks for your message! I just double checked.

As written here https://covid19datahub.io/articles/data.html at the moment the policies for admin area 3 (i.e. counties) are inherited from national lavel policies. And from the Oxford Covid-19 Government Response Tracker https://github.com/OxCGRT/covid-policy-tracker it seems these national level policies have been the same since March (so basically since the case data for counties are available).

On the other hand, now that the policies for single states are available, it would be better to inherit the policies of counties from the corresponding state, and not the nation. I'll see how to fix this. Keep you posted!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/covid19datahub/COVID19/issues/140#issuecomment-741981020, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASBEKT7U2BRUUTG7U6CJIH3ST7CLDANCNFSM4UTYE5PQ .

eguidotti commented 3 years ago

Hi @zhaolongwen1990, you can simply run the following to get the data (and policies) for the single US states:

x <- covid19("USA", level = 2)

The policies are provided by Oxford Covid-19 Government Response Tracker.

I just committed the fix. In a few hours the dataset should include the policies for counties inherited by those of the corresponding state. Please let me know if this works for you or if you still see some issues with the data. Many thanks!

zhaolongwen1990 commented 3 years ago

Now the covid19 package works perfectly, I can see how policies vary by counties and time. Appreciate your work!

Have a good weekend

On Fri, Dec 11, 2020 at 5:42 PM Emanuele Guidotti notifications@github.com wrote:

Hi @zhaolongwen1990 https://github.com/zhaolongwen1990, you can simply run the following to get the data (and policies) for the single US states:

x <- covid19("USA", level = 2)

The policies are provided by Oxford Covid-19 Government Response Tracker https://github.com/OxCGRT/covid-policy-tracker.

I just committed the fix. In a few hours the dataset should include the policies for counties inherited by those of the corresponding state. Please let me know if this works for you or if you still see some issues with the data. Many thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/covid19datahub/COVID19/issues/140#issuecomment-743483606, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASBEKTYKNNVVKQN4QFVAPXLSUKU5ZANCNFSM4UTYE5PQ .

eguidotti commented 3 years ago

Excellent! Thanks for confirming. Have a nice weekend :)