countries: Country Dissimilarities

Description Usage Format Details Source Examples

Description

Political science students were asked to give pairwise dissimilarities for 12 countries.

Usage

1

Format

The format is: num [1:12, 1:12] 0 5.58 7 7.08 4.83 2.17 6.42 3.42 2.5 6.08 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:12] "BEL" "BRA" "CHI" "CUB" ... ..$ : chr [1:12] "BEL" "BRA" "CHI" "CUB" ...

Details

These are average dissimilarities over students.

Source

Kaufman, L. and Rousseeuw, P. (1990) Finding Groups in data: An Introduction to Cluster Analysis, Wiley, New York.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
str(countries)
colnames(countries)
rownames(countries)
if(require(MASS)){
# We use multidimensional scaling:
   if(interactive())par(ask=TRUE)
   countries.cmdscale <- cmdscale(countries, k=2, eig=TRUE)
   eqscplot(countries.cmdscale$points)
   countries.sam <- sammon(countries)
   eqscplot(countries.sam$points)
}


ElemStatLearn documentation built on May 20, 2017, 1:20 a.m.
Search within the ElemStatLearn package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.