Learn R Programming

matrixdist (version 1.1.2)

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)

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