Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_hierarchicalclustering.wasp
Title produced by softwareHierarchical Clustering
Date of computationWed, 12 Nov 2008 12:24:42 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Nov/12/t1226517962euedop32fm8z1lu.htm/, Retrieved Sun, 19 May 2024 11:33:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=24406, Retrieved Sun, 19 May 2024 11:33:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact169
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Hierarchical Clustering] [] [2008-11-12 19:24:42] [e7fa5259715477c9f32960f5b339b707] [Current]
Feedback Forum
2008-11-22 11:48:33 [Stephanie Vanderlinden] [reply
Het dendogram is correct, maar er ontbreekt een verklaring. Elke tak van een dendogram geeft periodes weer die gelijkaardig zijn. Daarna moet je kijken welke periodes behoren tot welke cluster. De opsplitsing van de clusters gebeurt tot dat je op 1 periode terechtkomt.
2008-11-24 10:06:09 [Vincent Dolhain] [reply
De dendogram is correct, conclusie ontbreekt. Er wordt hier gezocht naar clusters, beginnend van alles output wordt er getracht deze steeds verder onder te verdelen
2008-11-24 20:06:27 [Sofie Sergoynne] [reply
Het dendogramis correct, maar de conclusie ontbreekt echter. Een dendogram is een weergave van de computer waarbij de computer wordt opgesplitst in 2 delen. deze splitsing gebeurt tot dat je op 1 periode terecht komt.

Post a new message
Dataseries X:
-3	17	-1
-2	22	1
0	29	1
1	26	-4
11	29	0
14	42	-2
14	40	-5
16	34	2
14	46	0
10	43	0
15	44	4
18	40	2
18	41	3
12	42	2
8	35	2
2	40	1
-2	43	0
-1	47	0
1	41	1
-6	44	0
-16	38	0
-21	35	-3
-38	34	-5
-32	31	-6
-22	25	-2
-31	35	-1
-22	36	-3
-26	41	-1
-19	41	-1
-20	38	-6
-24	39	-2
-29	45	-7
-28	46	-7
-31	48	-5
-30	48	-10
-32	48	-9
-38	45	-7
-43	44	-9
-51	45	-9
-43	45	-10
-43	45	-9
-42	42	-8
-47	43	-9
-45	50	-10
-38	46	-8
-46	46	-7
-38	45	-8
-32	49	-6
-27	46	-7
-26	45	-3
-21	49	-6
-23	47	-6
-24	45	-4
-17	48	-4
-23	51	-7
-16	48	-5
-22	49	-6
-26	51	-7
-25	54	-4
-21	52	-6
-21	52	-5
-18	53	-3
-12	51	-4
-19	55	-6
-31	53	-8
-38	51	-5
-38	52	-7
-32	54	-8
-43	58	-8
-33	57	-6
-28	52	-7
-25	50	-6
-19	53	-2
-20	50	-4
-21	50	-5
-19	51	-2
-17	53	-4
-16	49	-4
-10	54	-5
-16	57	-7
-10	58	-5
-8	56	-6
-7	60	-4
-15	55	-2
-7	54	-3
-6	52	0
-6	55	-4
2	56	-3
-4	54	-3
-4	53	-3
-8	59	-4
-10	62	-5
-16	63	-5
-14	64	-6
-30	75	-10
-33	77	-11
-40	79	-13
-38	77	-12
-39	82	-13
-46	83	-12
-50	81	-15
-55	78	-14
-66	79	-16
-63	79	-16
-56	73	-12
-66	72	-16




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24406&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24406&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24406&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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Summary of Dendrogram
LabelHeight
11
21
31
41
51
61
71.27614237491540
81.27614237491540
91.41421356237310
101.41421356237310
111.41421356237310
121.41421356237310
131.41421356237310
141.41421356237310
151.41421356237310
161.41421356237310
171.41421356237310
181.73205080756888
191.73205080756888
201.73205080756888
212.10018769324859
222.23606797749979
232.23606797749979
242.23606797749979
252.35702260395516
262.44948974278318
273
283
293
303
313
323.0139866373784
333.04299673483065
343.05564289266583
353.60555127546399
363.63567207895494
373.65602689891371
383.74165738677394
393.74165738677394
403.74165738677394
414.12310562561766
424.18485036622741
434.34144901387458
444.35889894354067
454.43985829769134
464.47409727145224
474.57228672191667
484.58257569495584
495.18326519198119
505.20818633861417
515.26166980510275
525.28902006076917
535.3851648071345
545.3851648071345
555.38568855777618
565.45891802445299
575.47722557505166
585.47722557505166
595.91607978309962
606.46012505731802
616.48074069840786
626.499429854633
636.67730737729928
647
657.77733202570487
667.87891182183953
677.94048465109872
688.05240734993719
698.67445617120195
708.7438487372426
719.86763307331605
7210.2468541205562
7310.3356051329469
7410.5385829089376
7510.5776049762708
7611.2067585082948
7711.2399987437027
7812.2780199508657
7912.8917332850617
8012.9134612582702
8115.0621100076282
8215.2125905313638
8315.3296192883557
8415.5927145117494
8515.8730994654282
8616.4862522940672
8718.3038171540339
8819.2718803222194
8921.7400169271709
9023.4095496288911
9127.2113841846241
9231.7947473739433
9332.1847436168481
9433.0496719966370
9535.263627510865
9637.9809303467244
9765.3196425437514
9884.1906208167678
9984.5219977880397
10089.5522048261265
101135.927420790659
102213.091533560960
103343.574267602878
104528.888615338023
105730.948013317262

\begin{tabular}{lllllllll}
\hline
Summary of Dendrogram \tabularnewline
Label & Height \tabularnewline
1 & 1 \tabularnewline
2 & 1 \tabularnewline
3 & 1 \tabularnewline
4 & 1 \tabularnewline
5 & 1 \tabularnewline
6 & 1 \tabularnewline
7 & 1.27614237491540 \tabularnewline
8 & 1.27614237491540 \tabularnewline
9 & 1.41421356237310 \tabularnewline
10 & 1.41421356237310 \tabularnewline
11 & 1.41421356237310 \tabularnewline
12 & 1.41421356237310 \tabularnewline
13 & 1.41421356237310 \tabularnewline
14 & 1.41421356237310 \tabularnewline
15 & 1.41421356237310 \tabularnewline
16 & 1.41421356237310 \tabularnewline
17 & 1.41421356237310 \tabularnewline
18 & 1.73205080756888 \tabularnewline
19 & 1.73205080756888 \tabularnewline
20 & 1.73205080756888 \tabularnewline
21 & 2.10018769324859 \tabularnewline
22 & 2.23606797749979 \tabularnewline
23 & 2.23606797749979 \tabularnewline
24 & 2.23606797749979 \tabularnewline
25 & 2.35702260395516 \tabularnewline
26 & 2.44948974278318 \tabularnewline
27 & 3 \tabularnewline
28 & 3 \tabularnewline
29 & 3 \tabularnewline
30 & 3 \tabularnewline
31 & 3 \tabularnewline
32 & 3.0139866373784 \tabularnewline
33 & 3.04299673483065 \tabularnewline
34 & 3.05564289266583 \tabularnewline
35 & 3.60555127546399 \tabularnewline
36 & 3.63567207895494 \tabularnewline
37 & 3.65602689891371 \tabularnewline
38 & 3.74165738677394 \tabularnewline
39 & 3.74165738677394 \tabularnewline
40 & 3.74165738677394 \tabularnewline
41 & 4.12310562561766 \tabularnewline
42 & 4.18485036622741 \tabularnewline
43 & 4.34144901387458 \tabularnewline
44 & 4.35889894354067 \tabularnewline
45 & 4.43985829769134 \tabularnewline
46 & 4.47409727145224 \tabularnewline
47 & 4.57228672191667 \tabularnewline
48 & 4.58257569495584 \tabularnewline
49 & 5.18326519198119 \tabularnewline
50 & 5.20818633861417 \tabularnewline
51 & 5.26166980510275 \tabularnewline
52 & 5.28902006076917 \tabularnewline
53 & 5.3851648071345 \tabularnewline
54 & 5.3851648071345 \tabularnewline
55 & 5.38568855777618 \tabularnewline
56 & 5.45891802445299 \tabularnewline
57 & 5.47722557505166 \tabularnewline
58 & 5.47722557505166 \tabularnewline
59 & 5.91607978309962 \tabularnewline
60 & 6.46012505731802 \tabularnewline
61 & 6.48074069840786 \tabularnewline
62 & 6.499429854633 \tabularnewline
63 & 6.67730737729928 \tabularnewline
64 & 7 \tabularnewline
65 & 7.77733202570487 \tabularnewline
66 & 7.87891182183953 \tabularnewline
67 & 7.94048465109872 \tabularnewline
68 & 8.05240734993719 \tabularnewline
69 & 8.67445617120195 \tabularnewline
70 & 8.7438487372426 \tabularnewline
71 & 9.86763307331605 \tabularnewline
72 & 10.2468541205562 \tabularnewline
73 & 10.3356051329469 \tabularnewline
74 & 10.5385829089376 \tabularnewline
75 & 10.5776049762708 \tabularnewline
76 & 11.2067585082948 \tabularnewline
77 & 11.2399987437027 \tabularnewline
78 & 12.2780199508657 \tabularnewline
79 & 12.8917332850617 \tabularnewline
80 & 12.9134612582702 \tabularnewline
81 & 15.0621100076282 \tabularnewline
82 & 15.2125905313638 \tabularnewline
83 & 15.3296192883557 \tabularnewline
84 & 15.5927145117494 \tabularnewline
85 & 15.8730994654282 \tabularnewline
86 & 16.4862522940672 \tabularnewline
87 & 18.3038171540339 \tabularnewline
88 & 19.2718803222194 \tabularnewline
89 & 21.7400169271709 \tabularnewline
90 & 23.4095496288911 \tabularnewline
91 & 27.2113841846241 \tabularnewline
92 & 31.7947473739433 \tabularnewline
93 & 32.1847436168481 \tabularnewline
94 & 33.0496719966370 \tabularnewline
95 & 35.263627510865 \tabularnewline
96 & 37.9809303467244 \tabularnewline
97 & 65.3196425437514 \tabularnewline
98 & 84.1906208167678 \tabularnewline
99 & 84.5219977880397 \tabularnewline
100 & 89.5522048261265 \tabularnewline
101 & 135.927420790659 \tabularnewline
102 & 213.091533560960 \tabularnewline
103 & 343.574267602878 \tabularnewline
104 & 528.888615338023 \tabularnewline
105 & 730.948013317262 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24406&T=1

[TABLE]
[ROW][C]Summary of Dendrogram[/C][/ROW]
[ROW][C]Label[/C][C]Height[/C][/ROW]
[ROW][C]1[/C][C]1[/C][/ROW]
[ROW][C]2[/C][C]1[/C][/ROW]
[ROW][C]3[/C][C]1[/C][/ROW]
[ROW][C]4[/C][C]1[/C][/ROW]
[ROW][C]5[/C][C]1[/C][/ROW]
[ROW][C]6[/C][C]1[/C][/ROW]
[ROW][C]7[/C][C]1.27614237491540[/C][/ROW]
[ROW][C]8[/C][C]1.27614237491540[/C][/ROW]
[ROW][C]9[/C][C]1.41421356237310[/C][/ROW]
[ROW][C]10[/C][C]1.41421356237310[/C][/ROW]
[ROW][C]11[/C][C]1.41421356237310[/C][/ROW]
[ROW][C]12[/C][C]1.41421356237310[/C][/ROW]
[ROW][C]13[/C][C]1.41421356237310[/C][/ROW]
[ROW][C]14[/C][C]1.41421356237310[/C][/ROW]
[ROW][C]15[/C][C]1.41421356237310[/C][/ROW]
[ROW][C]16[/C][C]1.41421356237310[/C][/ROW]
[ROW][C]17[/C][C]1.41421356237310[/C][/ROW]
[ROW][C]18[/C][C]1.73205080756888[/C][/ROW]
[ROW][C]19[/C][C]1.73205080756888[/C][/ROW]
[ROW][C]20[/C][C]1.73205080756888[/C][/ROW]
[ROW][C]21[/C][C]2.10018769324859[/C][/ROW]
[ROW][C]22[/C][C]2.23606797749979[/C][/ROW]
[ROW][C]23[/C][C]2.23606797749979[/C][/ROW]
[ROW][C]24[/C][C]2.23606797749979[/C][/ROW]
[ROW][C]25[/C][C]2.35702260395516[/C][/ROW]
[ROW][C]26[/C][C]2.44948974278318[/C][/ROW]
[ROW][C]27[/C][C]3[/C][/ROW]
[ROW][C]28[/C][C]3[/C][/ROW]
[ROW][C]29[/C][C]3[/C][/ROW]
[ROW][C]30[/C][C]3[/C][/ROW]
[ROW][C]31[/C][C]3[/C][/ROW]
[ROW][C]32[/C][C]3.0139866373784[/C][/ROW]
[ROW][C]33[/C][C]3.04299673483065[/C][/ROW]
[ROW][C]34[/C][C]3.05564289266583[/C][/ROW]
[ROW][C]35[/C][C]3.60555127546399[/C][/ROW]
[ROW][C]36[/C][C]3.63567207895494[/C][/ROW]
[ROW][C]37[/C][C]3.65602689891371[/C][/ROW]
[ROW][C]38[/C][C]3.74165738677394[/C][/ROW]
[ROW][C]39[/C][C]3.74165738677394[/C][/ROW]
[ROW][C]40[/C][C]3.74165738677394[/C][/ROW]
[ROW][C]41[/C][C]4.12310562561766[/C][/ROW]
[ROW][C]42[/C][C]4.18485036622741[/C][/ROW]
[ROW][C]43[/C][C]4.34144901387458[/C][/ROW]
[ROW][C]44[/C][C]4.35889894354067[/C][/ROW]
[ROW][C]45[/C][C]4.43985829769134[/C][/ROW]
[ROW][C]46[/C][C]4.47409727145224[/C][/ROW]
[ROW][C]47[/C][C]4.57228672191667[/C][/ROW]
[ROW][C]48[/C][C]4.58257569495584[/C][/ROW]
[ROW][C]49[/C][C]5.18326519198119[/C][/ROW]
[ROW][C]50[/C][C]5.20818633861417[/C][/ROW]
[ROW][C]51[/C][C]5.26166980510275[/C][/ROW]
[ROW][C]52[/C][C]5.28902006076917[/C][/ROW]
[ROW][C]53[/C][C]5.3851648071345[/C][/ROW]
[ROW][C]54[/C][C]5.3851648071345[/C][/ROW]
[ROW][C]55[/C][C]5.38568855777618[/C][/ROW]
[ROW][C]56[/C][C]5.45891802445299[/C][/ROW]
[ROW][C]57[/C][C]5.47722557505166[/C][/ROW]
[ROW][C]58[/C][C]5.47722557505166[/C][/ROW]
[ROW][C]59[/C][C]5.91607978309962[/C][/ROW]
[ROW][C]60[/C][C]6.46012505731802[/C][/ROW]
[ROW][C]61[/C][C]6.48074069840786[/C][/ROW]
[ROW][C]62[/C][C]6.499429854633[/C][/ROW]
[ROW][C]63[/C][C]6.67730737729928[/C][/ROW]
[ROW][C]64[/C][C]7[/C][/ROW]
[ROW][C]65[/C][C]7.77733202570487[/C][/ROW]
[ROW][C]66[/C][C]7.87891182183953[/C][/ROW]
[ROW][C]67[/C][C]7.94048465109872[/C][/ROW]
[ROW][C]68[/C][C]8.05240734993719[/C][/ROW]
[ROW][C]69[/C][C]8.67445617120195[/C][/ROW]
[ROW][C]70[/C][C]8.7438487372426[/C][/ROW]
[ROW][C]71[/C][C]9.86763307331605[/C][/ROW]
[ROW][C]72[/C][C]10.2468541205562[/C][/ROW]
[ROW][C]73[/C][C]10.3356051329469[/C][/ROW]
[ROW][C]74[/C][C]10.5385829089376[/C][/ROW]
[ROW][C]75[/C][C]10.5776049762708[/C][/ROW]
[ROW][C]76[/C][C]11.2067585082948[/C][/ROW]
[ROW][C]77[/C][C]11.2399987437027[/C][/ROW]
[ROW][C]78[/C][C]12.2780199508657[/C][/ROW]
[ROW][C]79[/C][C]12.8917332850617[/C][/ROW]
[ROW][C]80[/C][C]12.9134612582702[/C][/ROW]
[ROW][C]81[/C][C]15.0621100076282[/C][/ROW]
[ROW][C]82[/C][C]15.2125905313638[/C][/ROW]
[ROW][C]83[/C][C]15.3296192883557[/C][/ROW]
[ROW][C]84[/C][C]15.5927145117494[/C][/ROW]
[ROW][C]85[/C][C]15.8730994654282[/C][/ROW]
[ROW][C]86[/C][C]16.4862522940672[/C][/ROW]
[ROW][C]87[/C][C]18.3038171540339[/C][/ROW]
[ROW][C]88[/C][C]19.2718803222194[/C][/ROW]
[ROW][C]89[/C][C]21.7400169271709[/C][/ROW]
[ROW][C]90[/C][C]23.4095496288911[/C][/ROW]
[ROW][C]91[/C][C]27.2113841846241[/C][/ROW]
[ROW][C]92[/C][C]31.7947473739433[/C][/ROW]
[ROW][C]93[/C][C]32.1847436168481[/C][/ROW]
[ROW][C]94[/C][C]33.0496719966370[/C][/ROW]
[ROW][C]95[/C][C]35.263627510865[/C][/ROW]
[ROW][C]96[/C][C]37.9809303467244[/C][/ROW]
[ROW][C]97[/C][C]65.3196425437514[/C][/ROW]
[ROW][C]98[/C][C]84.1906208167678[/C][/ROW]
[ROW][C]99[/C][C]84.5219977880397[/C][/ROW]
[ROW][C]100[/C][C]89.5522048261265[/C][/ROW]
[ROW][C]101[/C][C]135.927420790659[/C][/ROW]
[ROW][C]102[/C][C]213.091533560960[/C][/ROW]
[ROW][C]103[/C][C]343.574267602878[/C][/ROW]
[ROW][C]104[/C][C]528.888615338023[/C][/ROW]
[ROW][C]105[/C][C]730.948013317262[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24406&T=1

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

As an alternative you can also use a QR Code:  

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

Summary of Dendrogram
LabelHeight
11
21
31
41
51
61
71.27614237491540
81.27614237491540
91.41421356237310
101.41421356237310
111.41421356237310
121.41421356237310
131.41421356237310
141.41421356237310
151.41421356237310
161.41421356237310
171.41421356237310
181.73205080756888
191.73205080756888
201.73205080756888
212.10018769324859
222.23606797749979
232.23606797749979
242.23606797749979
252.35702260395516
262.44948974278318
273
283
293
303
313
323.0139866373784
333.04299673483065
343.05564289266583
353.60555127546399
363.63567207895494
373.65602689891371
383.74165738677394
393.74165738677394
403.74165738677394
414.12310562561766
424.18485036622741
434.34144901387458
444.35889894354067
454.43985829769134
464.47409727145224
474.57228672191667
484.58257569495584
495.18326519198119
505.20818633861417
515.26166980510275
525.28902006076917
535.3851648071345
545.3851648071345
555.38568855777618
565.45891802445299
575.47722557505166
585.47722557505166
595.91607978309962
606.46012505731802
616.48074069840786
626.499429854633
636.67730737729928
647
657.77733202570487
667.87891182183953
677.94048465109872
688.05240734993719
698.67445617120195
708.7438487372426
719.86763307331605
7210.2468541205562
7310.3356051329469
7410.5385829089376
7510.5776049762708
7611.2067585082948
7711.2399987437027
7812.2780199508657
7912.8917332850617
8012.9134612582702
8115.0621100076282
8215.2125905313638
8315.3296192883557
8415.5927145117494
8515.8730994654282
8616.4862522940672
8718.3038171540339
8819.2718803222194
8921.7400169271709
9023.4095496288911
9127.2113841846241
9231.7947473739433
9332.1847436168481
9433.0496719966370
9535.263627510865
9637.9809303467244
9765.3196425437514
9884.1906208167678
9984.5219977880397
10089.5522048261265
101135.927420790659
102213.091533560960
103343.574267602878
104528.888615338023
105730.948013317262



Parameters (Session):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ;
Parameters (R input):
par1 = ward ; par2 = ALL ; par3 = FALSE ; par4 = FALSE ;
R code (references can be found in the software module):
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')
}