Learn R Programming

matrixdist (version 1.1.9)

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

Description

Simulation method for multivariate phase-type distributions

Usage

# S4 method for mph
sim(x, n = 1000, equal_marginals = 0)

Value

A realization of a multivariate phase-type distribution.

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.

Examples

Run this code
obj <- mph(structure = c("general", "general"))
sim(obj, 100)

Run the code above in your browser using DataLab