Learn R Programming

matrixdist (version 1.1.9)

random_structure: Random structure of a phase-type

Description

Generates random parameters alpha and S of a phase-type distribution of dimension p with chosen structure.

Usage

random_structure(p, structure = "general", scale_factor = 1)

Value

Random parameters alpha and S of a phase-type.

Arguments

p

Dimension of the phase-type.

structure

Type of structure: "general", "hyperexponential", "gerlang", "coxian" or "gcoxian".

scale_factor

A factor that multiplies the sub-intensity matrix.