Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dot-pairwise_diff_single

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


MIRES

Measurement Invariance Assessment Using Random Effects Models and Shrinkage

v0.1.0
MIT + file LICENSE
Authors
Stephen Martin [aut, cre] (<https://orcid.org/0000-0001-8085-2390>), Philippe Rast [aut] (<https://orcid.org/0000-0003-3630-6629>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.