rdphasetype: Simulate discrete phase-type

View source: R/RcppExports.R

rdphasetypeR Documentation

Simulate discrete phase-type

Description

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

Usage

rdphasetype(n, alpha, S)

Arguments

n

Sample size.

alpha

Vector of initial probabilities.

S

Sub-transition matrix.

Value

Simulated sample.


matrixdist documentation built on Aug. 8, 2023, 5:06 p.m.