auto.anova: automatic selection, execution & visualization of one-way...

View source: R/auto.anova.R

auto.anovaR Documentation

automatic selection, execution & visualization of one-way analysis of variance

Description

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

Usage

auto.anova(formula, data = NULL, xname = substitute(x), yname = substitute(y))

Arguments

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

Author(s)

Tsz-Hong Chan

Examples

#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











THChan11/autotest documentation built on June 11, 2025, 12:46 a.m.