Learn R Programming

matrixdist (version 1.1.2)

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)

Arguments

n

Sample size

alpha

Initial probabilities

S

sub-intensity matrix

Value

The simulated sample