PhaseTypeGenetics

The package documentation

PhaseTypeGenetics

PhaseTypeGenetics: A package providing several properties of the phase-type distribution with applications in population genetics

Phase-type distributions

Analysing phase-type distributions

discphasetype() contphasetype()

Phase-type distributed objects

dphasetype() pphasetype() qphasetype() rphasetype()

The phase-type distribution

minima() maxima()

Minima and maxima of phase-type distributions

phmean() phvar()

Mean and variance of phase-type distributions

moments()

Statistical moments of phase-type distributions

phsum()

Sum of phase-type distributions

summary(<discphasetype>) summary(<contphasetype>)

Summaries of phase-type distributed objects

Applications in population genetics

The package includes some functions that are useful in connection to population genetics

BlockCountProcess()

Block counting process

discretization()

Discretizing a continuous phase-type distribution

dSegregatingSites()

The number of segregating sites

RewTransDistribution()

Reward transformation

SiteFrequencies()

Site frequency spectrum

Data

T_MRCA

The time to the most recent common ancestor (MRCA) for a sample size of n = 5,10,20,50 and 100.

T_Total

The total branch length for a sample size of n = 5,10,20,50 and 100.