% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Multi_T_test.R
\name{test.tmulti}
\alias{test.tmulti}
\title{Multiple pairwise comparisons with diagnostics}
\usage{
test.tmulti(
  ...,
  comparisons = NULL,
  title = "Multiple comparisons (t / MW)",
  xlab = "",
  ylab = "Value",
  style = c("boxplot", "violin", "mono", "halfeye"),
  p_adjust = c("none", "holm", "BH", "bonferroni"),
  help = FALSE,
  verbose = TRUE
)
}
\arguments{
\item{...}{Numeric vectors or a data.frame with groups in columns.}

\item{comparisons}{List of character vectors specifying pairwise
comparisons (e.g. list(c("A","B"), c("B","C"))).
If NULL, all pairwise combinations are used.}

\item{title}{Plot title.}

\item{xlab}{X-axis label.}

\item{ylab}{Y-axis label.}

\item{style}{Plot style. One of "boxplot", "violin",
"mono", or "halfeye".}

\item{p_adjust}{Method for multiple testing correction.
One of "none", "holm", "BH", "bonferroni".}

\item{help}{Logical. If TRUE, prints usage examples.}

\item{verbose}{Logical. If TRUE, prints results and plots.}
}
\value{
A list with:
\describe{
\item{results}{A tibble with test results.}
\item{plot}{A ggplot object.}
\item{data_long}{Long-format data used for plotting.}
}
}
\description{
Performs multiple pairwise comparisons using Student's t-test
or Mann-Whitney test, with automatic diagnostics, effect sizes,
confidence intervals, multiple testing correction and visualization.
}
\details{
Normality is assessed using Shapiro-Wilk tests and homogeneity
of variances using Levene's test. If assumptions are met, a
pooled-variance t-test is used. Otherwise, the Mann-Whitney test
is applied with bootstrap confidence intervals.

Effect sizes:
\itemize{
\item Cohen's d for t-tests
\item Rank-biserial correlation for Mann-Whitney
}
}
\examples{
df <- data.frame(
  control   = rnorm(30, 10),
  treatment = rnorm(30, 12),
  test1     = rnorm(30, 11),
  test2     = rnorm(30, 15)
)

test.tmulti(
  df,
  comparisons = list(
    c("control", "treatment"),
    c("treatment", "test1")
  )
)

}
