% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lfebd3.R
\name{build_effect_matrix}
\alias{build_effect_matrix}
\title{Build a model matrix for factorial effects}
\usage{
build_effect_matrix(trts, factor_levels)
}
\arguments{
\item{trts}{Character vector of treatment labels. Included for interface
compatibility with the original script.}

\item{factor_levels}{Integer vector giving the number of levels for each
factor.}
}
\value{
A model matrix with one row per treatment combination.
}
\description{
Generates the treatment-effect model matrix for a factorial design using
sum-to-zero contrasts.
}
\seealso{
[FactChar()]
}
