rphasetype: Simulate phase-type

View source: R/RcppExports.R

rphasetypeR Documentation

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)

Arguments

n

Sample size.

alpha

Vector of initial probabilities.

S

Sub-intensity matrix.

Value

Simulated sample.


jorgeyslas/phfrailty documentation built on April 17, 2025, 4:11 p.m.