Standard PSA uses Beta (utilities) and Gamma (costs). Two common modelling situations need specialised distributions: multinomial transition probabilities require the Dirichlet to maintain row-sum constraints, and diseases with hump-shaped hazards need the Log-Logistic survival model.
You are building a 3-state Markov model for Chronic Kidney Disease (Stable -> Progressed -> Dead). From a cohort of 200 patients observed for 1 year starting in “Stable”:
These three probabilities (0.75, 0.175, 0.075) must sum to 1.0 in every PSA iteration. If you sample them independently using three Beta distributions, they will almost never sum to 1 – breaking the model.
The Dirichlet distribution is the multivariate generalisation of the Beta. Its parameters are the observed counts:
\[\boldsymbol{\alpha} = (150, 35, 15)\]
Each sample from a Dirichlet is a complete probability vector that sums to exactly 1.0.
ParCC uses the standard algorithm:
ParCC displays the Dirichlet parameters, mean proportions, a bar chart of sampled proportions, and a ready-to-use R code snippet for your PSA loop.
| Situation | Use |
|---|---|
| Single probability (e.g., utility, event rate) | Beta distribution |
| Two mutually exclusive outcomes | Beta (one parameter determines both) |
| Three or more mutually exclusive outcomes | Dirichlet – guarantees row-sum = 1 |
| Transition matrix row in a Markov model | Dirichlet for each row |
You are modelling recovery after hip replacement surgery. The hazard of revision is:
Neither Exponential (constant hazard) nor Weibull (monotonic hazard) can capture this hump-shaped pattern.
The survival function is:
\[S(t) = \frac{1}{1 + (t/\alpha)^\beta}\]
The hazard function is:
\[h(t) = \frac{(\beta/\alpha)(t/\alpha)^{\beta-1}}{1 + (t/\alpha)^\beta}\]
When \(\beta > 1\), the hazard rises to a peak then falls – exactly the hump shape needed.
From a published Kaplan-Meier curve, identify two time-survival points:
ParCC uses the log-odds transformation. Since \(S(t) = 1/(1 + (t/\alpha)^\beta)\):
\[\ln\left(\frac{1 - S(t)}{S(t)}\right) = \beta \ln(t) - \beta \ln(\alpha)\]
Two points yield two equations, solved for alpha and beta.
| Distribution | Hazard Shape | Best For |
|---|---|---|
| Exponential | Constant | Stable chronic conditions |
| Weibull | Monotonic (increasing or decreasing) | Cancer mortality, device failure |
| Log-Logistic | Hump-shaped or decreasing | Post-surgical revision, immune response |
As with all parametric survival models, extrapolation beyond the observed data requires clinical justification. The Log-Logistic’s long tail means it predicts higher long-term survival than the Weibull – validate this against clinical expectations.