anovaTable: Run a batch of ANOVAs and store the results in a table.

View source: R/anovaTable.r

anovaTableR Documentation

Run a batch of ANOVAs and store the results in a table.

Description

Run a batch of ANOVAs and store the results in a table.

Usage

anovaTable(
  df,
  model,
  alpha = 0.05,
  unit = "descriptor",
  columns = c("G_Mean", "F_Product", "P_Product", "F_Product_Significance", "SE_Product",
    "R2", "P_ShapiroWilks", "P_Levene_Product", "Mean_Product", "Group_Product")
)

Arguments

df

A dataframe with columns subject, product, "unit", score.

model

A lmer model of ANOVA.

alpha

Risk for the post-hoc multiple comparison test.

unit

The name of the column of the dataframe that will be used as a loop.

columns

Elements to add in the table.

Value

A dataframe.

Examples

{
#data(duration)
#anovaTable(duration,model='score~product')
}

ChemoSens/PTRMSR documentation built on June 15, 2025, 10:40 a.m.