% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/easy_anova.R
\name{easy_anova}
\alias{easy_anova}
\title{Run a One-Way ANOVA with Automated Narrative Reporting}
\usage{
easy_anova(formula, data, alpha = 0.05)
}
\arguments{
\item{formula}{A \code{formula} of the form \code{outcome ~ group_factor}, or
a character string. Passed directly to \code{stats::aov()}.}

\item{data}{A data frame containing the variables in \code{formula}.}

\item{alpha}{Significance threshold for the narrative. Default \code{0.05}.}
}
\value{
An object of class \code{"easystat_result"} with:
  \describe{
    \item{\code{test_type}}{Character: \code{"anova"}}
    \item{\code{formula_str}}{Character string of the formula used}
    \item{\code{raw_model}}{The raw \code{aov} object}
    \item{\code{coefficients_table}}{ANOVA table (SS, df, MS, F, p)}
    \item{\code{model_fit_table}}{Summary metrics (F-statistic, eta-squared, p-value)}
    \item{\code{explanation}}{Plain-language narrative string}
  }
}
\description{
Executes a one-way ANOVA using \code{stats::aov()}, extracts key metrics
via \code{broom}, computes eta-squared as an effect-size measure, and
generates a plain-language narrative via the Narrative Generator Module.
}
\examples{
result <- easy_anova(Sepal.Length ~ Species, data = iris)
print(result)

}
