powered by
This function simplifies the call for one-way ANOVA (ow.anova) on a given data frame. Also allows calls for Tukey's Honestly Significant Difference Post-Hoc Comparisons Test (hsd), as well as a means plot (plot).
ow.anova(df, var1, by1, plot = FALSE, hsd = FALSE)
This function returns the summary results table for a one-way ANOVA, examining mean differences in var1 from data frame df, across by1 groups.
var1
df
by1
data frame to read in.
the dependent/outcome variable, \(Y\).
the main independent/predictor variable, \(X\). A grouping variable by which var1 should be parsed.
logical (default set to F). When set to plot = T, will return a means plot with 95 percent confidence intervals, broken out by each group (by1).
F
plot = T
logical (default set to F). When set to hsd = T, will return results of Tukey's Honestly Significant Difference Post-Hoc Comparisons Test.
hsd = T
data <- mtcars ow.anova(data,mpg,cyl,plot=TRUE)
Run the code above in your browser using DataLab