Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationFri, 18 Dec 2015 05:42:18 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2015/Dec/18/t1450417381am6w9coj163h8if.htm/, Retrieved Thu, 16 May 2024 03:45:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=286859, Retrieved Thu, 16 May 2024 03:45:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact99
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Hierarchical Clustering] [] [2015-12-18 05:42:18] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
112Cu ind	Cu ni	zn in	zn ni	ca in	ca ni	concentration	concentration	concentration	concentration
0.08	0.05	0.722	0.005	2.4	5.181	8.803	12.38	0.374	0.36
0.12	0.07	0.337	0.06	3.618	4.348	7.431	11.79	0.419	0.341
0.06	0.05	0.424	0.048	5.164	4.993	9.264	9.165	0.36	0.328
0.36	0.23	0.567	0.548	2.652	4.563	10.64	10.51	0.397	0.362
0.46	0.06	0.798	0.475	3.959	4.753	6.6863	12.88	0.387	0.366
0.2	0.067	0.447	0.66	2.881	3.371	8.729	14.77	0.431	0.392
0.22	0.07	0.126	0.094	2.655	4.531	10.6	12.78	0.384	0.395
0.09	0.03	0.578	0.583	2.837	6.075	8.491	12.68	0.387	0.402
0.18	0.05	0.48	0.449	4.481	5.052	7.138	9.975	0.411	0.397
0.13	0.21	0.496	0.408	3.131	6.057	6.918	12.33	0.335	0.426
0.19	0.49	0.575	0.021	5.774	5.255	9.312	8.928	0.362	0.45
0.09	0.12	0.517	0.517	3.605	4.337	10.78	13.41	0.342	0.462
0.45	0.12	0.583	0.0108	3.558	3.696	11.19	11.37	0.339	0.419
0.2	0.24	0.506	0.459	3.743	4.843	6.562	9.98	0.314	0.382
0.06	0.03	0.449	0.537	3.634	4.461	10.27	12.27	0.423	0.392
0.16	0.17	0.459	0.591	2.356	3.921	9.36	14.53	0.416	0.312
0.1	0.11	0.877	0.02	3.682	4.526	8.35	10.98	0.396	0.351
0.42	0.13	0.69	0.722	2.985	5.123	10.21	12.62	0.361	0.3
0.12	0.13	0.591	0.877	3.218	4.363	9.33	8.94	0.433	0.291
0.07	0.11	0.548	0.575	3.913	3.89	8.55	12.35	0.451	0.168
0.08	0.16	0.21	0.447	3.123	4.23	7.98	10.34	0.356	0.261
0.52	0.06	0.06	0.506	2.98	5.34	8.34	9.67	0.452	0.162
0.53	0.16	0.201	0.069	3.01	4.51	9.22	10.34	0.318	0.341
0.13	0.05	0.108	0.556	3.09	3.87	10.3	8.77	0.422	0.298
0.27	0.07	0.048	0.545	2.98	4.01	6.88	10.02	0.38	0.315
0.08	0.28	0.05	0.608	2.89	2.34	7.21	11.23	0.413	0.289
0.52	0.15	0.608	0.496	2.55	3.65	8.02	10.33	0.376	0.362
0.23	0.25	0.56	0.126	3.87	4.01	9.24	9.87	0.322	0.398
0.28	0.13	0.546	0.337	3.94	3.44	8.76	10.23	0.31	0.412
0.22	0.05	0.1	0.424	4.09	4.93	6.93	8.45	0.418	0.271

118
132
129
121
135
148
148
136
119
104
118
115
126
141
135
125
149
170
170
158
133
114
140
145
150
178
163
172
178
199
199
184
162
146
166
171
180
193
181
183
218
230
242
209
191
172
194
196
196
236
235
229
243
264
272
237
211
180
201
204
188
235
227
234
264
302
293
259
229
203
229
242
233
267
269
270
315
364
347
312
274
237
278
284
277
317
313
318
374
413
405
355
306
271
306
315
301
356
348
355
422
465
467
404
347
305
336
340
318
362
348
363
435
491
505
404
359
310
337
360




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 0 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
R Framework error message & 
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=286859&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]0 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=286859&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286859&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net
R Framework error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.



Parameters (Session):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = TRUE ;
Parameters (R input):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = TRUE ;
R code (references can be found in the software module):
par4 <- 'TRUE'
par3 <- 'FALSE'
par2 <- 'ALL'
par1 <- 'ward'
par3 <- as.logical(par3)
par4 <- as.logical(par4)
if (par3 == 'TRUE'){
dum = xlab
xlab = ylab
ylab = dum
}
x <- t(y)
hc <- hclust(dist(x),method=par1)
d <- as.dendrogram(hc)
str(d)
mysub <- paste('Method: ',par1)
bitmap(file='test1.png')
if (par4 == 'TRUE'){
plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub)
} else {
plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub)
}
dev.off()
if (par2 != 'ALL'){
if (par3 == 'TRUE'){
ylab = 'cluster'
} else {
xlab = 'cluster'
}
par2 <- as.numeric(par2)
memb <- cutree(hc, k = par2)
cent <- NULL
for(k in 1:par2){
cent <- rbind(cent, colMeans(x[memb == k, , drop = FALSE]))
}
hc1 <- hclust(dist(cent),method=par1, members = table(memb))
de <- as.dendrogram(hc1)
bitmap(file='test2.png')
if (par4 == 'TRUE'){
plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub)
} else {
plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub)
}
dev.off()
str(de)
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Summary of Dendrogram',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Label',header=TRUE)
a<-table.element(a,'Height',header=TRUE)
a<-table.row.end(a)
num <- length(x[,1])-1
for (i in 1:num)
{
a<-table.row.start(a)
a<-table.element(a,hc$labels[i])
a<-table.element(a,hc$height[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
if (par2 != 'ALL'){
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Summary of Cut Dendrogram',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Label',header=TRUE)
a<-table.element(a,'Height',header=TRUE)
a<-table.row.end(a)
num <- par2-1
for (i in 1:num)
{
a<-table.row.start(a)
a<-table.element(a,i)
a<-table.element(a,hc1$height[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
}