% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PredictMultiBlock.R
\name{PredictMultiBlock}
\alias{PredictMultiBlock}
\title{PredictMultiBlock}
\usage{
PredictMultiBlock(MB = MB, y, model = model, normalise = FALSE, loquace = TRUE)
}
\arguments{
\item{MB}{A MultiBlock object containing the new samples to project.}

\item{y}{Response vector or dummy matrix (optional). When supplied for a
supervised model, Q2, DQ2, and classification statistics are computed for
the new samples.}

\item{model}{A ComDim object (the calibration model).}

\item{normalise}{If TRUE, each block is mean-centred using the training
column means and divided by the training Frobenius norm. Must match the
\code{normalise} setting used during calibration. Default FALSE.}

\item{loquace}{If TRUE, print a message for each set of model elements
that were projected. Default TRUE.}
}
\value{
The \code{model} ComDim object with updated slots:
  \itemize{
    \item \code{Q.scores} — projected global scores (new samples x ndim).
    \item \code{T.scores} — projected local scores (per block).
    \item \code{Orthogonal$Q.scores} — projected global ort scores (if
      model has orthogonal components).
    \item \code{Orthogonal$T.scores} — projected local ort scores.
    \item \code{Prediction$Y.pred} — predicted Y (supervised models).
    \item \code{Q2}, \code{DQ2}, classification slots — when \code{y}
      is supplied for a supervised model.
  }
}
\description{
Projects a new MultiBlock dataset into an existing ComDim model.
Works with models produced by ComDim_PCA, ComDim_PLS,
ComDim_OPLS, ComDim_y, and ComDim_Exploratory. The projection
type (PCA-like, PLS-like, OPLS-like) is determined from the model
structure rather than the method string, so custom method labels from
ComDim_y are handled automatically.
}
