Learn R Programming

mixture (version 2.1.1)

z_ig_kmeans: K-means Initialization

Description

Generates an initialization matrix for a dataset X using k-means.

Usage

z_ig_kmeans(X,g)

Value

A numeric matrix is returned of size n times g, with row sums adding up to 1.

Arguments

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.

Author

Nik Pocuca, Ryan P. Browne and Paul D. McNicholas.

Maintainer: Paul D. McNicholas <mcnicholas@math.mcmaster.ca>

References

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.

Examples

Run this code
#data("x2")
#z_init <- z_ig_kmeans(x2,g=3)

Run the code above in your browser using DataLab