xda.predict: Classify according to a discriminant analysis fit

Description Usage Arguments Value Author(s)

Description

Functions to classify new data on the basis of a LDA/QDA fit.

Usage

1
2
3
lda.predict(fit, newdata)

qda.predict(fit, newdata)

Arguments

fit

A list as in the output of qda.fit or lda.fit.

newdata

A numeric matrix giving the observed quantities. Rows correspond to observations and columns to variables.

Value

Returns a list with entries:

class

A vector giving the predicted classes of the observations.

posterior

A matrix of posterior probabilities of belonging to the classes.

Author(s)

Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>


AEBilgrau/Bmisc documentation built on May 5, 2019, 11:28 a.m.