% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/QC.R
\name{getModelFormula}
\alias{getModelFormula}
\title{getModelFormula}
\usage{
getModelFormula(formulaVars, verbose = FALSE, ...)
}
\arguments{
\item{formulaVars}{A named character vector mapping metric names to outlier
columns, as historically stored in
`metadata(spe)$formula_variables`. An unnamed character vector of metric
names is also accepted.}

\item{verbose}{Logical. If `TRUE`, prints the generated formula.}

\item{...}{May contain the named replacement `metricList`. If both
`formulaVars` and `metricList` are supplied, `metricList` takes precedence
with a warning.}
}
\value{
`character`
  A one‐sided formula as a string (e.g. "~ log2SignalDensity + ...").
}
\description{
Returns the right‐hand side of a model formula string based on a vector of
metric names.
}
\examples{
example(checkOutliers)
getModelFormula(metadata(spe)$formula_variables)
}
