% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{fitted.dcvar_hmm_fit}
\alias{fitted.dcvar_hmm_fit}
\title{One-step-ahead fitted values for a Markov-switching HMM fit}
\usage{
\method{fitted}{dcvar_hmm_fit}(object, type = c("link", "response"), ...)
}
\arguments{
\item{object}{A \code{dcvar_hmm_fit} object.}

\item{type}{\code{"link"} (default) or \code{"response"} (back-transform to the data scale).}

\item{...}{Additional arguments (unused).}
}
\value{
A data frame with a \code{time} column and one column per variable.
}
\description{
For a state-specific \code{dcvar_hmm()} fit the one-step prediction is the
smoothed-state mixture \verb{sum_k gamma[t, k] * (mu_k + Phi_k (Y[t] - mu_k))},
evaluated at posterior means. A non-switching HMM fit delegates to the shared
method.
}
