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

predict.sda

Shrinkage Discriminant Analysis 3: Prediction Step


Description

predict.sda performs class prediction.

Usage

## S3 method for class 'sda'
predict(object, Xtest, verbose=TRUE, ...)

Arguments

object

An sda fit object obtained from the function sda.

Xtest

A matrix containing the test data set. Note that the rows correspond to observations and the columns to variables.

verbose

Report shrinkage intensities (sda) and number of used features (predict.sda).

...

Additional arguments for generic predict.

Value

predict.sda predicts class probabilities for each test sample and returns a list with two components:

class

a factor with the most probable class assignment for each test sample, and

posterior

a matrix containing the respective class posterior probabilities.

Author(s)

Miiika Ahdesm\"aki and Korbinian Strimmer (http://strimmerlab.org).

See Also

Examples

# see the examples at the "sda" help page

sda

Shrinkage Discriminant Analysis and CAT Score Variable Selection

v1.3.7
GPL (>= 3)
Authors
Miika Ahdesmaki, Verena Zuber, Sebastian Gibb, and Korbinian Strimmer
Initial release
2015-07-08

We don't support your browser anymore

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