R/statpsych1.R
size.ci.ratio.mean.ps.Rd
Computes the sample size required to estimate a ratio of population means with desired confidence interval precision in a paired-samples design. Set the correlation planning value to the smallest value within a plausible range for a conservatively large sample size. This function requires planning values for each mean and the sample size requirement is very sensitive to these planning values. Set the variance planning value to the largest value within a plausible range for a conservatively large sample size.
size.ci.ratio.mean.ps(alpha, var, m1, m2, cor, r)
alpha level for 1-alpha confidence
planning value of average variance of the two measurements
planning value of mean for measurement 1
planning value of mean for measurement 2
planning value for correlation between measurements
desired upper to lower confidence interval endpoint ratio
Returns the required sample size
size.ci.ratio.mean.ps(.05, 400, 150, 100, .7, 1.2)
#> Sample size
#> 21
# Should return:
# Sample size
# 21