Learn R Programming

BayesRepDesign (version 0.42)

successRegion: Success region for replication effect estimate

Description

Creates a success region object which can then be used for computing the probability of replication success with pors.

Usage

successRegion(intervals)

Value

Returns an object of class "successRegion" which is a matrix containing the success intervals sorted in ascending order

Arguments

intervals

A 2xN matrix containing N disjoint intervals, the first column containing the lower and the second column containing the upper limits

Author

Samuel Pawel

References

Pawel, S., Consonni, G., and Held, L. (2022). Bayesian approaches to designing replication studies. arXiv preprint. tools:::Rd_expr_doi("10.48550/arXiv.2211.02552")

See Also

pors, ssd

Examples

Run this code
successRegion(intervals = rbind(c(1.96, Inf), c(-Inf, -1.96)))
successRegion(intervals = cbind(1.96, Inf))

Run the code above in your browser using DataLab