Skip to contents

Applies the fitted ODA rule to new attribute values, returning predicted class labels in the original label space. Missing values and miss-coded values return NA_integer_. Failed fits return all NA_integer_ with a warning.

Usage

# S3 method for class 'oda_fit'
predict(object, newdata, ...)

Arguments

object

An oda_fit object from oda_fit.

newdata

Numeric vector or single-column data frame of attribute values.

...

Unused.

Value

Integer vector of predicted class labels, length length(newdata) or nrow(newdata).