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
Seeking an efficient way to establish auxiliary time scales refrenced to data elementsI have been working for 2 + years with data generated from a custom app seeking improvement in treat…
Rounding with a macroHi, To display a number rounded down to a user selected number of decimal places, I wrote some code…
sem vs gsem?Hi everyone. I want to use sem or gsem to evaluate the associations of different patterns of weight …
Generating a variable to count # of "ideal" in each category per observationDear all, I have three variables(idealFruitVeg ; idealfiber ; idealssbweek). Each variable can have…
Hausman and testparmHello everyone, Just a little confused, I currently have a panel data and I am choosing between usin…
Subscribe to:
Post Comments (Atom)
0 Response to covid sandbox
Post a Comment