% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/T_test.R
\name{test.t}
\alias{test.t}
\title{Student's t-test (with automatic diagnostics)}
\usage{
test.t(
  ...,
  title = TRUE,
  title_text = "t-test",
  xlab = "Group",
  ylab = "Value",
  style = c("boxplot", "violin", "mono", "halfeye"),
  help = FALSE,
  verbose = TRUE
)
}
\arguments{
\item{...}{Two numeric vectors or a data frame with exactly two columns.}

\item{title}{Logical. If true, return a plot entitled.}

\item{title_text}{Plot title (string). Default: "t-test".}

\item{xlab}{X-axis label in the plot (string). Default: "Group".}

\item{ylab}{Y-axis label in the plot (string). Default: "Value".}

\item{style}{Plot aesthetic generated by the function.}

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

\item{verbose}{Logical. If TRUE, prints detailed messages. Default: TRUE.}
}
\value{
Invisible list with summary, test test_result, method and (optionally) plot.
}
\description{
Performs Student's t-test to compare means between two independent groups,
with automatic checks for normality and homogeneity of variances.
If assumptions are violated, the Mann-Whitney test is automatically applied
(without generating a plot).
}
\examples{
set.seed(123)
df <- data.frame(
  control = rnorm(30, 10),
  treatment = rnorm(30, 15)
)
test.t(df)
}
