stats_clusters | R Documentation |
Method for objects of class pkbc
which computes some
descriptive for each variable with respect to the detected groups.
Method for objects of class pkbc
which computes descriptive
statistics for each variable with respect to the detected groups.
stats_clusters(object, ...)
## S4 method for signature 'pkbc'
stats_clusters(object, k)
object |
Object of class |
... |
possible additional inputs |
k |
Number of clusters to be used. |
The function computes mean, standard deviation, median, inter-quantile range, minimum and maximum for each variable in the data set given the final membership assigned by the clustering algorithm.
List with computed descriptive statistics for each dimension.
pkbc()
for the clustering algorithm
pkbc for the class object definition.
#We generate three samples of 100 observations from 3-dimensional
#Poisson kernel-based densities with rho=0.8 and different mean directions
dat<-matrix(rnorm(300),ncol=3)
#Perform the clustering algorithm
pkbc_res<- pkbc(dat, 3)
stats_clusters(pkbc_res, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.