auto_cluster: Cluster Analysis combining Hierarquical and Kmeans cluster

Description Usage Arguments Value Examples

View source: R/multivariate.R

Description

This function runs as Cluster Analysis. The first step is to run a Hierarquical Cluster, and then use centroids as starting point for the Kmeans Cluster. This function outputs the cluster ids for each line in the dataframe and a summary of the group sizes. Details of the analysis for each step are:

Usage

1
auto_cluster(df = NULL, grps = 3:6, name = "kmeans", iter.max = 100)

Arguments

df

A dataframe containing the variables to be used in the analysis.

grps

An array or number with the number of groups that should be created.

name

A string with the name of the variables that will be created.

iter.max

A number indicating the maximum number of iterations for the Kmeans cluster.

Value

A list with three components:

Examples

1
df.cluster <- auto_cluster(df=df,grps=3:6,name='kmeans')

neale-eldash/pd documentation built on June 26, 2021, 10:47 a.m.