power.F | R Documentation |
A function to calculate the power of the general linear F-test.
power.F(full, reduced, alpha = 0.05)
full |
The full model (specified in the alternative hypothesis) in the general linear F-test. This is an object of class |
reduced |
The reduced model (specified in the null hypothesis) in the general linear F-test. This is an object of class |
alpha |
Significance level of the test. Default level is 0.05. |
power.F
returns a single value (saved as a matrix) with the power for the corresponding general linear F-test.
Young, D. S. (2017), Handbook of Regression Methods, CRC Press.
anova
, lm
## Applied to the toy dataset.
data(toy)
full <- lm(y~x, data = toy)
reduced <- lm(y~1, data = toy)
power.F(full = full, reduced = reduced, alpha = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.