hcsrt {inecolr} | R 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)
[Package inecolr version 0.1.0 Index]