R/statpsych3.R
size.test.lc.prop.bs.Rd
Computes the sample size in each group (assuming equal sample sizes) required to test a linear contrast of population proportions with desired power in a between-subjects design. This function requires planning values for all proportions. Set the proportion planning values to .5 for a conservatively large sample size. The planning value for the effect size (linear contrast of proportions) could be set equal to the linear contrast of proportion planning values or it could be set equal to a minimally interesting effect size.
size.test.lc.prop.bs(alpha, pow, p, es, v)
alpha level for hypothesis test
desired power
vector of proportion planning values
planning value of proportion linear contrast
vector of between-subjects contrast coefficients
Returns the required sample size for each group