% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/desc_utils.R
\name{perform_categorical_test}
\alias{perform_categorical_test}
\title{Perform statistical tests for categorical variables}
\usage{
perform_categorical_test(tab, test_type)
}
\arguments{
\item{tab}{Contingency table (matrix or table object).}

\item{test_type}{Character string: "chisq" for chi-square, "fisher" for
Fisher's exact, or "auto" for automatic selection.}
}
\value{
Numeric \emph{p}-value from the hypothesis test.
}
\description{
Conducts chi-square or Fisher's exact tests for categorical variables
across groups. Automatically selects Fisher's exact test for small
expected frequencies.
}
\keyword{internal}
