% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pprf.R
\name{predict.pprf_classification}
\alias{predict.pprf_classification}
\title{Predicts labels or vote proportions from a pprf model (classification mode).}
\usage{
\method{predict}{pprf_classification}(object, new_data = NULL, type = NULL, ...)
}
\arguments{
\item{object}{A \code{pprf_classification} model.}

\item{new_data}{A data frame or matrix of new observations. If \code{NULL}, the first positional argument in \code{...} is used for backward compatibility.}

\item{type}{The type of prediction: \code{"class"} (default) returns a factor of predicted labels, \code{"prob"} returns a data frame of vote proportions.}

\item{...}{For backward compatibility, the first positional argument is treated as \code{new_data} when \code{new_data} is \code{NULL}.}
}
\value{
If \code{type = "class"}, a factor of predicted labels. If \code{type = "prob"}, a data frame with one column per group, each row summing to 1.
}
\description{
Predicts labels or vote proportions from a pprf model (classification mode).
}
\examples{
model <- pprf(Species ~ ., data = iris)
predict(model, iris)
predict(model, iris, type = "prob")
}
\seealso{
\code{\link{pprf}}, \code{\link{predict.pprf_regression}}
}
