% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/detect_design.R
\name{detect_design_vars}
\alias{detect_design_vars}
\title{Detect design variables from a model formula}
\usage{
detect_design_vars(model, parameters)
}
\arguments{
\item{model}{A formula describing the model.}

\item{parameters}{Character vector of parameter names (excluded from design variables).}
}
\value{
Character vector of design variable names, sorted in numerical order for
multi-factor models (e.g. \code{c("x1", "x2", "x10")}).
}
\description{
Inspects the formula to identify which symbols are design variables (as opposed to
parameters or the response).  Enforces the naming convention: \code{"x"} for
single-factor models and \code{"x1"}, \code{"x2"}, \ldots for multi-factor models.
}
