z_ig_kmeans: K-means Initialization

View source: R/mixture.R

z_ig_kmeansR Documentation

K-means Initialization

Description

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

Usage

  z_ig_kmeans(X,g)

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.

Value

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

Author(s)

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

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

mixture documentation built on May 29, 2024, 1:47 a.m.

Related to z_ig_kmeans in mixture...