prob_trend_diff: Pairwise posterior comparisons of population trends

prob_trend_diffR Documentation

Pairwise posterior comparisons of population trends

Description

Computes pairwise posterior probabilities that one population trend exceeds another.

Usage

prob_trend_diff(x)

Arguments

x

A 'birp' object.

Details

Element [i, j] of the returned matrix equals P(\gamma_i > \gamma_j \mid y), the posterior probability that the trend associated with row i is greater than the trend associated with column j.

Values close to 1 indicate strong evidence that \gamma_i > \gamma_j, values close to 0 indicate strong evidence that \gamma_i < \gamma_j, and values near 0.5 indicate little evidence for either comparison

Value

A square matrix of pairwise posterior probabilities. Element [i, j] gives P(\gamma_i > \gamma_j \mid y).

See Also

[birp()], [prob_trend()]

Examples

data <- simulate_birp(timepoints = 1:5)
est <- birp(data, timesOfChange = c(2,4))

prob_trend_diff(est)


birp documentation built on Nov. 3, 2026, 1:09 a.m.