MicSim: Performing Continuous-Time Microsimulation

Performs continuous-time microsimulation for life-science applications in demography, the social sciences and epidemiology. Individual life courses are represented as trajectories of a continuous-time, time-inhomogeneous Markov multi-state process, as described in Zinn (2014) <doi:10.34196/IJM.00105>. Waiting times between state transitions are generated by inverting the integrated transition hazard, and competing risks are resolved by the earliest of the independently drawn destination-specific waiting times.

Version: 4.0.0
Depends: R (≥ 4.1)
Imports: graphics, grDevices, parallel, splines, stats
Suggests: dplyr, ggplot2, knitr, R.rsp, rmarkdown, testthat (≥ 3.0.0), tidyr
Published: 2026-12-01
DOI: 10.32614/CRAN.package.MicSim
Author: Sabine Zinn [aut, cre], Felix von Heusinger [ctb], Jedrzej Slowinski [ctb], Camila Weber [ctb], Claudio Bosco [ctb] (Contributed to an earlier version of one of the vignettes and its associated code.), Maurizio Teobaldelli [ctb] (Contributed to an earlier version of one of the vignettes and its associated code.)
Maintainer: Sabine Zinn <szinn at diw.de>
BugReports: https://github.com/bieneSchwarze/MicSim/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/bieneSchwarze/MicSim
NeedsCompilation: no
Language: en-GB
Materials: README, NEWS
In views: OfficialStatistics, Survival
CRAN checks: MicSim results

Documentation:

Reference manual: MicSim.html , MicSim.pdf
Vignettes: Example of Simulating Educational Inequalities in Depression Using the MicSim Package (source, R code)
Introduction to new MicSim 4.0.0 (source, R code)
Examples on Simulating Migration Flows for the MicSim Package (source, R code)
MicSim pipeline architecture (diagram) (source)

Downloads:

Package source: MicSim_4.0.0.tar.gz
Windows binaries: r-devel: MicSim_3.0.0.zip, r-release: MicSim_3.0.0.zip, r-oldrel: MicSim_3.0.0.zip
macOS binaries: r-release (arm64): MicSim_4.0.0.tgz, r-oldrel (arm64): MicSim_4.0.0.tgz, r-release (x86_64): MicSim_4.0.0.tgz, r-oldrel (x86_64): MicSim_4.0.0.tgz
Old sources: MicSim archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=MicSim to link to this page.