-
Notifications
You must be signed in to change notification settings - Fork 44
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
[New] Extending support for County level COVID-19 Impact Assessment #851
Comments
Thank you for creating issues!
"COVID-19 Hub" (our main data source for import covsirphy as cs
loader = cs.DataLoader()
jhu_data = loader.jhu()
jhu_data.layer(country="US").Province.unique() If you have the county-level dataset as a CSV file in your local environment, you can create
If I understand this question correctly, you are asking about the required columns of the county-level dataset. You need the following data.
At the latest version 2.21.0, it is not implemented. We need some updates of classes.
Yes, we can use R0 as the index, but R0 is calculated with parameter values of ODE models. Please refer to Usage: SIR-derived models and I recommend to use the parameter values directly as the index. |
Thank you lisphilar for clearing this up for me. Regarding vaccination and variant details, whether you are working on the updates? If I can include at least the vaccination dataset that will be a great success for me. |
Could you provide the details of the dataset you have? I'd like to write a new class as the handler, testing it with the dataset, if available.
I plan to create new class |
Note for updating codes: |
Hi lisphilar I am working on collecting all the required datasets. Soon update them here for further processing.. Thanks. |
Hi lisphilar, I am in the process of getting the dataset from local health departments. I apologize for the long delay. Meanwhile, please let me know how to export the intermediate maps (snl.trend().summary()) in high resolution .tif image format. Thank you |
@AnujTiwari ,
When we use CovsirPhy with Jupyter Notebook, you can export TIFF files as follows. snl.interactive = False
snl.trend(filename="image_filename.tiff", dpi=300) When we use it with Python scripts,
|
Hi lisphilar,
Again, thanks a lot for your help. I am still waiting for getting health data from local health departments. Keep you updated with the developments, But definitely, I am getting vaccination information (%population received 1st and 2nd dose) and looking forward to incorporating vaccination in the reproduction estimation. Dataset: Code: country_data.register_total() jhu_data_cook = cs.JHUData.from_dataframe(country_data.cleaned()) snl = cs.Scenario(country="Cook") snl.trend(algo="Pelt-rbf").summary() S-R Phases: For New Change Points: Error: |
Yes. So, all records with R = 0 should be ignored when S-R trend analysis. However, zeros in your dataset are not actual values. Because you did not have actual values of R, zeros were registered as I proposed. When R values appears not to be actual values,
Please replace |
code: country_data.register_total() jhu_data_cook = cs.JHUData.from_dataframe(country_data.cleaned()) snl = cs.Scenario(country="Cook") snl.trend(algo="Pelt-rbf").summary() snl.clear(include_past=True).summary() |
Hmm...This seems an internal error. The first date might not be changed correctly when zeros were removed.
|
|
Cook County Data.zip |
Thank you for providing the file and I will try to find the cause. |
Could you share the all script via gist or GitHub repository? |
I tried codes with records as-of 18Jul2021. None value of Rt: Error with "snl.estimate_accuracy() |
In case when the records in the phase fit to SIR-F model in-sufficient and R0 is None '-', what do you suggest for getting some significant R0 value for the county - whether I should increase the time period and chk for 21 days instead of 14 days or something else ? Also I am a little concerned about the very high R0 values like 13.59 (for Barbour county) after adding a new record (19th Day records in case of Barbour county). It seems like a small increase in COVID-19 cases/fatal (cases increased by count 2 in Barbour county) is causing a major shift in R0 value. |
Because the phase does not fit to the model, I recommend to shorten the phase e.g. 7 days. However, actually I need the outputs of Thank you for creating #895 and I will investigate it with high priority after work on 21Jul2021 JST. |
thank you for the suggestion. Yes- it will be great if it is possible to compute 'minimum number of the days' phase (from the last day) for which records in the phase sufficiently fit to SIR-F model and provide a significant R0 value.. Thanks |
there are many counties where the number of cases and deaths is comparatively less model throws an error. I request you to please test the model with the Wilcox county dataset. Similar to many other counties, I am not able to get the outcome for this county. import pandas as pd print(loader.local) loader.assign(country="US", province="Wilcox", population=10373) print(loader.local) jhu_data = loader.jhu() snl = cs.Scenario(country="US", province="Wilcox") snl.clear(include_past=True) snl.estimate(cs.SIRF) ValueError: When the targets have multiple columns, we cannot select RMSLE. |
Thank you for the notice, but it is difficult to track all problems here. Could you create separate issues for Babour and Wilcox problems? Here we will discuss adding new methods to |
Sure, I will create seperate issues for these problems. Thanks |
Dear @AnujTiwari , |
Sure I am working on it... Thanks |
Thank you. FYI. |
Hi All, Please help me to utilize the CovsirPhy for US County Level COVID-19 Impact Assessment.
My aim is to index all 3142 US counties as per the impact of COVID-19.
I can request the local health department for clinical datasets. Please help me to understand the following points:
I am very much new to the domain of compartmental modeling so, please help me to understand if I am leaving some important details required to extend the model for the county level.
Thanks
The text was updated successfully, but these errors were encountered: