- Quickstart
- What is it?
- Installation
- Examples
- Primitives
- Building
- Author
- Feedback
- Credits
- Terms of use
Include the extension in your NetLogo model (at the top):
extensions [stats]
This package contains the NetLogo stats extension, which provides NetLogo with a tables for holding data gathered during runs, a number of statistical procedures to use on those data, and access to a number of useful distributions including the normal, students t, binomial, beta, gamma, and Chi squared distributions. Documentation of the features and use of the stats extension is found in the accompanying manual.
First, download the latest version of the extension. Note that the latest version (2.1.1) of this extension was compiled against NetLogo 6.1. If you are using NetLogo version 6.0 you should downloard stats version 2.0.0, and if you are using one of the NetLogo 5 versions you should download stats version 1.4.0.
Unzip the archive, rename the extracted directory to stats, and move the stats directory to the extensions directory inside your NetLogo application folder. The NetLogo application will normally be in the Applications folder on the Mac, or under C:\Program Files on Windows, and the extensions directory is in the app subdirectory of the NetLogo application. Or you can place the pathdir directory in the same directory holding the NetLogo model in which you want to use this extension.
For more information on NetLogo extensions: http://ccl.northwestern.edu/netlogo/docs/extensions.html
See the stats.nlogo model for examples of usage.
Descriptions of all the stats primitives and their uses are contained in the accompanying manual.
The Makefile uses the NETLOGO environment variable to find the NetLogo installation. However, if NETLOGO has not been defined, the Makefile assumes that it is being run from the app/extensions/stats directory under the directory in which NetLogo has been installed. If compilation succeeds, stats.jar
and stats.jar.pack.gz
will be created. See Installation for instructions on where to put the new stats.jar
and stats.jar.pack.gz
if they are not already there.
Charles Staelin
Smith College
Northampton, MA 01063
Please visit the github issue tracker to submit comments, bug reports, or feature requests. I'm also more than willing to accept pull requests.
Many thanks to the NetLogo developers and the NetLogo user community for answering my questions and suggesting additional features.
The NetLogo stats extension is in the public domain. To the extent possible under law, Charles Staelin has waived all copyright and related or neighboring rights.