% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/loo.R
\name{dcvar_compare}
\alias{dcvar_compare}
\title{Compare multiple fitted models using LOO-CV}
\usage{
dcvar_compare(...)
}
\arguments{
\item{...}{Named fitted model objects (e.g., \verb{dcvar = fit1, hmm = fit2}).}
}
\value{
A \code{loo_compare} matrix.
}
\description{
Convenience wrapper around \code{\link[loo:loo_compare]{loo::loo_compare()}} that accepts named
dcvar model fits.
}
\examples{
\donttest{
sim <- simulate_dcvar(
  n_time = 12,
  rho_trajectory = rho_decreasing(12),
  seed = 1
)
fit_dcvar <- dcvar(
  sim$Y_df,
  vars = c("y1", "y2"),
  chains = 1,
  iter_warmup = 10,
  iter_sampling = 10,
  refresh = 0,
  seed = 1
)
fit_constant <- dcvar_constant(
  sim$Y_df,
  vars = c("y1", "y2"),
  chains = 1,
  iter_warmup = 10,
  iter_sampling = 10,
  refresh = 0,
  seed = 1
)
dcvar_compare(dcvar = fit_dcvar, constant = fit_constant)
}
}
\seealso{
\code{\link[loo:loo_compare]{loo::loo_compare()}} for details on the comparison method,
\code{\link[=dcvar]{dcvar()}}, \code{\link[=dcvar_hmm]{dcvar_hmm()}}, \code{\link[=dcvar_constant]{dcvar_constant()}} for fitting models.
}
