ow.anova | R Documentation |
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)
df |
data frame to read in. |
var1 |
the dependent/outcome variable, |
by1 |
the main independent/predictor variable, |
plot |
logical (default set to |
hsd |
logical (default set to |
This function returns the summary results table for a one-way ANOVA, examining mean differences in var1
from data frame df
, across by1
groups.
data <- mtcars
ow.anova(data,mpg,cyl,plot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.