dph: Constructor function for discrete phase-type distributions

View source: R/7.dph.R

dphR Documentation

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)

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).

Value

An object of class dph.

Examples

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))

matrixdist documentation built on Aug. 8, 2023, 5:06 p.m.