R/grouped_aov.R
grouped_aov.Rd
Running analysis of variance (aov) across multiple grouping variables.
grouped_aov( data, grouping.vars, formula, effsize = "eta", output = "tidy", ... )
data | A data frame in which the variables specified in the formula will be found. If missing, the variables are searched for in the standard way. |
---|---|
grouping.vars | Grouping variables. |
formula | A formula specifying the model. |
effsize | Character describing the effect size to be displayed: |
output | A character describing what output is expected. Two possible
options: |
... | Currently ignored. |
# uses dataset included in the `groupedstats` package set.seed(123) library(groupedstats) # effect size groupedstats::grouped_aov( formula = wt ~ mpg, data = mtcars, grouping.vars = am, effsize = "eta" )#>#>#>#>#> # A tibble: 2 x 13 #> am term sumsq df1 meansq F.value p.value df2 estimate conf.level #> <dbl> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 1 mpg 3.77 1 3.77 52.3 0.0000169 11 0.826 0.95 #> 2 0 mpg 6.41 1 6.41 24.4 0.000125 17 0.589 0.95 #> # … with 3 more variables: conf.low <dbl>, conf.high <dbl>, significance <chr>