Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Details

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

Value

A list with components

class

the predicted class (a factor).

posterior

posterior probabilities for the classes.

x

the scores of test cases.


ipred

Improved Predictors

v0.9-11
GPL (>= 2)
Authors
Andrea Peters [aut], Torsten Hothorn [aut, cre], Brian D. Ripley [ctb], Terry Therneau [ctb], Beth Atkinson [ctb]
Initial release
2021-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.