| prob_trend_diff | R Documentation |
Computes pairwise posterior probabilities that one population trend exceeds another.
prob_trend_diff(x)
x |
A 'birp' object. |
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
A square matrix of pairwise posterior probabilities. Element
[i, j] gives P(\gamma_i > \gamma_j \mid y).
[birp()], [prob_trend()]
data <- simulate_birp(timepoints = 1:5)
est <- birp(data, timesOfChange = c(2,4))
prob_trend_diff(est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.