C.test: Cochran's C test of homogeneity of variances

View source: R/C.test.R

C.testR Documentation

Cochran's C test of homogeneity of variances

Description

Performs a Cochran's test of the null hypothesis that the largest variance in several sampled variances are the same.

Usage

C.test(object)

Arguments

object

an object of class "lm", containing the specified design.

Details

The test statistic is a ratio that relates the largest variance to the sum of the sampled variances.

Value

A list of class htest containing the following components:

statistic

Cochran's C test statistic

p-value

The p-value of the test

alternative

A character string describing the alternative hypothesis

method

The character string Cochran test of homogeneity of variances

data.name

A character string giving the name of the lm object

estimate

Sample estimates of variances

Author(s)

Leonardo Sandrini-Neto (leonardosandrini@ufpr.br)

See Also

gad

Examples

library(GAD)
data(rohlf95)
CG <- as.fixed(rohlf95$cages)
MQ <- as.random(rohlf95$mosquito)
model <- lm(wing ~ CG + MQ%in%CG, data = rohlf95)
C.test(model)

GAD documentation built on May 29, 2024, 5:58 a.m.