CKMSelNo | R Documentation |
The current function calculates the Cardinality KMeans (i.e. CKM) solution, without selecting the number of masking variables and clusters (they are assumed known)
CKMSelNo(dataset, n.cluster, n.noisevar, num_starts_kmeans = 10)
dataset |
the orginal dataset on which CKM operates |
n.cluster |
the total number of clusters |
n.noisevar |
the total number of masking variables |
num_starts_kmeans |
the number of starts for the conventional KM analysis (note that in CKM, the conventional KM operates in the lower dimensions). The default value is 10 |
@return The function will return a ckm object that is the list of five elements. The first denotes the selected number of masking variables; the second includes all indicies of signaling variables; the third is a vector illustrating cluster assignment; the forth is the pre-determined or selected "optimal" number of clusters; the fifth is the original dataset.
ncluster <- 3 nnoisevar <- 100 ckm.sel.no <- CKMSelNo(dataset, ncluster, nnoisevar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.