Convert between canonical parameters and rates for a phase-type distribution
Source:R/phase_params.R
canpars_to_rates.Rd
Convert between canonical parameters and rates for a phase-type distribution
Arguments
- pars
Canonical parameters, supplied in the order:
sojourn rate in phase 1
additive increments in sojourn rates for each successive phase
probabilities (not rates) of absorption from each phase, for phase 1 up to the second last.
or a list with three components, one vector for each of these three parameter types.
- type
"vector"
or"list"
.- rates
List with two components for progression and absorption rates, in increasing order of phase, or a vector with these concatenated.