Given a data set x, the following R commands have been run: library(cluster); agnes (x=X)->AG; K<-2; pam(x=X, k=K)->PM Match the following objects with what you expect the R output to be. PM$id.med Choose... PM$clustering Choose... AG$order Choose... AG$ac Choose... AG$height Choose... [1] 1, 1, 2, 1, 1, 1, 2 [1] 1, 5, 6, 7, 2, 3, 4 [1] 6, 7 [1] 0.1517008 [1] 4, 4, 4, 4.7948, 4.4721, 4

icon
Related questions
Question
Given a data set x, the following R commands have been run:
library(cluster);
agnes (x=X)->AG;
K<-2; pam(x=X, k=K)->PM
Match the following objects with what you expect the R output to be.
PM$id.med
Choose...
PM$clustering Choose...
AG$order
Choose...
AG$ac
Choose...
AG$height
Choose...
[1] 1, 1, 2, 1, 1, 1, 2
[1] 1, 5, 6, 7, 2, 3, 4
[1] 6, 7
[1] 0.1517008
[1] 4, 4, 4, 4.7948, 4.4721, 4
Transcribed Image Text:Given a data set x, the following R commands have been run: library(cluster); agnes (x=X)->AG; K<-2; pam(x=X, k=K)->PM Match the following objects with what you expect the R output to be. PM$id.med Choose... PM$clustering Choose... AG$order Choose... AG$ac Choose... AG$height Choose... [1] 1, 1, 2, 1, 1, 1, 2 [1] 1, 5, 6, 7, 2, 3, 4 [1] 6, 7 [1] 0.1517008 [1] 4, 4, 4, 4.7948, 4.4721, 4
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer