StatCharrms (version 0.90.96)

leveneTestSC: Levene test for homogeneity of variance

Description

Test residuals from an analysis for homogeneity of variance. This function is a wrapper function for leveneTest from the car package.

Usage

leveneTestSC(Data, Treatment, Residuals)

Arguments

Data

A data set.

Treatment

The name (as a string) of the treatment variable.

Residuals

Residuals from a model fit.

Value

Treatment

The name of the treatment variable.

Df

The degrees of freedom.

F value

The value of the F-statistic.

Pr(>F)

The p-value corresponding to the F-statistic.

References

Levene, Howard (1960) Robust tests for equality of variances In Ingram Olkin, Harold Hotelling, et al. Contributions to Probability and Statistics: Essays in Honor of Harold Hotelling. Stanford University Press. pp. 278-292.

See Also

leveneTest

Examples

Run this code
# NOT RUN {
	#Data 
		data(lengthWeightData)
	#Subset the data
		SubData<-lengthWeightData[lengthWeightData$Age=='16 week', ] 
		SubData<-SubData[SubData$Generation=='F1', ]
		SubData<-SubData[SubData$SEX=='M', ]
	#Run 
		Residuals<-aov(WEIGHT~Treatment,SubData)$residuals
		wilksTest(Residuals)
# }

Run the code above in your browser using DataCamp Workspace