A new Mata class called abm_nw is now available from this GitHub repository. It is intended to help manage a network for Agent Based models. An Agent Based Model is a simulation in which agents, that each follow simple rules, interact with one another and thus produce a often surprising outcome at the macro level. The purpose of an ABM is to explore mechanisms through which actions of the individual agents add up to a macro outcome, by varying the rules that agents have to follow or varying with whom the agent can interact (i.e. varying the network).
Which agents can interact with one another is thus an important part of an ABM. The abm_nw class contains a set of functions that allows one to set up such a network, find neighbourhoods of node, and change the network. This requies Stata version 15. The class itself is defined in the abm_nw.mata file. The class can be imported and used in an agent based model by adding the line do abm_grid.mata to the .do file that defines the ABM. There is a complete example of a simple ABM using abm_nw in the help files, start with help abm_nw.
There is also a "sister" class abm_grid, available here, that does a similar task for when the agents in the agent based model are placed on a square grid, like a chess board.
Related Posts with new Mata class abm_nw for managing networks in an Agent Based Model
Is forvalues inconsistently inclusive?Is this behavior inconsistent or am I missing something? Code: . forv x = 0(0.05)1{ 2. d…
How to design graph for multiple choice question?Dear Statalist, I hope this finds you well. I would like to design a graph (e.g. pie chart or bar …
Time Trend in PM2.5 and How to Deal with It in Cox Regression?Hi All. I am currently study the association between PM 2.5 and adult ANCA asthma ( a disease). Hig…
Challenge in importing csv fileHi Stata Users, I am using Stata 16 to import the attached file using the command below [ Code: i…
How to overlay distribution of participants responses for a certain survey question?Dear Statalist, I hope you are well. I got this comment (Distribution of ‘i’ more extreme for micr…
Subscribe to:
Post Comments (Atom)
0 Response to new Mata class abm_nw for managing networks in an Agent Based Model
Post a Comment