groupedstats (version 0.0.7)

grouped_aov: Function to run analysis of variance (aov) across multiple grouping variables.

Description

Function to run analysis of variance (aov) across multiple grouping variables.

Usage

grouped_aov(data, grouping.vars, formula, effsize = "eta",
  output = "tidy", nboot = 1000)

Arguments

data

Dataframe from which variables are to be taken.

grouping.vars

List of grouping variables.

formula

A formula specifying the model.

effsize

Character describing the effect size to be displayed: "eta" (default) or "omega".

output

A character describing what output is expected. Two possible options: "tidy" (default), which will return the results, or "tukey", which will return results from Tukey's Honest Significant Differences method for post hoc comparisons. The "glance" method to get model summary is currently not supported for this function.

nboot

Number of bootstrap samples for confidence intervals for partial eta-squared and omega-squared (Default: 500).

Value

A tibble dataframe with tidy results from anova. No model summaries available.

Examples

Run this code
# NOT RUN {
# uses dataset included in the groupedstats package
set.seed(123)
library(groupedstats)

groupedstats::grouped_aov(
  formula = rating ~ belief * outcome * question,
  data = intent_morality,
  grouping.vars = item,
  effsize = "eta"
)
# }

Run the code above in your browser using DataLab