% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ll_functions.R
\name{xreg2_cont_r_lnorm}
\alias{xreg2_cont_r_lnorm}
\title{Continuous Log-Normal Negative Log-Likelihood with Random Intercept}
\usage{
xreg2_cont_r_lnorm(par, dtalist)
}
\arguments{
\item{par}{Named numeric vector of current parameter values. Must include
either \code{LN_OMEGA} or \code{OMEGA}.}

\item{dtalist}{Internal data list produced by \code{xreg2_fit}. Must
include an \code{internal_id} column.}
}
\value{
Scalar negative log-likelihood.
}
\description{
Computes the negative log-likelihood for a mixed-effects
  log-normal regression model with a random intercept, integrated via
  Gauss-Hermite quadrature. Designed as a \code{p_fun} argument for
  \code{\link{xreg2_control}}.
}
\details{
Continuous log-normal log-likelihood with random intercept
}
\examples{
# ctrl <- xreg2_control(formulas = list(y ~ INTERCEPT + x * SLOPE),
#                        p_fun = xreg2_cont_r_lnorm)

}
