Given a data set X, the following R commands have been run: library(cluster); agnes (x=X)->AG; kmeans (x=X, centers=K)->KM Match the following objects with what you expect the R output to be. KM$cluster Choose... KM$tot.withinss Choose... KM$betweenss Choose... AG$order ✓ Choose... [1] 10.8461538 KM$withinss AG$height nrow(X) K KM$totss [1] 29.8461538 [1] 1.4142, 0, 0, 1.8536, 2.366, 0, 2, 2.4752, 1, 1.5107, 1.2071, 1 [1] 19 [1] 12, 7 [1] 2 [1] 1, 3, 5, 8, 11, 2, 7, 12, 4, 10, 6, 9, 13 [1] 13 [1] 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 2, 1, 1

icon
Related questions
Question

Choose an option for each of them

Given a data set X, the following R commands have been run:
library(cluster);
agnes (x=X)->AG;
kmeans (x=X, centers=K)->KM
Match the following objects with what you expect the R output to be.
KM$cluster
Choose...
KM$tot.withinss Choose...
KM$betweenss
Choose...
AG$order
✓ Choose...
[1] 10.8461538
KM$withinss
AG$height
nrow(X)
K
KM$totss
[1] 29.8461538
[1] 1.4142, 0, 0, 1.8536, 2.366, 0, 2, 2.4752, 1, 1.5107, 1.2071, 1
[1] 19
[1] 12, 7
[1] 2
[1] 1, 3, 5, 8, 11, 2, 7, 12, 4, 10, 6, 9, 13
[1] 13
[1] 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 2, 1, 1
Transcribed Image Text:Given a data set X, the following R commands have been run: library(cluster); agnes (x=X)->AG; kmeans (x=X, centers=K)->KM Match the following objects with what you expect the R output to be. KM$cluster Choose... KM$tot.withinss Choose... KM$betweenss Choose... AG$order ✓ Choose... [1] 10.8461538 KM$withinss AG$height nrow(X) K KM$totss [1] 29.8461538 [1] 1.4142, 0, 0, 1.8536, 2.366, 0, 2, 2.4752, 1, 1.5107, 1.2071, 1 [1] 19 [1] 12, 7 [1] 2 [1] 1, 3, 5, 8, 11, 2, 7, 12, 4, 10, 6, 9, 13 [1] 13 [1] 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 2, 1, 1
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer