R/statpsych1.R
power.mean.ps.Rd
Computes the approximate power of a paired-samples t-test for a planned sample size. For a conservatively low power approximation, set the variance planning values to the largest values within their plausible ranges, set the correlation planning value to the smallest value within its plausible range, and set the effect size to a minimally interesting value. The variances of the two measurements can be unequal.
power.mean.ps(alpha, n, var1, var2, es, cor)
alpha level for hypothesis test
planned sample size
planning value of measurement 1 variance
planning value of measurement 2 variance
planning value of mean difference
planning value of correlation between measurements
Returns the approximate power of the test
power.mean.ps(.05, 20, 10.0, 12.0, 2, .7)
#> Power
#> 0.9074354
# Should return:
# Power
# 0.9074354