powered by
Generates a sample of size n from a discrete phase-type distribution with parameters alpha and S.
n
alpha
S
rdphasetype(n, alpha, S)
Simulated sample.
Sample size.
Vector of initial probabilities.
Sub-transition matrix.