powered by
Simulation method for multivariate discrete phase-type distributions
# S4 method for mdph sim(x, n = 1000, equal_marginals = 0)
A realization of a multivariate discrete phase-type distribution.
An object of class mdph.
Length of realization.
Non-negative integer. If positive, it specifies the number of marginals to simulate from, all from the first matrix.
obj <- mdph(structure = c("general", "general")) sim(obj, 100)
Run the code above in your browser using DataLab