rankMCMC {poth}R Documentation

Calculate a ranking probabilities matrix from MCMC samples

Description

Calculate a ranking probabilities matrix from MCMC samples

Usage

rankMCMC(x, small.values = "desirable", trts = NULL)

Arguments

x

a matrix or data.frame of MCMC samples, where rows are MCMC samples and columns are relative effects (relative to anchor) for treatments. must have column names that are the name of each treatment.

small.values

A character string specifying whether small outcome values indicate a beneficial ("desirable") or harmful ("undesirable") effect, can be abbreviated.

trts

character vector of treatment names, optional if samples has column names

Value

A matrix of ranking probabilities where rows are treatments and columns are ranks


[Package poth version 0.2-0 Index]