classify | R Documentation |
Classify new, possibly incomplete, observations arising from a finite mixture of multivariate t distributions.
classify(newobs, params)
newobs |
A matrix with new observations (rows), p columns
(dimensions), and missing entries set to |
params |
A list of parmaters defining a finite mixture of
multivariate t distributions,
usually obtained from |
Classify new observations according to the finite mixture of t distirbutions specified by the parameter values in params, a named list with elements:
"pi"Mixing proportions. A vector of length K that sums to one.
"nu"Degrees of freedom. A vector of length K with entries at least equal to three (thus requiring the existance of the first two moments.)
"mu"Locations. A K \times p matrix, where the k-th row is the location μ_k \in R^p for cluster k.
"Sigma"Dispersions. A p \times p \times K array, where the k-th slice is the p \times p positive-definite disperion matrix Σ_k for cluster k.
A vector classify each observation to the cluster 1, …, K with the highest posterior probability.
Emily Goren, emily.goren@gmail.com based on modifications of code by Ranjan Maitra.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.