Learn R Programming

ipred (version 0.6-14)

predict.slda: Predictions from Stabilised Linear Discriminant Analysis

Description

Predict the class of a new observation based on stabilised LDA.

Usage

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

Arguments

object
object of class slda.
newdata
a data frame of new observations.
...
additional arguments passed to predict.lda.

Value

  • A list with components
  • classthe predicted class (a factor).
  • posteriorposterior probabilities for the classes.
  • xthe scores of test cases.

Details

This function is a method for the generic function predict for class slda. For the details see predict.lda.