powered by
A function to calculate the power of the general linear F-test.
power.F(full, reduced, alpha = 0.05)
The full model (specified in the alternative hypothesis) in the general linear F-test. This is an object of class lm.
lm
The reduced model (specified in the null hypothesis) in the general linear F-test. This is an object of class lm.
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.
power.F
Young, D. S. (2017), Handbook of Regression Methods, CRC Press.
anova, lm
anova
# NOT RUN { ## 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) # }
Run the code above in your browser using DataLab