Power Function for the General Linear F-Test
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 lm
.reduced
: The reduced model (specified in the null hypothesis) in the general linear F-test. This is an object of class lm
.alpha
: Significance level of the test. Default level is 0.05. ## Returnspower.F
returns a single value (saved as a matrix) with the power for the corresponding general linear F-test. ## See Also
anova
, lm
Young, D. S. (2017), Handbook of Regression Methods, CRC Press.
## 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)