% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/metrics.R
\name{compute_rho_metrics}
\alias{compute_rho_metrics}
\title{Compute rho trajectory recovery metrics}
\usage{
compute_rho_metrics(rho_true, rho_est, rho_lower, rho_upper)
}
\arguments{
\item{rho_true}{Numeric vector of true rho values (length T-1).}

\item{rho_est}{Numeric vector of estimated rho (posterior mean).}

\item{rho_lower}{Numeric vector of lower interval bounds (2.5\% quantiles).}

\item{rho_upper}{Numeric vector of upper interval bounds (97.5\% quantiles).}
}
\value{
A named list with:
\itemize{
\item \code{bias}: mean bias
\item \code{relative_bias}: relative bias (\%), the mean error normalized by the
mean true value (by the mean absolute true value for mixed-sign
trajectories; \code{NA} with a warning when all true values are near zero)
\item \code{coverage}: proportion of intervals containing true value
\item \code{interval_width}: mean interval width
\item \code{correlation}: Pearson correlation between true and estimated
\item \code{bias_start}, \code{bias_end}: bias at first/last time point
\item \code{coverage_start}, \code{coverage_end}: coverage at endpoints
}
}
\description{
Evaluates how well the estimated rho trajectory recovers the true values.
}
