Being locked up at home due to the COVID-19 crisis, I developed an interest in models for the spread of a disease. The way I like to learn these things is to play with them. So, I created a little Agent Based Model in Stata (a lot of it in Mata). The first (very crude) version is done, and it is available here:
https://github.com/maartenteaches/covid-sandbox
The way I work with Agent Based Models is I get a very basic version running, then I can experiment with it and gradually make it more complex. This is at the "got the basic model running" stage. To emphasize the obvious, this model is for playing and learning, not for making life or death decisions.
Still I got some interesting results from this very basic model. Or at least I found them interesting, I suspect most professionals will find them self-evident. I made a video on those results, which is available here: https://youtu.be/cV6xKMjiwFE and a video explaining the code behind the simulation: https://youtu.be/i6-U0sl78-Q
Anyone who whishes to join me in playing and learning is welcome to fork the model. If you found some interesting experiments and/or created some interesting changes, then I would love to hear about them by a pull request to this repository.
Related Posts with covid sandbox
Find corresponding X for a threshold of Y in estimated modelDear Statalist, I have estimated a model like this: elec= -12.83927*ldisp + .7345735*ldisp2 + (oth…
Problem with 95% Conf. intervalHi All, I am trying to calculate the proportion of two specific variables and compare the differenc…
Modeling Time in the Discrete Time Analysis using Left-truncated DataI am doing multiple-spell, discrete-time analysis to examine factors shaping time to exiting a rente…
STATA MP version?Dear STATA community, I am facing an issue and I was hoping that some of you might share ideas or e…
Modeling Time in the Discrete Time Analysis using Left-truncated DataI am doing multiple-spell, discrete-time analysis to examine factors shaping time to exiting a rente…
Subscribe to:
Post Comments (Atom)
0 Response to covid sandbox
Post a Comment