3_bftest: Brown-Forsythe Test between two group

Description Usage Arguments Details Value References Examples

Description

Tests for Constancy of Error Variance between two group

Usage

1
bftest(fit,group,alpha=.05)

Arguments

fit

model of regression

group

vector, determine two group

alpha

Type I error level

Details

length group and number of observations should be equal

Value

test statistic, p.value, alpha and degree of freedom

References

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

Examples

1
2
3
4
5
6
7
8
################### EXAMPLE PAGE 117


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

ALSM documentation built on May 2, 2019, 10:19 a.m.

Related to 3_bftest in ALSM...