power.f.test | R Documentation |
Calculates statistical power for the generic F test with (optional) Type I and Type II error plots.
Unlike other more specific functions power.f.test()
function allows multiple values for one parameter at a time (only when plot = FALSE
).
power.f.test(ncp, df1, df2, alpha = 0.05, plot = TRUE,
plot.main = NULL, plot.sub = NULL,
verbose = TRUE)
ncp |
non-centrality parameter (lambda) |
alpha |
probability of type I error |
df1 |
numerator degrees of freedom |
df2 |
denominator degrees of freedom |
plot |
if |
plot.main |
plot title |
plot.sub |
plot subtitle |
verbose |
if |
power |
statistical power |
# power is defined as the probability of observing F-statistics
# greater than the critical F value
power.f.test(ncp = 1, df1 = 4, df2 = 100, alpha = 0.05)
# power of multiple F-statistics
power.f.test(ncp = c(1.0, 1.5, 2.0, 2.5), plot = FALSE,
df1 = 4, df2 = 100, alpha = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.