Learn R Programming

bayesmix (version 0.7-6)

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

Value

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

Arguments

x

a JAGSrun object with model of class BMMmodel.

by

variable name according to which the segments shall be ordered.

Author

Bettina Gruen

Warning

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

Details

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