c.bayesTest {bayesAB}R Documentation

Concatenate bayesTest objects

Description

Concatenate method for objects of class "bayesTest".

Usage

## S3 method for class 'bayesTest'
c(..., errorCheck = TRUE)

Arguments

...

bayesTest objects

errorCheck

check that objects can be concatenated? Setting this to FALSE can have unintended effects if the bayesTest objects have different params but can have some speedups if you are sure the objects are of the same type.

Value

A bayesTest object with concatenated posteriors.

Examples

A_pois <- rpois(100, 5)
B_pois <- rpois(100, 4.7)

AB1 <- bayesTest(A_pois, B_pois, priors = c('shape' = 25, 'rate' = 5), distribution = 'poisson')
AB2 <- bayesTest(A_pois, B_pois, priors = c('shape' = 25, 'rate' = 5), distribution = 'poisson')
c(AB1, AB2)


[Package bayesAB version 1.1.3 Index]