phasetype: Constructor function for phase-type distributions

View source: R/1.ph.R

phasetypeR Documentation

Constructor function for phase-type distributions

Description

Constructor function for phase-type distributions

Usage

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

Arguments

alpha

A probability vector.

S

A sub-intensity matrix.

structure

A valid phase-type structure ("general", "coxian", "hyperexponential", "gcoxian", "gerlang").

dimension

The dimension of the phase-type structure (if structure is provided).

Value

An object of class phasetype.

Examples

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

jorgeyslas/phfrailty documentation built on April 17, 2025, 4:11 p.m.