phasetype | R Documentation |
Constructor function for phase-type distributions
phasetype(alpha = NULL, S = NULL, structure = NULL, dimension = 3)
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). |
An object of class phasetype.
phasetype(structure = "gcoxian", dimension = 5)
phasetype(alpha = c(.5, .5), S = matrix(c(-1, .5, .5, -1), 2, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.