sim,mdph-method | R Documentation |
Simulation method for multivariate discrete phase-type distributions
## S4 method for signature 'mdph'
sim(x, n = 1000, equal_marginals = 0)
x |
An object of class mdph. |
n |
Length of realization. |
equal_marginals |
Non-negative integer. If positive, it specifies the number of marginals to simulate from, all from the first matrix. |
A realization of a multivariate discrete phase-type distribution.
obj <- mdph(structure = c("general", "general"))
sim(obj, 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.