summary.ckm: The function offers a summary of the results of CKM. The CKM...

View source: R/SummaryCKM.R

summary.ckmR Documentation

The function offers a summary of the results of CKM. The CKM analysis could either include the selection the number of clusters or without such an selection.

Description

The function offers a summary of the results of CKM. The CKM analysis could either include the selection the number of clusters or without such an selection.

Usage

## S3 method for class 'ckm'
summary(ckm.object)

Arguments

ckm.object

an object of the S3 class "ckm", which could eitehr be the output of the function CKMSelVar (without the selection of number of clusters) or of the function CKMselAll (with the selection of nunber of clusters)

Value

a list of five items that are corresponding to the selected or determine number of clusters. The first and second are integers that indicate the number of clusters and masking variables, respectively. The third is a vector that contains the indices of signaling variables. The forth demonstrates the cluster assignment. The last one, a matrix, represent the centroids of the signaling variables (columns) for all clusters (rows).

Examples

ckm.sel.no <- CKMSelNo(dataset, ncluster, nnoisevar)
ckm.sel.var <- CKMSelVar(dataset, ncluster)
ckm.sel.all <- CKMSelAll(dataset, maxcluster)
summary(ckm.sel.no)
summary(ckm.sel.var)
summary(ckm.sel.all)



syuanuvt/CKM documentation built on Dec. 1, 2022, 9:06 p.m.