auto.anova | R Documentation |
Conduct residual analysis of the anova model and select between anova or a kruskal-wallis ranked sum test, mean plots or boxplots visualizations will be plotted respectively
auto.anova(formula, data = NULL, xname = substitute(x), yname = substitute(y))
formula |
a formula in the form of y~x, where y is a continuous response variable and x is a categorical predictor variable |
data |
specifying the dataframe or matrix containing the variables of the formula |
xname |
a character string to specify the name of the x variable and x axis |
yname |
a character string to specify the name of the y variable and y axis |
Tsz-Hong Chan
#specifying data argument
auto.anova(Sepal.Length~Species,data = iris,xname = "Species", yname = "Sepal Length")
#without specifying data argument
auto.anova(iris$Sepal.Length~iris$Species,xname = "Species", yname = "Sepal Length")
#return F or 0 during residual analysis to execute a kruskal-wallis ranked sum test anyways
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.