IDEAS home Printed from https://ideas.repec.org/p/boc/scsy26/02.html

Agent based models in Mata: Modeling aggregate processes

Author

Listed:
  • Maarten Buis

    (University of Konstanz)

Abstract

An agent based model (ABM) is a simulation in which agents that each follow simple rules interact with one another and thus produce an 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 (for example, varying the network). These models have many applications, like the study of segregation of neighborhoods, the adoption of new technologies, or the spread of a disease. In this talk, I will discuss the abm package. This package contains a number of Mata classes intended to help manage various aspects of an ABM. Implementing a new ABM will always require that person developing the ABM does some programming, but many tasks will be similar across ABMs. For example, in many ABMs, the agents live on a square grid (like a chessboard), and can only interact with their neighbors. The abm_grid class, which is part of the abm package, contains a set of Mata functions that will do those tasks. Alternatively, the agents could live in a network, and the abm_nw class is there to handle that case. The talk will begin with a brief introduction to Mata and classes in Mata and than discuss how to use the classes in the abm package to create a ABM by going through various examples.

Suggested Citation

  • Maarten Buis, 2026. "Agent based models in Mata: Modeling aggregate processes," Sociology Virtual Symposium 2026 02, Stata Users Group.
  • Handle: RePEc:boc:scsy26:02
    as

    Download full text from publisher

    To our knowledge, this item is not available for download. To find whether it is available, there are three options:
    1. Check below whether another version of this item is available online.
    2. Check on the provider's web page whether it is in fact available.
    3. Perform a
    for a similarly titled item that would be available.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:scsy26:02. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.