effectSizeSignificance: Computes the minimum relative effect size to achieve...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/effectSizeSignificance.R

Description

The minimum relative effect size (replication to original) to achieve significance of the replication study is computed based on the result of the original study and the corresponding variance ratio.

Usage

1
2
3
4
5
effectSizeSignificance(zo,
                       c = 1,
                       level = 0.025, 
                       alternative = "one.sided")
       

Arguments

zo

A vector of z-values from original studies.

c

A vector of variance ratios of the original and replication effect estimates. This is usually the ratio of the sample size of the replication study to the sample size of the original study.

level

Significance level. Default is 0.025

alternative

Either "one.sided" or "two.sided". Defaults to "one.sided". Specifies if the p-value is one-sided or two-sided.

Value

The minimum relative effect size to achieve significance of the replication study.

Author(s)

Charlotte Micheloud

References

Held, L., Micheloud, C. & Pawel, S. (2020). The assessment of replication success based on relative effect size. https://arxiv.org/abs/2009.07782

See Also

effectSizeReplicationSuccess

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
po <- c(0.001, 0.002, 0.01, 0.02, 0.025)
zo <- p2z(po, alternative = "one.sided")

effectSizeSignificance(zo = zo, 
                       c = 1, 
                       level = 0.025, 
                       alternative = "one.sided")
              
effectSizeSignificance(zo = zo, 
                       c = 1, 
                       level = 0.05, 
                       alternative = "two.sided")
                   
effectSizeSignificance(zo = zo, 
                       c = 50, 
                       level = 0.025, 
                       alternative = "one.sided")

ReplicationSuccess documentation built on Dec. 2, 2020, 3 p.m.