User Tools

Site Tools


johnson_s_hierarchical_clustering

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
johnson_s_hierarchical_clustering [2016/11/21 08:58] hkimsciljohnson_s_hierarchical_clustering [2016/11/21 12:15] (current) – [E.g. 1] hkimscil
Line 157: Line 157:
 </code> </code>
  
-{{hiclus2.bmp}}+{{hiclus2.gif}} 
 +{{hiclus4.gif}} 
 + 
 +====== E.g. 1 ====== 
 +<code csv cities2.csv>0 206 429 1504 963 2976 3095 2979 1949 
 +206 0 233 1308 802 2815 2934 2786 1771 
 +429 233 0 1075 671 2684 2799 2631 1616 
 +1504 1308 1075 0 1329 3273 3053 2687 2037 
 +963 802 671 1329 0 2013 2142 2054 996 
 +2976 2815 2684 3273 2013 0 808 1131 1307 
 +3095 2934 2799 3053 2142 808 0 379 1235 
 +2979 2786 2631 2687 2054 1131 379 0 1059 
 +1949 1771 1616 2037 996 1307 1235 1059 0 
 + 
 +</code> 
 + 
 +# Prepare Data 
 +setwd("d:/rdata"
 +mydata <- read.csv("cities.csv"
 +mydata <- na.omit(mydata) # listwise deletion of missing 
 +mydata <- scale(mydata) # standardize variables 
 + 
johnson_s_hierarchical_clustering.1479688083.txt.gz · Last modified: 2016/11/21 08:58 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki