% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predictInterval_helpers.R
\name{simulate_residual_variance}
\alias{simulate_residual_variance}
\title{Simulate residual variance for merMod objects}
\usage{
simulate_residual_variance(merMod, n.sims)
}
\arguments{
\item{merMod}{A merMod object from lme4.}

\item{n.sims}{Number of simulation draws.}
}
\value{
Numeric vector of length `n.sims`.
}
\description{
Internal helper that reproduces the sigma-drawing logic from the original
`predictInterval()` implementation. It returns a numeric vector of length
`n.sims` containing the simulated residual standard deviations.
}
\keyword{internal}
