minRES {ReplicationSuccess}R Documentation

Computes the minimal relative effect size to achieve replication success

Description

The minimal relative effect size to achieve replication success is computed based on the z-value of the original study, the level for replication success and the relative sample size.

Usage

minRES(zo, 
       c,
       level = thresholdSceptical(level = 0.025, 
                                         alternative = "one.sided", 
                                         type = "golden"))

Arguments

zo

A vector of z-values from original studies.

c

The ratio of the sample size of the replication study to the sample size of the original study

level

One-sided replication success level. Default is the golden level (0.0617).

Value

The relative effect size to achieve replication success with the specified relative sample size and at the specified level. If the p-value from the original study (calculated from the corresponding z-value) is smaller than the level, then NA is returned.

Author(s)

Leonhard Held, Charlotte Micheloud

See Also

sampleSizeRES

Examples

thresNominal <- thresholdSceptical(level = 0.025, 
                                  alternative = "one.sided", 
                                  type = "nominal")
thresGolden <- thresholdSceptical(level = 0.025, 
                                  alternative = "one.sided", 
                                  type = "golden")
                                  
po <- c(0.001, 0.002, 0.01, 0.02, 0.025)
zo <- p2z(po, alternative = "one.sided")

minRES(zo = zo, 
       c = 1, 
       level = thresGolden)
              
minRES(zo = zo, 
       c = 1, 
       level = thresNominal)
              
              
minRES(zo = zo, 
       c = 2, 
       level = thresGolden)
       
minRES(zo = zo, 
       c = 2, 
       level = thresNominal)
              
              


[Package ReplicationSuccess version 0.1-3 Index]