one_way_anova_stat: Calculate one-way anova test statistic

View source: R/test_stats.R

one_way_anova_statR Documentation

Calculate one-way anova test statistic

Description

This function takes a data frame, and group and outcome column names as input and returns the one-way anova test statistic

Usage

one_way_anova_stat(df, group_col, outcome_col)

Arguments

df

A data frame

group_col

The name of the column in df that corresponds to the group label

outcome_col

The name of the column in df that corresponds to the outcome variable

Value

The one-way anova test statistic: \sum_{g=1}^G n_g(\overline{X_g} - \overline{X})^2 where g indexes the groups


permutest documentation built on Sept. 26, 2024, 5:07 p.m.