A dynamically-structured matrix population model
Author kerguler
5 Stars
Updated Last
1 Year Ago
Started In
August 2022

sPop2: a dynamically-structured matrix population model


This is the standalone Julia library of the dynamically-structured matrix population model sPop2. This version implements both age-dependent and accumulative processes.


Just type this in Julia:

    using Pkg

Alternatively, one could clone or download and extract the development version from this GitHub repository, and use the package as follows.

    using Pkg
    Pkg.add("Absolute path to the Population.jl directory")

    using Population

Using the library

The following creates a pseudo-structured population with 10 individuals and iterates it one step with 0 mortality and an Erlang-distributed development time of 20±5 steps.

    pop = sPop2(PopDataSto())
    AddProcess(pop, AccErlang())
    AddPop(pop, 10)
    pr = (devmn=20.0, devsd=5.0)
    size, completed, poptabledone = StepPop(pop, pr)

Please see docs for further information.


  • Erguler, K., Mendel, J., Petrić, D.V. et al. A dynamically structured matrix population model for insect life histories observed under variable environmental conditions. Sci Rep 12, 11587 (2022). link
  • Erguler K. sPop: Age-structured discrete-time population dynamics model in C, Python, and R [version 3; peer review: 2 approved]. F1000Research 2020, 7:1220. link