% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract.R
\name{phi_trajectory}
\alias{phi_trajectory}
\alias{phi_trajectory.default}
\alias{phi_trajectory.dcvar_tv_fit}
\alias{phi_trajectory.dcvar_sem_tv_fit}
\alias{phi_trajectory.dcvar_multilevel_tv_fit}
\title{Extract the time-varying VAR coefficient trajectories}
\usage{
phi_trajectory(object, ...)

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

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

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

\method{phi_trajectory}{dcvar_multilevel_tv_fit}(
  object,
  probs = c(0.025, 0.1, 0.5, 0.9, 0.975),
  unit = NULL,
  ...
)
}
\arguments{
\item{object}{A fitted model object.}

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

\item{probs}{Numeric vector of quantile probabilities
(default: \code{c(0.025, 0.1, 0.5, 0.9, 0.975)}).}

\item{unit}{For \code{dcvar_multilevel_tv_fit} objects, optional unit selector.
Use \code{NULL} (default) for the population-level Phi path, \code{"all"} for all
unit-specific paths, or a vector of unit IDs for selected unit paths.}
}
\value{
A data frame with columns \code{time}, \code{coefficient} (one of
\code{"phi11"}, \code{"phi12"}, \code{"phi21"}, \code{"phi22"}), \code{mean}, \code{sd}, and one
column per requested quantile.
}
\description{
Returns posterior summaries of the four VAR(1) coefficient paths
phi11(t), phi12(t), phi21(t), phi22(t) from a time-varying DC-VAR fit.
For fits with \code{tv_phi = FALSE} the constant baseline coefficients are
tiled over time so the return shape does not depend on the flag.
}
\seealso{
\code{\link[=sigma_trajectory]{sigma_trajectory()}}, \code{\link[=rho_trajectory]{rho_trajectory()}}, \code{\link[=plot_phi_trajectory]{plot_phi_trajectory()}}
}
