Outer subtraction for given params across MCMC samples.
Computes p_j - p_i not j, for each j.
.pairwise_diff_single(mcmc)
mcmc |
Numeric matrix. MCMC samples. |
Assumes that mcmc contains params from ONE parameter across the indices whose differences are of interest (e.g, resid_random[1:K, 1]).
MCMC Matrix of all differences. Posterior samples of all possible differences, minus duplicates.
Stephen R Martin
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.