Description Usage Arguments Value Author(s)
Functions to classify new data on the basis of a LDA/QDA fit.
1 2 3 | lda.predict(fit, newdata)
qda.predict(fit, newdata)
|
fit |
A |
newdata |
A numeric matrix giving the observed quantities. Rows correspond to observations and columns to variables. |
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. |
Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.