Concatenate method for objects of class "bayesTest".
# S3 method for bayesTest c(..., errorCheck = TRUE)
... |
|
---|---|
errorCheck | check that objects can be concatenated? Setting this to |
A bayesTest
object with concatenated posteriors.
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)#> -------------------------------------------- #> Distribution used: poisson #> -------------------------------------------- #> Using data with the following properties: #> A B #> Min. 0.00 1.00 #> 1st Qu. 3.75 3.00 #> Median 4.00 4.00 #> Mean 4.86 4.71 #> 3rd Qu. 6.25 6.00 #> Max. 12.00 11.00 #> -------------------------------------------- #> Conjugate Prior Distribution: #> Conjugate Prior Parameters: #> $shape #> [1] 25 #> #> $rate #> [1] 5 #> #> -------------------------------------------- #> Calculated posteriors for the following parameters: #> Lambda #> -------------------------------------------- #> Monte Carlo samples generated per posterior: #> [1] 2e+05