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
Questions regarding Modelling both Sample Selection Bias and Endogenous Treatment BiasDear Statalist, Hi. This is the first time I post questions on the forum. I apologize if my post is…
looping n times, and n is determined by another equationHello, I wish to loop n times, say: forvalues i = 1(1)n{ and n is defined by the last number of i…
Creating indicator variables from multiple categorical variableHello, I wanted to create an indicator variable combining two or more categorical variable. So for …
ivregress 2sls not endogenous in original modelHello, Perhaps this is too obvious of a question, but when running the 2sls command on my model I g…
VAR(1) estimation- errors for each observation in the panel dataDear Stata users, I have estimated the VAR(1) model of the form: zt+1=a + Γzt+ ut+1 Where zt+1 is m…
Subscribe to:
Post Comments (Atom)
0 Response to covid sandbox
Post a Comment