% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reconc_t.R
\name{.core_reconc_t}
\alias{.core_reconc_t}
\title{Core reconciliation via multivariate t-distribution.}
\usage{
.core_reconc_t(
  A,
  base_fc_mean,
  Psi_post,
  nu_post,
  return_upper = FALSE,
  return_parameters = FALSE
)
}
\arguments{
\item{A}{Matrix (n_upper x n_bottom) defining the hierarchy where upper = A \%*\% bottom.}

\item{base_fc_mean}{Vector of length (n_upper + n_bottom) containing the base forecast means
for both upper and bottom levels (upper first, then bottom).}

\item{Psi_post}{Scale matrix (n_upper + n_bottom x n_upper + n_bottom) of the posterior
multivariate t-distribution.}

\item{nu_post}{Degrees of freedom of the posterior multivariate t-distribution.}

\item{return_upper}{Logical, whether to return the reconciled parameters for the upper variables (default is FALSE).}
}
\value{
A list containing:
\itemize{
\item \code{bottom_rec_mean}: reconciled bottom-level mean.
\item \code{bottom_rec_scale_matrix}: reconciled bottom-level scale matrix.
\item \code{bottom_rec_df}: reconciled degrees of freedom.
}
If \code{return_upper} is TRUE, also returns:
\itemize{
\item \code{upper_rec_mean}: reconciled upper-level mean.
\item \code{upper_rec_scale_matrix}: reconciled upper-level scale matrix.
\item \code{upper_rec_df}: reconciled upper-level degrees of freedom.
}
}
\description{
Internal function that performs the core reconciliation logic for the t-distribution based
reconciliation method. This function assumes an uncertain covariance matrix with an Inverse-Wishart prior.
}
\keyword{internal}
