sim,mph-method {matrixdist} | R Documentation |
Simulation method for multivariate phase-type distributions
Description
Simulation method for multivariate phase-type distributions
Usage
## S4 method for signature 'mph'
sim(x, n = 1000, equal_marginals = 0)
Arguments
x |
An object of class mph. |
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. |
Value
A realization of a multivariate phase-type distribution.
Examples
obj <- mph(structure = c("general", "general"))
sim(obj, 100)
[Package matrixdist version 1.1.9 Index]