% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/anova2_interpret.R
\name{anova2_interpret}
\alias{anova2_interpret}
\title{Two-Way ANOVA with Plain-English Interpretation}
\usage{
anova2_interpret(formula, data, type = 2, conf.level = 0.95)
}
\arguments{
\item{formula}{A formula of the form outcome ~ group1 * group2}

\item{data}{A data frame containing the variables}

\item{type}{ANOVA type: 2 or 3. Default is 2. Type 3 is automatically
used when an interaction term is detected in the formula.}

\item{conf.level}{Confidence level. Default 0.95.}
}
\value{
An object of class \code{statease_anova2} containing two-way
ANOVA results and interpretation. Use \code{print()} to display
the formatted report.
}
\description{
Uses Type-2 SS by default (safe for unbalanced designs). Automatically
switches to Type-3 SS when an interaction term is detected and sets
the correct contrasts. Users are warned when interpreting main effects
in the presence of a significant interaction.
}
\examples{
df <- data.frame(
  score  = c(23,45,12,67,34,89,56,43,78,90,11,34),
  method = rep(c("Online","Traditional"), each = 6),
  gender = rep(c("Male","Female"), times = 6)
)
result <- anova2_interpret(score ~ method * gender, data = df)
print(result)
}
