power.F {HoRM}R Documentation

Power Function for the General Linear F-Test

Description

A function to calculate the power of the general linear F-test.

Usage

power.F(full, reduced, alpha = 0.05)

Arguments

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.

Value

power.F returns a single value (saved as a matrix) with the power for the corresponding general linear F-test.

References

Young, D. S. (2017), Handbook of Regression Methods, CRC Press.

See Also

anova, lm

Examples

 
## 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)

[Package HoRM version 0.1.3 Index]