Learn R Programming

matrixdist (version 1.1.3)

rphasetype: Random 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

The simulated sample

Arguments

n

Sample size

alpha

Initial probabilities

S

sub-intensity matrix