Power and sample size for the chi-square distribution given non-centrality, degrees of freedom, alpha, N (for chisq.power), and power (for chisq.sample.size)
chisq.power(n, nc, df, alpha)
chisq.power.dif(n, nc, df, alpha, power)
chisq.sample.size(nc, df=df, alpha, power, lower=20, upper=100000)
power, the difference in power from target power, and sample size, respectively for the three different functions
sample size (for power)
non-centrality parameter
degrees of freedom
type-I error rate
desired power (for sample size)
lower bound for search space for sample size
upper bound for search space for sample size