Learn R Programming

matrixdist (version 1.1.2)

sim,ph-method: Simulation Method for phase type distributions

Description

Simulation Method for phase type distributions

Usage

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

Arguments

x

an object of class '>ph.

n

an integer of length of realization.

Value

A realization of independent and identically distributed phase-type variables.

Examples

Run this code
# NOT RUN {
obj <- ph(structure = "general")
sim(obj, n = 100)
# }

Run the code above in your browser using DataLab