riph: Random inhomogeneous phase-type

View source: R/RcppExports.R

riphR Documentation

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)

Arguments

n

Sample size.

dist_type

Type of IPH.

alpha

Initial probabilities.

S

Sub-intensity matrix.

beta

Parameter of the transformation.

Value

The simulated sample.


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