sim,miph-method {matrixdist} | R Documentation |
Simulation method for inhomogeneous multivariate phase-type distributions
Description
Simulation method for inhomogeneous multivariate phase-type distributions
Usage
## S4 method for signature 'miph'
sim(x, n = 1000)
Arguments
x |
An object of class miph. |
n |
An integer of length of realization. |
Value
A realization of independent and identically distributed inhomogeneous multivariate phase-type variables. If x is a MoE miph an array of dimension c(n,d,m) is returned, with d the number of marginals and m the number of initial distribution vectors.
Examples
under_mph <- mph(structure = c("general", "general"))
obj <- miph(under_mph, gfun = c("weibull", "pareto"), gfun_pars = list(c(2), c(3)))
sim(obj, 100)
[Package matrixdist version 1.1.9 Index]