% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract.R
\name{rho_trajectory}
\alias{rho_trajectory}
\alias{rho_trajectory.default}
\alias{rho_trajectory.dcvar_fit}
\alias{rho_trajectory.dcvar_covariate_fit}
\alias{rho_trajectory.dcvar_hmm_fit}
\alias{rho_trajectory.dcvar_constant_fit}
\alias{rho_trajectory.dcvar_multilevel_fit}
\alias{rho_trajectory.dcvar_sem_fit}
\alias{rho_trajectory.dcvar_sem_tv_fit}
\alias{rho_trajectory.dcvar_multilevel_tv_fit}
\title{Extract the rho trajectory with credible intervals}
\usage{
rho_trajectory(object, ...)

\method{rho_trajectory}{default}(object, ...)

\method{rho_trajectory}{dcvar_fit}(object, probs = c(0.025, 0.1, 0.5, 0.9, 0.975), ...)

\method{rho_trajectory}{dcvar_covariate_fit}(object, probs = c(0.025, 0.1, 0.5, 0.9, 0.975), ...)

\method{rho_trajectory}{dcvar_hmm_fit}(object, probs = c(0.025, 0.1, 0.5, 0.9, 0.975), ...)

\method{rho_trajectory}{dcvar_constant_fit}(object, probs = c(0.025, 0.1, 0.5, 0.9, 0.975), ...)

\method{rho_trajectory}{dcvar_multilevel_fit}(object, probs = c(0.025, 0.1, 0.5, 0.9, 0.975), ...)

\method{rho_trajectory}{dcvar_sem_fit}(object, probs = c(0.025, 0.1, 0.5, 0.9, 0.975), ...)

\method{rho_trajectory}{dcvar_sem_tv_fit}(object, probs = c(0.025, 0.1, 0.5, 0.9, 0.975), ...)

\method{rho_trajectory}{dcvar_multilevel_tv_fit}(object, probs = c(0.025, 0.1, 0.5, 0.9, 0.975), ...)
}
\arguments{
\item{object}{A fitted model object (\code{dcvar_fit}, \code{dcvar_covariate_fit},
\code{dcvar_hmm_fit}, \code{dcvar_constant_fit}, \code{dcvar_multilevel_fit}, or
\code{dcvar_sem_fit}).}

\item{...}{Additional arguments (unused).}

\item{probs}{Numeric vector of quantile probabilities (default: \code{c(0.025, 0.1, 0.5, 0.9, 0.975)}).}
}
\value{
A data frame with columns \code{time}, \code{mean}, \code{sd}, and one column per
quantile (e.g., \code{q2.5}, \code{q10}, \code{q50}, \code{q90}, \code{q97.5}). For
\code{dcvar_constant_fit} objects, the constant rho is expanded to all \code{n_time - 1}
time points for consistency with the time-varying models.
}
\description{
Returns a data frame with the posterior mean, SD, and quantiles of the
time-varying correlation at each time point.
}
\seealso{
\code{\link[=plot_rho]{plot_rho()}} to visualise the trajectory,
\code{\link[=interpret_rho_trajectory]{interpret_rho_trajectory()}} for a text-based summary,
\code{\link[=var_params]{var_params()}} for VAR parameter extraction.
}
