Description Usage Arguments Value See Also Examples
The function returns the elements needed to calculate the quadratic
discrimination in (11.48). Use the output from this function in
predict_qda
(Section A.3.2) to find the predicted groups.
1 | qda(x, y)
|
x |
The N x P data matrix. |
y |
The N-vector of group identities, assumed to be given by the numbers 1,...,K for K groups. |
A 'list' with the following components:
A P x K matrix, where column K contains the coefficents a_k for (11.31). The final column is all zero.
A K x P x P array, where the Sigma[k,,] contains the sample covariance matrix for group k, \hat{Σ_k}.
The K-vector of constants c_k for (11.48).
predict_qda
and lda
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.