predict.sdda {SDDA}R Documentation

Predict functionality for stepwise diagonal discriminant analysis

Description

Produces predicted classes or class probabilities for an sdda rule.

Usage

 predict.sdda(object, newdata, ...)

Arguments

object A fitted sdda rule object.
newdata A dataset from which we wish to make predictions. Unlike many predict methods this is required, as sdda does not store the original data due to potential memory problems.
... parameters passed to the based dlda or dqda predict method. Specify type to be "class" or "prob" to return the predicted class or the predicted probabilities for each class, by default the predicted class is returned

Value

The predicted class (by default), or the probabilites of being from each class

Author(s)

Glenn Stone


[Package SDDA version 1.0-4 Index]