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

Fit model also with IVA cases #13

Open
mwigh opened this issue May 7, 2020 · 1 comment
Open

Fit model also with IVA cases #13

mwigh opened this issue May 7, 2020 · 1 comment

Comments

@mwigh
Copy link

mwigh commented May 7, 2020

Have you tried fitted using IVA cases?
How does it look?

I tried many things in python yesterday and used e.g. those parameters:

I tried to fit to:

For me it really does not match. If I e.g change to IVA_DELAY=5 it looks really good (and RMSE is smaller).
I tried to fit it by convolve the I_r with different types of arrays, but none gives a good result.
Here is the code for reference:
https://github.com/mwigh/SEIR-model-Stockholm-python/blob/37f76eef65804632bbab9110dc310539982925a5/Script/Estimate_SEIR_sthlm.py#L175

You can set OPTIMIZE_FOR_IN_IVA_OR_NEW_IN_IVA to 1 or 2 if you want to optimize for either IN_IVA or NEW_IN_IVA (together with infected cases).

Is there any flaw in my idea?
Also, the code is not producing any file outputs, it just show a single plot and takes approx 20s to run

IVA_DELAY=11:
Figure_1_delay11

IVA_DELAY=5:
Figure_2_delay5

@FohmAnalys
Copy link
Owner

Thanks for sharing this!

One possible reason for a shorter delay to fit better is how data is recorded. We use the 'epidate' to make the analysis. Epidate is for most individuals the date of symptom onset and for them I guess this delay of ~11 days from SIR is a good estimate. However, for some of the cases the date of sympton onset is not recorded and then the epidate is equal to the testing date and for these the delay should be shorter.

One other thing good to know, if you would use the data from FHMs webpage instead, the date reported there is the 'reporting date', which usually is even later.

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