% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrapper_glmer.R
\name{make_glmer_re_terms}
\alias{make_glmer_re_terms}
\title{Prepare GLMM Formula Components}
\usage{
make_glmer_re_terms(
  formula,
  data,
  family = "gaussian",
  resid_group = NULL,
  resid_time = NULL,
  within = NULL,
  factors = NULL,
  missing = "listwise"
)
}
\arguments{
\item{formula}{lme4-style formula.}

\item{data}{Data frame.}

\item{family}{Character string of the distribution family.}

\item{resid_group}{Optional residual-correlation grouping variable.}

\item{resid_time}{Optional residual-correlation time variable.}

\item{within}{Optional list for wide-to-long conversion when the response is
written as `cbind(...)`.}

\item{factors}{Optional character vector of variables to treat as factors.}

\item{missing}{Missing value handling strategy: "listwise".}
}
\value{
A list containing `Y`, `X`, `trials`, `offset`, `N`, fixed-effect
metadata, and random-effect terms.
}
\description{
Builds the response, fixed-effect model matrix, and lme4-style random-effect
design components used by `rtmb_glmer()`. This is the user-facing helper that
reproduces what the wrapper places in the generated `setup` block.
}
