predict.slda: Predictions from Stabilised Linear Discriminant Analysis

View source: R/slda.R

predict.sldaR Documentation

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 documentation built on Sept. 11, 2024, 7:46 p.m.