In: Statistics and Probability
2. Consider a data set {3, 20, 35, 62, 80}, perform hierarchical clustering using complete linkage and plot the dendogram to visualize it.
R code needed with full steps including packages
FIrst step:install the package of Cluster, as shown below
In the step 2: read the package in to the R console using command
library("cluster")
Next step: complete the cluster analysis as follow
Next step: Dendogram
From the dendogram, the order is as follows
Step 1: 2 and 3 are clustered
Step2: 4 and 5 are clustered
Step3: 1 and 2 are clustered
Step 4: 1 and 4 are clustered