size.ci.ratio.mean2: Sample size for a 2-group mean ratio confidence interval
Description
Computes the sample size in each group required to estimate a ratio of
population means with desired confidence interval precision in a 2-group
design. 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. Set R = 1 for equal sample sizes.
Usage
size.ci.ratio.mean2(alpha, var, m1, m2, r, R)
Value
Returns the required sample size for each group
Arguments
alpha
alpha level for 1-alpha confidence
var
planning value of average within-group variance
m1
planning value of mean for group 1
m2
planning value of mean for group 2
r
desired upper to lower confidence interval endpoint ratio