Learn R Programming

bayesAB (version 1.1.3)

c.bayesTest: Concatenate bayesTest objects

Description

Concatenate method for objects of class "bayesTest".

Usage

# S3 method for 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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab