-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add Contact Matrix and structure age in SEAIRQ Examples and death rate from the disease. #29
Comments
In order to improve my comprehension of the script I've been checking the SEIR Indian age structured but these 3 syntaxes are a bit difficult to understand. CH, CW, CS, are contact structure for House Work and school but please what are their values ? How can I modify them ? |
@Mouvoh this is a good question. The contact matrices CH, CW, CS and CO have been obtained from a previous work by Prem et al: Projecting social contact matrices in 152 countries using contact surveys and demographic data, Kiesha Prem, Alex R. Cook, Mark Jit, PLOS Computational Biology, (2017) As far as the code is concerned, you can use any contact matrix which is of the size M x M. In this example the contact matrix passed for the integration is a simple sum,
You could use
Then vary the constants aH, aW, aS, aO... See also examples in the folder Yes, Is_0[4:12]=3 mean 3 infected for the age classes numbered 4,5...11 at the start of the simulation. The data for the SEIR model is stored as: first M points is S, then E, then Ia and then Is. So if you want to plot Is, you need to see points starting from 3*M. If you are interested in the net number of infections, then you have to sum it over all M age-groups. This is done by
Hope this is helpful. |
Thanks, all has been clarified but the first point is still misunderstood. After some research, I found the studies about contact Matrix I guess it has some empiric values. But in the script I see pyross.contactMatrix.(The country)() so where are theses contact matrix in the different folders ? what if I want for example for France which file should I import in the database ? |
@Mouvoh you can now import contacts matrices for France as
To do it for some other country:
here |
Thanks a lot |
Re Hello, thanks to you I made a lot of things since the beginning. About the covid-cases is there a syntax to import for any countries ? Because I've been on the site worlmeters but the data are not shaped as in the pyross data. |
Yes, you do the same for CH, CS, CO. |
This comment has been minimized.
This comment has been minimized.
Solved just put import panda before pyross |
Hello, for my traineeship I have to use the seairq model. I definitely understood the concept of age structure but I have some problems to catch the syntaxes of how import the data. For example in this SEAIRQ script. What should I do If I want to import the matrix contact ?
The text was updated successfully, but these errors were encountered: