Learn R Programming

matrixdist (version 1.1.9)

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

Description

Simulation method for multivariate phase-type distributions

Usage

# S4 method for MPHstar
sim(x, n = 1000)

Value

A matrix of sample data for each marginal.

Arguments

x

An object of class MPHstar.

n

Desired sample size for each marginal.

Examples

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

Run the code above in your browser using DataLab