Sort {bayesmix}R Documentation

Sort MCMC chains according to certain variables

Description

Ascending sorting of results of JAGSrun object with model of class BMMmodel with respect to a given variable.

Usage

Sort(x, by = NULL)

Arguments

x

a JAGSrun object with model of class BMMmodel.

by

variable name according to which the segments shall be ordered.

Details

If by is not specified, the first variable in the corresponding vector of the JAGSrun object is taken.

Value

The input object with results sorted in ascending order according to the variable given in by is returned.

Warning

If there arise problems, the original object is returned with a warning.

Author(s)

Bettina Gruen


[Package bayesmix version 0.7-6 Index]