% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{assess_recovery}
\alias{assess_recovery}
\alias{assess_classification}
\title{Simulation-study assessment helpers}
\usage{
assess_recovery(Lambda_hat, Lambda_true, Lambda_draws = NULL, prob = 0.95)

assess_classification(flags, Lambda_true)
}
\arguments{
\item{Lambda_hat}{Estimated loading matrix (N x K).}

\item{Lambda_true}{True loading matrix.}

\item{Lambda_draws}{Optional array of shape \verb{[T, N, K]} of posterior
draws, used for coverage / interval metrics.}

\item{prob}{Credible-interval probability.}

\item{flags}{Logical matrix of factor assignments.}
}
\value{
\code{assess_recovery()} returns a list of metrics;
\code{assess_classification()} returns a list with \code{accuracy} and
\code{per_factor}.
}
\description{
\code{assess_recovery()} compares a point estimate and optional posterior
draws to a known loading truth, returning RMSE, per-factor RMSE,
bias, Tucker's congruence, credible-interval coverage, width, and
Gneiting-Raftery interval score. \code{assess_classification()} compares
a logical flag matrix to the true factor assignments using optimal
permutation matching.
}
