testResiduals | R Documentation |
This function is only suitable to analyze residuals of ANOVA models. It must not be used to analyze residuals from regression or ANCOVA models.
testResiduals(
model,
normality.test = c("sw", "ad"),
var.test = c("bartlett", "levene")
)
model |
an object of the class lm or aov. |
normality.test |
type of normality test; currently Shapiro-Wilk (SW) and Anderson-Darling (AD) tests are available |
var.test |
type of homogeneity test of variances; currently Bartlett and Levene tests are available |
residuals' normality test and residuals' homoneity test of variances.
library(planex)
library(tidyverse)
baterias <- mutate(baterias,
temperatura = as.factor(temperatura),
tipo = as.factor(tipo)
)
mod <- aov(tempo ~ temperatura*tipo, data=baterias)
testResiduals(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.