% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ghk.R
\name{loglik_person}
\alias{loglik_person}
\title{Person-level partition log-likelihoods}
\usage{
loglik_person(fit, draws = 100, R = 64, seed = 1)
}
\arguments{
\item{fit}{A \code{bayesqm_fit}.}

\item{draws}{Posterior draws to evaluate (default 100, thinned evenly).}

\item{R}{GHK replications per evaluation (default 64).}

\item{seed}{Base seed for the GHK draws (default 1).}
}
\value{
A \verb{draws x N} matrix of log-likelihoods.
}
\description{
GHK-simulated log-likelihood of each participant's sort under each
kept posterior draw (thinned to \code{draws}), the input PSIS-LOO needs.
The GHK seed depends only on the draw index and the person, never on
\code{K}, so log-likelihoods are common-random-number comparable across a
ladder of fits.
}
