Learn R Programming

matrixdist (version 1.1.9)

dph: Constructor function for discrete phase-type distributions

Description

Constructor function for discrete phase-type distributions

Usage

dph(alpha = NULL, S = NULL, structure = NULL, dimension = 3)

Value

An object of class dph.

Arguments

alpha

A probability vector.

S

A sub-transition matrix.

structure

A valid dph structure: "general", "coxian", "hyperexponential", "gcoxian", or "gerlang".

dimension

The dimension of the dph structure (if structure is provided).

Examples

Run this code
dph(structure = "general", dim = 5)
dph(alpha = c(0.5, 0.5), S = matrix(c(0.1, 0.5, 0.5, 0.2), 2, 2))

Run the code above in your browser using DataLab