View source: R/mixed_anova_2_way.R
mixed_anova_2_way | R Documentation |
Conduct a two-way mixed analysis of variance (ANOVA).
mixed_anova_2_way(
data = NULL,
iv_name_bw_group = NULL,
repeated_measures_col_names = NULL,
iv_name_bw_group_values = NULL,
colors = NULL,
error_bar = "ci",
position_dodge = 0.13,
legend_title = NULL,
x_axis_expansion_add = c(0.2, 0.03),
x_axis_title = NULL,
y_axis_title = "Mean",
output = "all"
)
data |
a data object (a data frame or a data.table) |
iv_name_bw_group |
name of the between-group independent variable |
repeated_measures_col_names |
names of the columns containing the repeated measures |
iv_name_bw_group_values |
restrict all analyses to observations having these values for the between-group independent variable |
colors |
colors of the dots and lines connecting means
(default = NULL) If there are exactly two repeated measures,
then, by default, |
error_bar |
if |
position_dodge |
by how much should the group means and error bars be horizontally offset from each other so as not to overlap? (default = 0.13) |
legend_title |
a character for the legend title. If no input is entered, then, by default, the legend title will be removed. |
x_axis_expansion_add |
inputs for the |
x_axis_title |
a character string for the x-axis title.
If |
y_axis_title |
a character string for the y-axis title
(default = "Mean"). If |
output |
output type can be one of the following:
|
The following package(s) must be installed prior to running this function: Package 'afex' v3.0.9 (or possibly a higher version) by Fox et al. (2020), https://cran.r-project.org/package=car
mixed_anova_2_way(
data = iris, iv_name_bw_group = "Species",
repeated_measures_col_names = c("Sepal.Length", "Petal.Length"))
g1 <- mixed_anova_2_way(
data = iris, iv_name_bw_group = "Species",
repeated_measures_col_names = c("Sepal.Length", "Petal.Length"),
error_bar = "se",
output = "plot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.