powerF: Power Function for the General Linear F-Test

Description Usage Arguments Value References See Also Examples

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
 
## 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)

HoRM documentation built on March 11, 2021, 9:07 a.m.