ph: Constructor function for phase-type distributions

View source: R/1.ph.R

phR Documentation

Constructor function for phase-type distributions

Description

Constructor function for phase-type distributions

Usage

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

Arguments

alpha

A probability vector.

S

A sub-intensity matrix.

structure

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

dimension

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

Value

An object of class ph.

Examples

ph(structure = "gcoxian", dimension = 5)
ph(alpha = c(.5, .5), S = matrix(c(-1, .5, .5, -1), 2, 2))

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