centroids {FactoClass} | R Documentation |
Centroids of the Classes of a Partition
Description
It evaluates the centroids of a partition with the weights in rw
Usage
centroids(df,cl,rw=rep(1/nrow(df),nrow(df)))
Arguments
df |
object of class |
cl |
vector indicating the cluster of each element |
rw |
weight of the rows of df, by default the same |
Value
Object of class list
with the following:
centroids |
class centroids |
weights |
class weights |
cr |
correlation ratios |
Author(s)
Campo Elias Pardo cepardot@unal.edu.co
Examples
data(iris)
centroids(iris[,-5],iris[,5])
[Package FactoClass version 1.2.9 Index]