Converts a classification vector into a matrix of indicator variables.
A numeric vector of integers. Typically the distinct entries of this vector would represent a classification of observations in a data set.
An integer indicating the number of groups.
An n (number of observations) by k (number of groups) matrix of (0,1) indicator variables.
[i,j]th entry is 1 if
j and 0 otherwise.
Punzo A. and McNicholas P. D.
Punzo, A., and McNicholas, P. D. (2013). Outlier Detection via Parsimonious Mixtures of Contaminated Gaussian Distributions. arXiv.org e-print 1305.4669, available at: http://arxiv.org/abs/1305.4669.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.