Sort {bayesmix}R Documentation

Sorts MCMC chains according to certain variables

Description

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

Usage

Sort(x, by = NULL)

Arguments

x

a jags 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 jags 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-5 Index]