powered by
Constructor function for phase-type distributions
ph(alpha = NULL, S = NULL, structure = NULL, dimension = 3)
An object of class ph.
A probability vector.
A sub-intensity matrix.
A valid ph structure: "general", "coxian", "hyperexponential", "gcoxian", or "gerlang".
"general"
"coxian"
"hyperexponential"
"gcoxian"
"gerlang"
The dimension of the ph structure (if structure is provided).
ph(structure = "gcoxian", dimension = 5) ph(alpha = c(.5, .5), S = matrix(c(-1, .5, .5, -1), 2, 2))
Run the code above in your browser using DataLab