randomPermutation: Randomly permute segments for MCMC draws

View source: R/randomPermutation.R

randomPermutationR Documentation

Randomly permute segments for MCMC draws

Description

Random permutation of segment labels for each draw in order to get a better estimate of the unrestricted likelihood.

Usage

randomPermutation(x)

Arguments

x

a JAGSrun object with model of class BMMmodel.

Details

The draws are permuted with respect to the different classes k.

Value

The input object with permuted results for each draw is returned.

Warning

Any variables where there are neither k different chains nor only one chain observed are dropped.

Author(s)

Bettina Gruen


bayesmix documentation built on April 14, 2023, 12:27 a.m.