Power and sample size for the F distribution

Description

Power and sample size for the F distribution given non-centrality, degrees of freedom, alpha, N (for f.power), and power (for f.sample.size)

Usage

1
2
3
f.power(n, nc, df1, alpha)
f.power.dif(n, nc, df1, alpha, power)
f.sample.size(nc, df1, alpha, power, lower=20, upper=10000)

Arguments

n

sample size

nc

non-centrality parameter

df1

degrees of freedom for numerator of f distribution

alpha

type-I error

power

desired power (for sample size)

lower

lower limit for search space for sample size solution

upper

upper limit for search space for sample size solution

Value

power, the difference in power from target power, and sample size, respectively for the three functions, assuming an F distribution for the test statistic

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.