powered by
Constructor function for discrete phase-type distributions
dph(alpha = NULL, S = NULL, structure = NULL, dimension = 3)
An object of class dph.
A probability vector.
A sub-transition matrix.
A valid dph structure: "general", "coxian", "hyperexponential", "gcoxian", or "gerlang".
"general"
"coxian"
"hyperexponential"
"gerlang"
The dimension of the dph structure (if structure is provided).
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