mixture,ph,ph-method {matrixdist}R Documentation

Mixture method for phase-type distributions

Description

Mixture method for phase-type distributions

Usage

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

Arguments

x1

An object of class ph.

x2

An object of class ph.

prob

Probability for first object.

Value

An object of class ph.

Examples

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

[Package matrixdist version 1.1.9 Index]