size.ci.lc.stdmean.bs | R Documentation |
Computes 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.
size.ci.lc.stdmean.bs(alpha, d, w, v)
alpha |
alpha level for 1-alpha confidence |
d |
planning value of standardized linear contrast of means |
w |
desired confidence interval width |
v |
vector of between-subjects contrast coefficients |
Returns the required sample size per group for each standardizer
Bonett2009statpsych
v <- c(.5, .5, -.5, -.5)
size.ci.lc.stdmean.bs(.05, 1, .6, v)
# Should return:
# Sample size per group
# Unweighted standardizer: 49
# Single group standardizer: 65
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.