sim-mph-method: Simulation method for multivariate phase-type distributions

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

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