% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods.R
\name{predict.werm_fit}
\alias{predict.werm_fit}
\title{Predict using the last-segment refit}
\usage{
\method{predict}{werm_fit}(object, newdata, type = "class", ...)
}
\arguments{
\item{object}{A \code{werm_fit} object returned by any \verb{werm_*} function.}

\item{newdata}{Numeric matrix of shape \verb{(m, p)}.}

\item{type}{Character. For logistic estimators: \code{"class"} (default) or
\code{"prob"} (returns a \verb{(m, 2)} probability matrix).}

\item{...}{Ignored.}
}
\value{
Numeric vector of length \code{m} (regression) or character vector /
probability matrix (logistic).
}
\description{
Evaluates the unweighted base-loss model fitted on the last detected
segment. For logistic estimators, returns class labels.
}
