Learn R Programming

BayesRepDesign (version 0.42)

ssdMeta: Sample size determination for replication success based on meta-analytic significance

Description

This function computes the standard error required to achieve replication success with a certain probability and based on statistical significance of the fixed-effects meta-analytic effect estimate obtained from combining original and replication effect estimates.

Usage

ssdMeta(level, dprior, power, searchInt = c(0, 10))

Value

Returns an object of class "ssdRS". See ssd for details.

Arguments

level

Significance level for the replication effect estimate (one-sided and in the same direction as the original effect estimate)

dprior

Design prior object

power

Desired probability of replication success

searchInt

Interval for numerical search over replication standard errors

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")

Examples

Run this code
## specify design prior
to1 <- 2
so1 <- 1
dprior <- designPrior(to = to1, so = so1, tau = 0.25, sp = Inf)
ssdMeta(level = 0.025^2, dprior = dprior, power = 0.95)

Run the code above in your browser using DataLab