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
Stata 17 Tables - Constructing a table from nlcom in 1 results?I would like to use the Stata 17 table functions to automate a results table. I have used nlcom to e…
grstesthello every body I'm going to run grstest on my data.my data includes 5 portfolio (p1 p2 p3 p4 p5). …
Generating new variableHi within a dataset I have been looking at there are 33 countries. I am trying to create a dummy var…
Extract the variableHi everyone: I use the DISCRIM data from wooldridge dataset. I try to do regression on the variabl…
Creating variables in long formatHello, I am trying to create a variable "stage1_class" that represents different responses to lx_ite…
Subscribe to:
Post Comments (Atom)
0 Response to covid sandbox
Post a Comment