Learn R Programming

bayesmix (version 0.7-6)

randomPermutation: 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)

Value

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

Arguments

x

a JAGSrun object with model of class BMMmodel.

Author

Bettina Gruen

Warning

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

Details

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