Package: PhaseTypeR 1.0.5.9000

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) <https://orbit.dtu.dk/en/publications/order-statistics-and-multivariate-discrete-phase-type-distributio>.

Authors:Iker Rivas-González [aut, cre], Asger Hobolth [aut], Lars Nørvang Andersen [aut], Colin Guetemme [aut]

PhaseTypeR_1.0.5.9000.tar.gz
PhaseTypeR_1.0.5.9000.zip(r-4.7)PhaseTypeR_1.0.5.9000.zip(r-4.6)PhaseTypeR_1.0.5.9000.zip(r-4.5)
PhaseTypeR_1.0.5.9000.tgz(r-4.6-any)PhaseTypeR_1.0.5.9000.tgz(r-4.5-any)
PhaseTypeR_1.0.5.9000.tar.gz(r-4.7-any)PhaseTypeR_1.0.5.9000.tar.gz(r-4.6-any)
PhaseTypeR_1.0.5.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
PhaseTypeR/json (API)

# Install 'PhaseTypeR' in R:
install.packages('PhaseTypeR', repos = c('https://rivasiker.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rivasiker/phasetyper/issues

Pkgdown/docs site:https://rivasiker.github.io

On CRAN:

Conda:

5.45 score 2 stars 47 scripts 307 downloads 27 exports 12 dependencies

Last updated from:a370d20700. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE149
source / vignettesOK228
linux-release-x86_64NOTE140
macos-release-arm64NOTE98
macos-oldrel-arm64NOTE101
windows-develNOTE97
windows-releaseNOTE89
windows-oldrelNOTE103
wasm-releaseOK119

Exports:dDPHdMDPHdMPHdPHDPHMDPHMPHpDPHPHphase_type_to_networkpMDPHpMPHpPHqDPHqMDPHqMPHqPHrDPHreward_phase_typerFullDPHrFullMDPHrFullMPHrFullPHrMDPHrMPHrPHvar

Dependencies:clicpp11expmglueigraphlatticelifecyclemagrittrMatrixpkgconfigrlangvctrs

Using PhaseTypeR for the site frequency spectrum
Figure 1 | Figure 2 | Figure 5 | Figure 7 | Figure 8 | Auxiliary functions

Last update: 2023-02-22
Started: 2021-10-06

PhaseTypeR
Preface | 1. Introduction | 2. The phase-type objects | 3. Univariate phase-type distributions | 3.1. The continuous univariate phase-type | 3.2. The discrete univariate phase-type | 4. Reward transformations | 4.1 Strictly positive rewards for continuous phase-type distribution | 4.2. Strictly positive integer-valued rewards for the discrete phase-type distribution | 4.3. Non-negative reward transformation for continuous phase-type distribution | 4.4. Non-negative integer valued reward transformation for discrete phase-type distribution | 5. Multivariate phase-type distributions | 5.1. The multivariate continuous phase-type | 5.2 The discrete multivariate phase-type | 6. Full simulation from a phase-type distribution | Get one simulation from a phase-type | References

Last update: 2022-07-17
Started: 2021-06-21

Using PhaseTypeR for population genetics
1. Introduction to the package | 2. The Univariate Continuous Phase-Type Distribution: $T_{MRCA}$ and $T_{Total}$ | 2.1. Theoretical background | 2.2. Time until the most recent common ancestor ($T_{MRCA}$) | $$\boldsymbol | 2.3. Total tree length ($T_{Total}$) and the reward-transformation | 2.4. Density, distribution and quantile functions | 3. The Univariate Discrete Phase-Type Distribution: $S_{total}$, $\xi_i$ and $\xi_{k+}$ | 3.1. Theoretical background | 3.2. Total number of segregating sites ($S_{total}$) | 3.3. i-tons ($\xi_i$) | 3.4. Density, distribution and quantile functions | 4. The Multivariate Continuous Phase-Type Distribution: $Y_i$ | References

Last update: 2021-11-22
Started: 2021-10-06

Readme and manuals

Help Manual

Help pageTopics
The Univariate Discrete Phase-Type DistributiondDPH DPH_functions pDPH qDPH rDPH rFullDPH
The phase-type distributionDPH generator_functions MDPH MPH PH
The Multivariate Discrete Phase-Type DistributiondMDPH MDPH_functions pMDPH qMDPH rFullMDPH rMDPH
Mean of Phase-Type Distributionsmean mean.cont_phase_type mean.disc_phase_type mean.mult_cont_phase_type mean.mult_disc_phase_type
The Multivariate Continuous Phase-Type DistributiondMPH MPH_functions pMPH qMPH rFullMPH rMPH
The Univariate Continuous Phase-Type DistributiondPH PH_functions pPH qPH rFullPH rPH
Phase-type distribution to networkphase_type_to_network
Print method for phase-type objectsprint.cont_phase_type print.disc_phase_type print.mult_cont_phase_type print.mult_disc_phase_type
Transformation of Phase-Type Distributions via Rewardsreward_phase_type
Pretty summary of the 'cont_phase_type' class.summary.cont_phase_type
Pretty summary of the 'disc_phase_type' class.summary.disc_phase_type
Pretty summary of the 'mult_cont_phase_type' class.summary.mult_cont_phase_type
Pretty summary of the 'mult_dist_phase_type' class.summary.mult_disc_phase_type
Variance and Covariance of Phase-Type Distributionsvar var.cont_phase_type var.disc_phase_type var.mult_cont_phase_type var.mult_disc_phase_type