Learn R Programming

matrixdist (version 1.1.9)

rphasetype: Simulate phase-type

Description

Generates a sample of size n from a phase-type distribution with parameters alpha and S.

Usage

rphasetype(n, alpha, S)

Value

Simulated sample.

Arguments

n

Sample size.

alpha

Vector of initial probabilities.

S

Sub-intensity matrix.