riph: Random inhomogeneous phase-type
Description
Generates a sample of size n
from an inhomogeneous phase-type
distribution with parameters alpha
, S
and beta
.
Usage
riph(n, dist_type, alpha, S, beta)
Value
The simulated sample.
Arguments
- n
Sample size.
- dist_type
Type of IPH.
- alpha
Initial probabilities.
- S
Sub-intensity matrix.
- beta
Parameter of the transformation.