kmeans_sv: A MVDA Function

Description Usage Arguments Value

Description

This function execute kmeans clustering on single view patient prorotypes. It require library amap.

Usage

1
2
kmeans_sv(nCenters, prototype, method = "pearson",
  corr.use = "pairwise.complete.obs", iter.max = 10000, nstart = 10)

Arguments

nCenters

is the number of cluster we want to obtain

prototype

is the matrix of prototype we want to cluster

method

is the method by wich distance is evaluated. Default is pearson.

corr.use

is an optional character string giving a method for computing covariances in the presence of missing values. This must be (an abbreviation of) one of the strings "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs". Default value="pairwise.complete.obs"

iter.max

The maximum number of iterations allowed to Kmeans

nstart

If nCenter is a number, how many random sets should be chosen?

Value

a list containing three field: pamk.res is the pamk results. clustering is the vector with clustering assignment. center is the matrix with center prototypes.


angy89/MVDA_package documentation built on May 7, 2019, 8:58 p.m.