% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{evaluate_factorscore_likelihood_cpp}
\alias{evaluate_factorscore_likelihood_cpp}
\title{Evaluate log-likelihood for a single observation at given factor values}
\usage{
evaluate_factorscore_likelihood_cpp(
  fm_ptr,
  iobs,
  factor_values,
  model_params,
  compute_gradient = FALSE,
  compute_hessian = FALSE,
  include_prior = TRUE
)
}
\arguments{
\item{fm_ptr}{External pointer to FactorModel object}

\item{iobs}{Observation index (0-based)}

\item{factor_values}{Vector of factor values (size n_factors)}

\item{model_params}{Vector of ALL model parameters (from previous estimation)}

\item{compute_gradient}{Whether to compute gradient (default FALSE)}

\item{compute_hessian}{Whether to compute Hessian (default FALSE)}

\item{include_prior}{Whether to include factor prior in likelihood (default TRUE).
Set to FALSE to match legacy C++ behavior (observation likelihood only).}
}
\value{
List with log-likelihood, gradient (if requested), and Hessian (if requested)
}
\description{
Used for factor score estimation. The model parameters are held fixed,
and the factor values are treated as the parameters to optimize.
}
