sim-miph-method: Simulation method for inhomogeneous multivariate phase-type...

sim,miph-methodR 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)

matrixdist documentation built on Aug. 8, 2023, 5:06 p.m.