PhaseTypeR: General-Purpose Phase-Type Functions

General implementation of core function from phase-type theory. 'PhaseTypeR' can be used to model continuous and discrete phase-type distributions, both univariate and multivariate. The package includes functions for outputting the mean and (co)variance of phase-type distributions; their density, probability and quantile functions; functions for random draws; functions for reward-transformation; and functions for plotting the distributions as networks. For more information on these functions please refer to Bladt and Nielsen (2017, ISBN: 978-1-4939-8377-3) and Campillo Navarro (2019) <>.

Version: 1.0.4
Imports: expm, igraph, methods
Suggests: knitr, partitions, rmarkdown, testthat
Published: 2022-07-21
Author: Iker Rivas-González ORCID iD [aut, cre], Asger Hobolth [aut], Lars Nørvang Andersen [aut], Colin Guetemme [aut]
Maintainer: Iker Rivas-González <ikerrivas96 at>
License: GPL-3
NeedsCompilation: no
Materials: README NEWS
CRAN checks: PhaseTypeR results


Reference manual: PhaseTypeR.pdf
Vignettes: PhaseTypeR
Using PhaseTypeR for population genetics
Using PhaseTypeR for the site frequency spectrum


Package source: PhaseTypeR_1.0.4.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): PhaseTypeR_1.0.4.tgz, r-oldrel (arm64): PhaseTypeR_1.0.4.tgz, r-release (x86_64): PhaseTypeR_1.0.4.tgz, r-oldrel (x86_64): PhaseTypeR_1.0.4.tgz
Old sources: PhaseTypeR archive


Please use the canonical form to link to this page.