Gillespie's Stochastic Simulation Algorithm (SSA)
Overview
Provides a simple to use, intuitive, and extensible interface to several stochastic simulation algorithms for generating simulated trajectories of finite population continuous-time model. Currently it implements Gillespie's exact stochastic simulation algorithm (Direct method) and several approximate methods (Explicit tau-leap, Binomial tau-leap, and Optimized tau-leap). The package also contains a library of template models that can be run as demo models and can easily be customized and extended. Currently the following models are included, 'Decaying-Dimerization' reaction set, linear chain system, logistic growth model, 'Lotka' predator-prey model, Rosenzweig-MacArthur predator-prey model, 'Kermack-McKendrick' SIR model, and a 'metapopulation' SIRS model. Pineda-Krch et al. (2008) doi:10.18637/jss.v025.i12.
- MINOR CHANGE: Allow using
.tas parameter in the propensity functions.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 7includes a package overview page
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 17%
- Help pages citing references
- 71%
- Decaying-Dimerization Reaction Set (Gillespie, 2001) HTML
- Kermack-McKendrick SIR model (Brown & Rothery, 1993) HTML
- Linear Chain System (Cao et al., 2004) HTML
- Lotka predator-prey model (Gillespie, 1977; Kot, 2001) HTML
- Pearl-Verhulst Logistic growth model (Kot, 2001) HTML
- Radioactive decay model (Gillespie, 1977) HTML
- Rosenzweig-MacArthur predator-prey model (Pineda-Krch et al., 2007) HTML
- SIRS metapopulation model (Pineda-Krch, 2008) HTML
Downloads
Repository
Stars over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/rcannood/gillespiessa on 2026-10-18.
The R CMD check workflow runs on Linux
Dependencies
Installing GillespieSSA adds no packages beyond those that come with R.
Code & Tests
People & History
Maintainer since 0.2-0 (2007)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.6.2Latest
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.6.12019-07-26 · diff ↗
- unarchivedReturned to CRAN2019-07-15
- 0.6.02019-07-15 · diff ↗ ·
removed 1 export
pattern:^[^\\.]added 6 exports
ssa, ssa.btl, ssa.d, ssa.etl, ssa.otl, ssa.plot - RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
Show 22 earlier eventsHide 22 earlier events
- RR 3.1.0 released · 2014-04-10
- orphanedOrphaned by its maintainer2014-01-12maintainer address <mpineda@math.ualbeta.ca> bounced
- RR 3.0.0 released · 2013-04-03
- RR 2.15.0 released · 2012-03-30
- 0.5-42012-01-15 · diff ↗
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- RR 2.11.0 released · 2010-04-22
- RR 2.10.0 released · 2009-10-26
- RR 2.9.0 released · 2009-04-17
- RR 2.8.0 released · 2008-10-20
- RR 2.7.0 released · 2008-04-22
- 0.5-32008-02-21 · diff ↗
- 0.5-22008-01-19 · diff ↗
- 0.5-12008-01-16 · diff ↗
- 0.5-02007-10-20 · diff ↗
- 0.4-02007-10-14 · diff ↗
- 0.3-12007-10-04 · diff ↗
- RR 2.6.0 released · 2007-10-03
- 0.2-02007-09-21
- RR 2.5.0 released · 2007-04-24
Package metadata
- First published
- 2007-09-21
- Total releases
- 11 / 19 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 2.0.0
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("GillespieSSA")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.