Learn R Programming

BSagri (version 0.1-10)

CCDiff: Contrasts of parameters simulated in BUGS

Description

Calculate linear combinations of parameters simulated in BUGS. This is a test version for internal use!

Usage

CCDiff(bugs, dat, cmat = NULL, 
type = c("Dunnett", "Tukey", "Sequen", "Williams", "Changepoint"))

Arguments

bugs

an object of class bugs, containing N values of the joint posterior distribution of in an N-times-P matrix named muvec

dat

an object of R2Bugsdat1w

cmat

a contrast matrix of dimensions M-times-P

type

a single character string, which type of comparisons to perform, if cmat is not given; this argument is ignored if cmat ist specified

Value

An object of class "CCDiff", a list with elements

chains

the N-times-M matrix of the transformed joint posterior distribution

bugs

the bugs object, as input

dat

the object of class "R2Bugsdat1w", as input

cmat

the M-times-P contrast matrix

Details

Testversion, for internal use.