Learn R Programming

matrixdist (version 1.1.9)

mixture,ph,ph-method: Mixture method for phase-type distributions

Description

Mixture method for phase-type distributions

Usage

# S4 method for ph,ph
mixture(x1, x2, prob)

Value

An object of class ph.

Arguments

x1

An object of class ph.

x2

An object of class ph.

prob

Probability for first object.

Examples

Run this code
ph1 <- ph(structure = "general", dimension = 3)
ph2 <- ph(structure = "gcoxian", dimension = 5)
ph_mix <- mixture(ph1, ph2, 0.5)
ph_mix

Run the code above in your browser using DataLab