% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generateRef_limma.R
\name{Construct_con}
\alias{Construct_con}
\title{Construct Contrast Matrix}
\usage{
Construct_con(pheno)
}
\arguments{
\item{pheno}{Factor with different levels representing groups to contrast.}
}
\value{
Square matrix with dimensions equal to the number of levels in
  `pheno`. Each row represents a contrast where the corresponding level
  is compared against the average of others.
}
\description{
Creates a contrast matrix for differential analysis, where each phenotype
level is contrasted against all other levels combined.
}
\examples{
pheno <- factor(c("A", "B", "C", "D"))
contrast_matrix <- Construct_con(pheno)
print(contrast_matrix)
}
