.pairwise_diff_single {MIRES}R Documentation

Outer subtraction for given params across MCMC samples.

Description

Computes p_j - p_i not j, for each j.

Usage

.pairwise_diff_single(mcmc)

Arguments

mcmc

Numeric matrix. MCMC samples.

Details

Assumes that mcmc contains params from ONE parameter across the indices whose differences are of interest (e.g, resid_random[1:K, 1]).

Value

MCMC Matrix of all differences. Posterior samples of all possible differences, minus duplicates.

Author(s)

Stephen R Martin


[Package MIRES version 0.1.0 Index]