% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predictInterval_helpers.R
\name{tmp.pred}
\alias{tmp.pred}
\title{Compute random effect predictions for a single grouping factor}
\usage{
tmp.pred(data, coefs, group)
}
\arguments{
\item{data}{data.frame with predictor columns and a grouping factor column.
The last column must be the grouping factor.}

\item{coefs}{3D array of simulated coefficients with dimensions
(n.sims x terms x levels).}

\item{group}{character name of the grouping factor column in data.}
}
\value{
matrix of predicted values with dimensions (nrow(data) x n.sims).
}
\description{
Internal helper that multiplies predictor data by simulated random effect
coefficients for each grouping level. Handles new levels not present in the
original model data by returning zeros for their random effect contributions.
}
\keyword{internal}
