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
Unbalanced panel with xtregHello I am using unbalanced panel for the first time. I would like to know if it is possible to use …
sleep command - milliseconds upper limitI would like to pause a stata command for 24 hours due to some externally imposed restriction on cod…
Removing the line below each headingDear Stata users, I have drawn a combined graph as below and would like to remove the line below ea…
generating a dummy variable to identify variation within a groupI want to create two new dummy variables that say whether the variables primset and primact vary wit…
Command for matching*across*a dummy-variable?Dear Statalisters, I want to match (pscores of) observations across pre- and post-intervention. Thi…
Subscribe to:
Post Comments (Atom)
0 Response to covid sandbox
Post a Comment