% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Fisher_test.R
\name{test.fisher}
\alias{test.fisher}
\title{Fisher's Exact Test}
\usage{
test.fisher(
  x,
  y = NULL,
  title = "Fisher's Exact Test",
  xlab = NULL,
  ylab = "Proportion",
  style = c("stacked", "barplot", "mosaic", "pie"),
  show_table = TRUE,
  help = FALSE,
  verbose = TRUE
)
}
\arguments{
\item{x}{Categorical vector or data frame with two columns.}

\item{y}{Categorical vector (required if x_var is a vector).}

\item{title}{Plot title (string). Default: "Fisher's Exact Test"}

\item{xlab}{Name of the x-axis in the plot (string). Default: NULL (uses variable name)}

\item{ylab}{Name of the y-axis in the plot (string). Default: "Proportion"}

\item{style}{Plot style. Controls the visualization type}

\item{show_table}{Logical. If TRUE, prints the contingency table to the console. Default: TRUE}

\item{help}{Logical. If TRUE, shows detailed function explanation. Default: FALSE}

\item{verbose}{Logical. If TRUE, prints detailed test messages. Default: TRUE}
}
\value{
Invisible object containing the Fisher test result.
}
\description{
Performs Fisher's Exact Test using two categorical vectors or a data frame with two columns,
constructing a contingency table and optionally generating graphical visualizations.
}
\examples{
data <- data.frame(control = c("healthy","healthy","sick","sick","sick"),
                   treatment = c("healthy","healthy","healthy","healthy","sick"))
test.fisher(data)
}
