% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrapper_glmer.R
\name{make_glmer_Z_matrix}
\alias{make_glmer_Z_matrix}
\title{Reconstruct an Observation-Level Random-Effect Design Matrix}
\usage{
make_glmer_Z_matrix(Zt, group_idx, N = length(group_idx))
}
\arguments{
\item{Zt}{Transposed block random-effect design matrix.}

\item{group_idx}{Integer group index for each observation.}

\item{N}{Number of observations. Defaults to `length(group_idx)`.}
}
\value{
A matrix with `N` rows and one column per random-effect coefficient.
}
\description{
Converts the transposed block random-effect design matrix used internally by
`rtmb_glmer()` into an observation-level matrix. This is kept as a small
utility for users who want to work from the block matrix returned by
`make_glmer_re_terms()`.
}
