hcsrt | R Documentation |
Test of homocedasticity for lm glm and glmer models based on the trend of the squared residuals as a function of the fitted values
hcsrt(M)
M |
A lm, glm or glmer model. |
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.
Guevara, R., roger.guevara@inecol.mx
Rohlf, F. (1981). Biometry the principles and practice of statistics in biological research. Zar, J. H. (1999). Biostatistical analysis. Pearson Education India.
y <- sort(rnorm(20, 5, 2))
x <- c(1:20)
M <- lm(y~x)
hcsrt(M)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.