hcsrt: Homocedasticity test

hcsrtR Documentation

Homocedasticity test

Description

Test of homocedasticity for lm glm and glmer models based on the trend of the squared residuals as a function of the fitted values

Usage

hcsrt(M)

Arguments

M

A lm, glm or glmer model.

Value

Returns the ANOVA table for the test. Nonsignificant effects mean there is no evidence to reject the null hypothesis that variability is the same across the fitted values range.

Author(s)

Guevara, R., roger.guevara@inecol.mx

References

Rohlf, F. (1981). Biometry the principles and practice of statistics in biological research. Zar, J. H. (1999). Biostatistical analysis. Pearson Education India.

Examples


y <- sort(rnorm(20, 5, 2))
x <- c(1:20)
M <- lm(y~x)
hcsrt(M)

inecolr documentation built on June 8, 2025, 11:26 a.m.

Related to hcsrt in inecolr...