z_ig_kmeans | R Documentation |
Generates an initialization matrix for a dataset X using k-means.
z_ig_kmeans(X,g)
X |
A matrix or data frame such that rows correspond to observations and columns correspond to variables. Note that this function currently only works with multivariate data p > 1. Note. NO NAS allowed. |
g |
An integer representing the number of groups. |
A numeric matrix is returned of size n times g, with row sums adding up to 1.
Nik Pocuca, Ryan P. Browne and Paul D. McNicholas.
Maintainer: Paul D. McNicholas <mcnicholas@math.mcmaster.ca>
Browne, R.P. and McNicholas, P.D. (2014). Estimating common principal components in high dimensions. Advances in Data Analysis and Classification 8(2), 217-226.
Zhou, H. and Lange, K. (2010). On the bumpy road to the dominant mode. Scandinavian Journal of Statistics 37, 612-631.
Celeux, G., Govaert, G. (1995). Gaussian parsimonious clustering models. Pattern Recognition 28(5), 781-793.
#data("x2")
#z_init <- z_ig_kmeans(x2,g=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.