R/statpsych1.R
power.lc.mean.bs.Rd
Computes the approximate power of a test for a linear contrast of population means for planned sample sizes in a between-subject design. The groups can be the factor levels of a single factor design or the combinations of factors in a factorial design. For a conservatively low power approximation, set the variance planning values to the largest values within their plausible ranges, and set the effect size to a minimally interesting value. The within-group variances can be unequal across groups and a Satterthwaite degree of freedom adjustment is used to improve the accuracy of the power approximation.
power.lc.mean.bs(alpha, n, var, es, v)
alpha level for hypothesis test
vector of planned sample sizes
vector of within-group variance planning values
planning value of linear contrast of means
vector of contrast coefficients
Returns the approximate power of the test