initialImpute {kpodclustr} | R Documentation |
Function for initial imputation for k-means
Description
initialImpute
Initial imputation for k-means
Usage
initialImpute(X)
Arguments
X |
Data matrix containing missing entries whose rows are observations and columns are features |
Value
A data matrix containing no missing entries
Author(s)
Jocelyn T. Chi
Examples
p <- 2
n <- 100
k <- 3
sigma <- 0.25
missing <- 0.05
Data <- makeData(p,n,k,sigma,missing)
X <- Data$Missing
X_copy <- initialImpute(X)
[Package kpodclustr version 1.1 Index]