R/statpsych2.R
size.interval.cor.Rd
Computes the sample size required to perform an interval test for a population Pearson or a partial correlation with desired power where the interval midpoint is equal to zero. This function can be used to plan a study where the goal is to show that the population correlation is small. Set s = 0 for a Pearson correlation. The correlation planning value must be a value within the hypothesized interval.
size.interval.cor(alpha, pow, cor, s, h)
alpha level for hypothesis test
desired power
planning value of correlation
number of control variables
upper limit of hypothesized interval
Returns the required sample size
size.interval.cor(.05, .8, .1, 0, .25)
#> Sample size
#> 360
# Should return:
# Sample size
# 360