Learn R Programming

BRugs (version 0.9-2.1)

ranks: Calculation of ranks

Description

These functions are used to calculate ranks of vector valued quantities in the model.

Usage

ranksSet(node)
ranksStats(node)
ranksClear(node)

Value

ranksStats returns a data frame with columns:

val2.5pc

0.025 quantiles

median

medians

val97.5pc

0.975 quantiles

Arguments

node

Character, name of a vector (one dimensional array) variable in the model.

Details

ranksSet creates a monitor that starts building running histograms to represent the rank of each component of node. An amount of storage proportional to the square of the number of components of node is allocated. Even for large numbers of components this can require less storage than calculating the ranks explicitly in the model specification and storing their samples, and it is also much quicker.

ranksStats displays summarises of the distribution of the ranks of each component of node.

ranksClear removes the monitor calculating running histograms for node.

See Also

BRugs, help.WinBUGS