test.equality: Performs Chi-Square Tests for Scale and Location Mixtures
Description
Performs a likelihood ratio test of a location (or scale) normal or regression mixture versus the more
general model. For a normal mixture, the alternative hypothesis is that each
component has its own mean and variance, whereas the null is that all means
(in the case of a scale mixture) or all variances (in the case of a location
mixture) are equal.
This test is asymptotically chi-square with degrees of freedom equal to k-1,
where k is
the number of components.
## Should a location mixture be used for the Old Faithful data?
data(faithful)
attach(faithful)
set.seed(100)
test.equality(y = waiting, arbmean = FALSE, arbvar = TRUE)