successRegion {BayesRepDesign} | R Documentation |
Creates a success region object which can then be used for
computing the probability of replication success with pors
.
successRegion(intervals)
intervals |
A 2xN matrix containing N disjoint intervals, the first column containing the lower and the second column containing the upper limits |
Returns an object of class "successRegion"
which is a matrix
containing the success intervals sorted in ascending order
Samuel Pawel
Pawel, S., Consonni, G., and Held, L. (2022). Bayesian approaches to designing replication studies. arXiv preprint. doi:10.48550/arXiv.2211.02552
successRegion(intervals = rbind(c(1.96, Inf), c(-Inf, -1.96)))
successRegion(intervals = cbind(1.96, Inf))