CoMSES Net Discourse Forums

Agent-based model of risk behavior in adolescence


The present model is a combination of a discrete dynamical systems and an agent based model. The formal model consists of a number of coupled equations and decision rules that work in an iterative way. Our model consists of agents with individual property matrices for: behavior, similarity, preference, mutuality, interaction, interaction value, popularity and evaluation. The agents can perform two types of behaviors, namely conventional behaviors (i.e., study, sports and work) and risk behaviors (i.e., use of alcohol, display of aggressiveness and use of soft drugs). The proportional distribution of these properties determines if the agents have a risky, conventional or average lifestyle. The properties behavior and similarity are divided into perceived and real behavior and perceived and real similarity respectively.

To start working with the model, it is best to read the user manual first . If you want to get started soon using the model, have a look at the section Getting started (using the model).

Note that the Excel file makes use of Visual Basic routines which contain the equations of the simulation model, and several other functions used to run the model or to calculate results. You must have Visual Basic for Applications installed in your version of Excel, but a standard PC installation of Excel also installs Visual Basic automatically. To run the model, you must be able to run macros and ActiveX controls. Check your security settings (see section on Excel Macro Security for Excel 2007 or Later in the user manual). While opening the file an excel security warning will appear. Click on “Options…” and say “Enable this content” (enables macros and ActiveX).

Since the model is using a call to Visual Basic, it does not run on Mac computers. If you want to check the code, you can do so by opening Visual Basic in the Excel from the Developer menu tab.

This is a companion discussion topic for the original entry at