Description Usage Arguments Details Value Author(s) References See Also Examples
The relative sample size to achieve replication success is computed based on the z-value of the original study, the replication success level, the type of recalibration and either the power or the minimum relative effect size. When the approach based on power is used, the design prior also has to be specified.
1 2 3 4 5 6 7 8 9 10 11 |
zo |
Numeric vector of z-values from original studies. |
power |
The power to achieve replication success. |
d |
The minimum relative effect size (ratio of the effect estimate from the replication study to the effect estimate from the original study) to achieve replication success. |
level |
Numeric vector of replication success levels. The default is 0.025. |
alternative |
Either "one.sided" (default) or "two.sided". Specifies if the replication success level is one-sided or two-sided. |
type |
Type of recalibration. Can be either "golden" (default),
"nominal" (no recalibration), "liberal", "controlled". "golden" ensures
that for an original study just significant at the specified
|
designPrior |
Is only taken into account when |
shrinkage |
Is only taken into account when |
h |
Is only taken into account when |
sampleSizeReplicationSuccess
is the vectorized version of
.sampleSizeReplicationSuccess_
. Vectorize
is
used to vectorize the function.
The relative sample size for replication success. If impossible to
achieve the desired power for specified inputs NaN
is returned.
Leonhard Held, Charlotte Micheloud, Samuel Pawel, Florian Gerber
Held, L. (2020). A new standard for the analysis and design of replication studies (with discussion). Journal of the Royal Statistical Society: Series A (Statistics in Society), 183, 431-448. doi: 10.1111/rssa.12493
Held, L., Micheloud, C., Pawel, S. (2021). The assessment of replication success based on relative effect size. https://arxiv.org/abs/2009.07782
pSceptical
, powerReplicationSuccess
, levelSceptical
1 2 3 4 5 6 7 8 9 10 11 | ## based on power
sampleSizeReplicationSuccess(zo = p2z(0.0025), power = 0.8, level = 0.025,
type = "golden")
sampleSizeReplicationSuccess(zo = p2z(0.0025), power = 0.8, level = 0.025,
type = "golden", designPrior = "predictive")
## based on minimum relative effect size
sampleSizeReplicationSuccess(zo = p2z(0.0025), d = 0.9, level = 0.025,
type = "nominal")
sampleSizeReplicationSuccess(zo = p2z(0.0025), d = 0.9, level = 0.025,
type = "golden")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.