Description Usage Arguments Details Value Note Author(s) References Examples
These functions are meant to be used when planning a study (not a replication study, but the original study). They return the sample size for the original study that guarantees a desired safeguard sample ratio (SSR
) given the expected effect size for the study and given the parameters of the safeguard power analysis (alpha level, power, confidence level).
1 2 |
d |
Standardized mean difference (Cohen's d) that is expected for the study. |
SSR |
The desired safeguard sample ratio, i.e., the ratio between the sample size indicated by the safeguard power analysis and the sample size of the original study. |
r |
Pearson's correlation coefficient that is expected for the study |
conf |
Confidence interval (one-tailed) for computing the safeguard effect size, defaults to .80. It is required that .5 < |
sig.level |
Significance level (Type I error probability or alpha) that is used for the power analysis |
power |
Power of the test (1 minus Type II error probability or 1 minus beta) |
nmin |
Minimum sample size considered in the binary search |
nmax |
Maximum sample size considered in the binary search |
The functions SSR.d
and SSR.r
perform a binary search in the allowed values for the sample size (nmin
, nmax
), until a value for the sample size is identified that guarantees a safeguard sample ratio equal to SSR
. Function SSR.d
takes as input the Cohen's d effect size (assuming a two samples t-test), while function SSR.r
takes as input the Pearson correlation coefficient.
A vector of two integers.
N |
The suggested (overall) sample size. |
SSR |
The value of the safeguard sample ratio that would be achieved using N as the sample size. |
In some situations adding or removing one participant (or one participant per group for the SSR.d
, which assumes two samples) can alter the value of SSR
greatly: some exact values of SSR
cannot be reached with any nonfractional sample sizes, therefore the achieved SSR
in output can be different (smaller) from that specified in input. In these situations the functions report the sample size that guarantees a SSR
that is at least as good as that specified in input.
Giulio Costantini (giulio.costantini@unimib.it)
Perugini, M., Gallucci, M., Costantini, G. (in preparation) Safeguard Power as a Guarantee Against Imprecise Power Estimates
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.