Sample size for a between-subjects standardized linear contrast of means confidence interval
Source:R/statpsych1.R
size.ci.lc.stdmean.bs.RdComputes the sample size per group (assuming equal sample sizes) required to estimate two types of standardized linear contrasts of population means (unweighted average standardizer and single group standardizer) with desired confidence interval precision in a between-subjects design. Set the standardized linear contrast of means to the largest value within a plausible range for a conservatively large sample size.
For more details, see Section 3.24 of Bonett (2021, Volume 1)
References
Bonett DG (2009). “Estimating standardized linear contrasts of means with desired precision.” Psychological Methods, 14(1), 1–5. ISSN 1939-1463, doi:10.1037/a0014270 .
Bonett DG (2021). Statistical Methods for Psychologists https://dgbonett.sites.ucsc.edu/.
Examples
v <- c(.5, .5, -1)
size.ci.lc.stdmean.bs(.05, .8, .6, v)
#> Sample size per group
#> Unweighted standardizer: 69
#> Single group standardizer: 78
# Should return:
# Sample size per group
# Unweighted standardizer: 69
# Single group standardizer: 78