Learn R Programming

matrixdist (version 1.1.9)

sim,mdph-method: Simulation method for multivariate discrete phase-type distributions

Description

Simulation method for multivariate discrete phase-type distributions

Usage

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

Value

A realization of a multivariate discrete phase-type distribution.

Arguments

x

An object of class mdph.

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 <- mdph(structure = c("general", "general"))
sim(obj, 100)

Run the code above in your browser using DataLab