Learn R Programming

ALSM (version 0.1.9)

bftest: Brown-Forsythe Test between two group

Description

Tests for Constancy of Error Variance between two group

Usage

bftest(fit,group,alpha=.05)

Arguments

fit
model of regression
group
vector, determine two group
alpha
Type I error level

Value

Details

length group and number of observations should be equal

References

Michael H. Kutner; Christopher J. Nachtsheim; John Neter; William Li. Applied Linear Statistical Models Fifth Edition .page 116

Examples

Run this code
################### EXAMPLE PAGE 117


### Group
g<-rep(1,25)
g[TolucaCompany$x<=70]=0
### TEST
bftest(lm(y~x,TolucaCompany),g)

Run the code above in your browser using DataLab