Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_regression_trees1.wasp
Title produced by softwareRecursive Partitioning (Regression Trees)
Date of computationThu, 15 Dec 2011 18:18:31 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/15/t1323993466tw67vyiqow57q15.htm/, Retrieved Wed, 08 May 2024 11:41:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=155746, Retrieved Wed, 08 May 2024 11:41:32 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact129
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Recursive Partitioning (Regression Trees)] [] [2010-12-05 20:21:33] [b98453cac15ba1066b407e146608df68]
- R PD    [Recursive Partitioning (Regression Trees)] [] [2011-12-15 23:18:31] [393d554610c677f923bed472882d0fdb] [Current]
Feedback Forum

Post a new message
Dataseries X:
1575	129988	81	505
1135	130358	47	329
192	7215	18	72
2078	114248	89	597
3306	220669	128	1108
6093	422973	224	1692
1444	129230	52	479
1250	136284	51	338
1466	99738	39	407
2694	269234	89	862
1846	113447	71	584
1919	165436	63	596
1563	83035	93	562
2606	173586	88	896
1254	134368	47	359
1375	125769	68	419
1605	130621	52	382
1058	62020	51	298
2299	112282	80	697
634	22762	21	188
886	51392	51	303
2196	182089	84	643
1523	149507	62	543
1854	96764	47	552
1751	133428	79	549
1252	129043	25	450
1751	153851	141	561
1101	140711	75	266
2403	303952	108	786
1883	170415	40	775
1410	134521	41	411
1462	159248	41	490
2013	118860	91	635
2710	205816	110	807
2130	185971	45	698
1	0	1	0
1823	181496	56	859
1542	92526	48	475
1964	120596	43	469
1844	191556	53	691
1711	146707	60	553
1478	120318	51	565
866	86039	26	310
1768	138056	68	666
1024	95535	42	321
1082	139662	81	279
692	70058	27	196
1693	170811	83	587
1725	161746	76	548
2393	144975	54	861
658	48188	28	205
1423	109180	59	363
2166	249422	66	736
1831	202700	70	628
1568	168084	54	566
1454	111388	47	443
1628	172685	59	430
781	68627	20	220
896	109111	57	310
2415	142394	77	809
1514	125777	51	438
1715	94460	69	638
1123	95845	50	318
996	89751	30	336
970	115558	27	331
1229	94982	37	391
2012	145568	62	453
2393	113325	63	715
937	92480	34	238
340	31970	15	101
2558	198542	105	894
1082	98437	57	323
1159	84823	58	381
1441	91934	62	435
2378	130470	57	612
1128	62726	34	301
1810	120602	53	508
2138	123788	82	709
816	60138	23	253
1219	80855	71	389
885	78362	62	208
1775	228824	55	654
839	56244	25	243
1309	97181	32	438
733	45100	40	247
1327	115801	43	388
2323	191221	194	559
969	71960	87	233
1055	81701	49	341
1157	111142	44	442
1436	109921	35	508
1982	136234	67	584
1092	136781	53	366
1227	122303	57	456
759	49164	33	291
1984	189555	95	632
1608	169406	50	491
223	19349	12	67
1810	160902	88	617
1624	125699	56	668
553	43803	25	240
709	47062	20	219
1079	110845	44	349
957	92517	52	241
585	58660	36	136
596	27676	22	194
1067	106245	34	237
639	50770	26	173
0	0	0	0
978	75579	29	282
818	62993	54	256
1173	117758	38	395
989	74491	52	313
821	69976	57	281
78	3616	5	14
0	0	0	0
891	148117	38	290
1327	117946	66	476
1843	138702	86	524
786	88780	34	251
778	43410	19	292
1503	142723	63	450
879	86948	38	240
1630	109721	48	473
693	57626	39	160
285	19764	12	75
1464	114933	44	453
970	107067	26	338
1283	113402	35	417
256	11796	9	79
81	7627	9	25
1281	128158	52	443
41	6836	3	11
1705	146286	51	587
42	5118	3	6
528	40248	16	183
0	0	0	0
890	95079	42	295
1209	82961	33	232
81	7131	4	27
255	8806	13	96
866	61073	22	243
1111	120100	47	271
1058	90758	18	382




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net

\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 & 4 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155746&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155746&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=155746&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 time4 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Goodness of Fit
Correlation0.7774
R-squared0.6044
RMSE20.2849

\begin{tabular}{lllllllll}
\hline
Goodness of Fit \tabularnewline
Correlation & 0.7774 \tabularnewline
R-squared & 0.6044 \tabularnewline
RMSE & 20.2849 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155746&T=1

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.7774[/C][/ROW]
[ROW][C]R-squared[/C][C]0.6044[/C][/ROW]
[ROW][C]RMSE[/C][C]20.2849[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155746&T=1

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

As an alternative you can also use a QR Code:  

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

Goodness of Fit
Correlation0.7774
R-squared0.6044
RMSE20.2849







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
18168.578947368421112.4210526315789
24746.71428571428570.285714285714285
3187.510.5
48968.578947368421120.4210526315789
5128108.08333333333319.9166666666667
6224108.083333333333115.916666666667
75246.71428571428575.28571428571428
85146.71428571428574.28571428571428
93946.7142857142857-7.71428571428572
1089108.083333333333-19.0833333333333
117168.57894736842112.42105263157895
126368.5789473684211-5.57894736842105
139368.578947368421124.4210526315789
1488108.083333333333-20.0833333333333
154746.71428571428570.285714285714285
166846.714285714285721.2857142857143
175268.5789473684211-16.5789473684211
185146.71428571428574.28571428571428
198068.578947368421111.4210526315789
202127.5333333333333-6.53333333333333
215146.71428571428574.28571428571428
228468.578947368421115.4210526315789
236246.714285714285715.2857142857143
244768.5789473684211-21.5789473684211
257968.578947368421110.4210526315789
262546.7142857142857-21.7142857142857
2714168.578947368421172.4210526315789
287546.714285714285728.2857142857143
29108108.083333333333-0.0833333333333286
304068.5789473684211-28.5789473684211
314146.7142857142857-5.71428571428572
324146.7142857142857-5.71428571428572
339168.578947368421122.4210526315789
34110108.0833333333331.91666666666667
354568.5789473684211-23.5789473684211
3617.5-6.5
375668.5789473684211-12.5789473684211
384846.71428571428571.28571428571428
394368.5789473684211-25.5789473684211
405368.5789473684211-15.5789473684211
416068.5789473684211-8.57894736842105
425146.71428571428574.28571428571428
432646.7142857142857-20.7142857142857
446868.5789473684211-0.578947368421055
454246.7142857142857-4.71428571428572
468146.714285714285734.2857142857143
472727.5333333333333-0.533333333333335
488368.578947368421114.4210526315789
497668.57894736842117.42105263157895
5054108.083333333333-54.0833333333333
512827.53333333333330.466666666666665
525946.714285714285712.2857142857143
536668.5789473684211-2.57894736842105
547068.57894736842111.42105263157895
555468.5789473684211-14.5789473684211
564746.71428571428570.285714285714285
575968.5789473684211-9.57894736842105
582027.5333333333333-7.53333333333333
595746.714285714285710.2857142857143
6077108.083333333333-31.0833333333333
615146.71428571428574.28571428571428
626968.57894736842110.421052631578945
635046.71428571428573.28571428571428
643046.7142857142857-16.7142857142857
652746.7142857142857-19.7142857142857
663746.7142857142857-9.71428571428572
676268.5789473684211-6.57894736842105
6863108.083333333333-45.0833333333333
693446.7142857142857-12.7142857142857
70157.57.5
71105108.083333333333-3.08333333333333
725746.714285714285710.2857142857143
735846.714285714285711.2857142857143
746246.714285714285715.2857142857143
7557108.083333333333-51.0833333333333
763446.7142857142857-12.7142857142857
775368.5789473684211-15.5789473684211
788268.578947368421113.4210526315789
792327.5333333333333-4.53333333333333
807146.714285714285724.2857142857143
816246.714285714285715.2857142857143
825568.5789473684211-13.5789473684211
832546.7142857142857-21.7142857142857
843246.7142857142857-14.7142857142857
854027.533333333333312.4666666666667
864346.7142857142857-3.71428571428572
87194108.08333333333385.9166666666667
888746.714285714285740.2857142857143
894946.71428571428572.28571428571428
904446.7142857142857-2.71428571428572
913546.7142857142857-11.7142857142857
926768.5789473684211-1.57894736842105
935346.71428571428576.28571428571428
945746.714285714285710.2857142857143
953327.53333333333335.46666666666667
969568.578947368421126.4210526315789
975068.5789473684211-18.5789473684211
98127.54.5
998868.578947368421119.4210526315789
1005668.5789473684211-12.5789473684211
1012527.5333333333333-2.53333333333333
1022027.5333333333333-7.53333333333333
1034446.7142857142857-2.71428571428572
1045246.71428571428575.28571428571428
1053627.53333333333338.46666666666667
1062227.5333333333333-5.53333333333333
1073446.7142857142857-12.7142857142857
1082627.5333333333333-1.53333333333333
10907.5-7.5
1102946.7142857142857-17.7142857142857
1115446.71428571428577.28571428571428
1123846.7142857142857-8.71428571428572
1135246.71428571428575.28571428571428
1145746.714285714285710.2857142857143
11557.5-2.5
11607.5-7.5
1173846.7142857142857-8.71428571428572
1186646.714285714285719.2857142857143
1198668.578947368421117.4210526315789
1203427.53333333333336.46666666666667
1211927.5333333333333-8.53333333333333
1226346.714285714285716.2857142857143
1233846.7142857142857-8.71428571428572
1244868.5789473684211-20.5789473684211
1253927.533333333333311.4666666666667
126127.54.5
1274446.7142857142857-2.71428571428572
1282646.7142857142857-20.7142857142857
1293546.7142857142857-11.7142857142857
13097.51.5
13197.51.5
1325246.71428571428575.28571428571428
13337.5-4.5
1345168.5789473684211-17.5789473684211
13537.5-4.5
136167.58.5
13707.5-7.5
1384246.7142857142857-4.71428571428572
1393346.7142857142857-13.7142857142857
14047.5-3.5
141137.55.5
1422246.7142857142857-24.7142857142857
1434746.71428571428570.285714285714285
1441846.7142857142857-28.7142857142857

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 81 & 68.5789473684211 & 12.4210526315789 \tabularnewline
2 & 47 & 46.7142857142857 & 0.285714285714285 \tabularnewline
3 & 18 & 7.5 & 10.5 \tabularnewline
4 & 89 & 68.5789473684211 & 20.4210526315789 \tabularnewline
5 & 128 & 108.083333333333 & 19.9166666666667 \tabularnewline
6 & 224 & 108.083333333333 & 115.916666666667 \tabularnewline
7 & 52 & 46.7142857142857 & 5.28571428571428 \tabularnewline
8 & 51 & 46.7142857142857 & 4.28571428571428 \tabularnewline
9 & 39 & 46.7142857142857 & -7.71428571428572 \tabularnewline
10 & 89 & 108.083333333333 & -19.0833333333333 \tabularnewline
11 & 71 & 68.5789473684211 & 2.42105263157895 \tabularnewline
12 & 63 & 68.5789473684211 & -5.57894736842105 \tabularnewline
13 & 93 & 68.5789473684211 & 24.4210526315789 \tabularnewline
14 & 88 & 108.083333333333 & -20.0833333333333 \tabularnewline
15 & 47 & 46.7142857142857 & 0.285714285714285 \tabularnewline
16 & 68 & 46.7142857142857 & 21.2857142857143 \tabularnewline
17 & 52 & 68.5789473684211 & -16.5789473684211 \tabularnewline
18 & 51 & 46.7142857142857 & 4.28571428571428 \tabularnewline
19 & 80 & 68.5789473684211 & 11.4210526315789 \tabularnewline
20 & 21 & 27.5333333333333 & -6.53333333333333 \tabularnewline
21 & 51 & 46.7142857142857 & 4.28571428571428 \tabularnewline
22 & 84 & 68.5789473684211 & 15.4210526315789 \tabularnewline
23 & 62 & 46.7142857142857 & 15.2857142857143 \tabularnewline
24 & 47 & 68.5789473684211 & -21.5789473684211 \tabularnewline
25 & 79 & 68.5789473684211 & 10.4210526315789 \tabularnewline
26 & 25 & 46.7142857142857 & -21.7142857142857 \tabularnewline
27 & 141 & 68.5789473684211 & 72.4210526315789 \tabularnewline
28 & 75 & 46.7142857142857 & 28.2857142857143 \tabularnewline
29 & 108 & 108.083333333333 & -0.0833333333333286 \tabularnewline
30 & 40 & 68.5789473684211 & -28.5789473684211 \tabularnewline
31 & 41 & 46.7142857142857 & -5.71428571428572 \tabularnewline
32 & 41 & 46.7142857142857 & -5.71428571428572 \tabularnewline
33 & 91 & 68.5789473684211 & 22.4210526315789 \tabularnewline
34 & 110 & 108.083333333333 & 1.91666666666667 \tabularnewline
35 & 45 & 68.5789473684211 & -23.5789473684211 \tabularnewline
36 & 1 & 7.5 & -6.5 \tabularnewline
37 & 56 & 68.5789473684211 & -12.5789473684211 \tabularnewline
38 & 48 & 46.7142857142857 & 1.28571428571428 \tabularnewline
39 & 43 & 68.5789473684211 & -25.5789473684211 \tabularnewline
40 & 53 & 68.5789473684211 & -15.5789473684211 \tabularnewline
41 & 60 & 68.5789473684211 & -8.57894736842105 \tabularnewline
42 & 51 & 46.7142857142857 & 4.28571428571428 \tabularnewline
43 & 26 & 46.7142857142857 & -20.7142857142857 \tabularnewline
44 & 68 & 68.5789473684211 & -0.578947368421055 \tabularnewline
45 & 42 & 46.7142857142857 & -4.71428571428572 \tabularnewline
46 & 81 & 46.7142857142857 & 34.2857142857143 \tabularnewline
47 & 27 & 27.5333333333333 & -0.533333333333335 \tabularnewline
48 & 83 & 68.5789473684211 & 14.4210526315789 \tabularnewline
49 & 76 & 68.5789473684211 & 7.42105263157895 \tabularnewline
50 & 54 & 108.083333333333 & -54.0833333333333 \tabularnewline
51 & 28 & 27.5333333333333 & 0.466666666666665 \tabularnewline
52 & 59 & 46.7142857142857 & 12.2857142857143 \tabularnewline
53 & 66 & 68.5789473684211 & -2.57894736842105 \tabularnewline
54 & 70 & 68.5789473684211 & 1.42105263157895 \tabularnewline
55 & 54 & 68.5789473684211 & -14.5789473684211 \tabularnewline
56 & 47 & 46.7142857142857 & 0.285714285714285 \tabularnewline
57 & 59 & 68.5789473684211 & -9.57894736842105 \tabularnewline
58 & 20 & 27.5333333333333 & -7.53333333333333 \tabularnewline
59 & 57 & 46.7142857142857 & 10.2857142857143 \tabularnewline
60 & 77 & 108.083333333333 & -31.0833333333333 \tabularnewline
61 & 51 & 46.7142857142857 & 4.28571428571428 \tabularnewline
62 & 69 & 68.5789473684211 & 0.421052631578945 \tabularnewline
63 & 50 & 46.7142857142857 & 3.28571428571428 \tabularnewline
64 & 30 & 46.7142857142857 & -16.7142857142857 \tabularnewline
65 & 27 & 46.7142857142857 & -19.7142857142857 \tabularnewline
66 & 37 & 46.7142857142857 & -9.71428571428572 \tabularnewline
67 & 62 & 68.5789473684211 & -6.57894736842105 \tabularnewline
68 & 63 & 108.083333333333 & -45.0833333333333 \tabularnewline
69 & 34 & 46.7142857142857 & -12.7142857142857 \tabularnewline
70 & 15 & 7.5 & 7.5 \tabularnewline
71 & 105 & 108.083333333333 & -3.08333333333333 \tabularnewline
72 & 57 & 46.7142857142857 & 10.2857142857143 \tabularnewline
73 & 58 & 46.7142857142857 & 11.2857142857143 \tabularnewline
74 & 62 & 46.7142857142857 & 15.2857142857143 \tabularnewline
75 & 57 & 108.083333333333 & -51.0833333333333 \tabularnewline
76 & 34 & 46.7142857142857 & -12.7142857142857 \tabularnewline
77 & 53 & 68.5789473684211 & -15.5789473684211 \tabularnewline
78 & 82 & 68.5789473684211 & 13.4210526315789 \tabularnewline
79 & 23 & 27.5333333333333 & -4.53333333333333 \tabularnewline
80 & 71 & 46.7142857142857 & 24.2857142857143 \tabularnewline
81 & 62 & 46.7142857142857 & 15.2857142857143 \tabularnewline
82 & 55 & 68.5789473684211 & -13.5789473684211 \tabularnewline
83 & 25 & 46.7142857142857 & -21.7142857142857 \tabularnewline
84 & 32 & 46.7142857142857 & -14.7142857142857 \tabularnewline
85 & 40 & 27.5333333333333 & 12.4666666666667 \tabularnewline
86 & 43 & 46.7142857142857 & -3.71428571428572 \tabularnewline
87 & 194 & 108.083333333333 & 85.9166666666667 \tabularnewline
88 & 87 & 46.7142857142857 & 40.2857142857143 \tabularnewline
89 & 49 & 46.7142857142857 & 2.28571428571428 \tabularnewline
90 & 44 & 46.7142857142857 & -2.71428571428572 \tabularnewline
91 & 35 & 46.7142857142857 & -11.7142857142857 \tabularnewline
92 & 67 & 68.5789473684211 & -1.57894736842105 \tabularnewline
93 & 53 & 46.7142857142857 & 6.28571428571428 \tabularnewline
94 & 57 & 46.7142857142857 & 10.2857142857143 \tabularnewline
95 & 33 & 27.5333333333333 & 5.46666666666667 \tabularnewline
96 & 95 & 68.5789473684211 & 26.4210526315789 \tabularnewline
97 & 50 & 68.5789473684211 & -18.5789473684211 \tabularnewline
98 & 12 & 7.5 & 4.5 \tabularnewline
99 & 88 & 68.5789473684211 & 19.4210526315789 \tabularnewline
100 & 56 & 68.5789473684211 & -12.5789473684211 \tabularnewline
101 & 25 & 27.5333333333333 & -2.53333333333333 \tabularnewline
102 & 20 & 27.5333333333333 & -7.53333333333333 \tabularnewline
103 & 44 & 46.7142857142857 & -2.71428571428572 \tabularnewline
104 & 52 & 46.7142857142857 & 5.28571428571428 \tabularnewline
105 & 36 & 27.5333333333333 & 8.46666666666667 \tabularnewline
106 & 22 & 27.5333333333333 & -5.53333333333333 \tabularnewline
107 & 34 & 46.7142857142857 & -12.7142857142857 \tabularnewline
108 & 26 & 27.5333333333333 & -1.53333333333333 \tabularnewline
109 & 0 & 7.5 & -7.5 \tabularnewline
110 & 29 & 46.7142857142857 & -17.7142857142857 \tabularnewline
111 & 54 & 46.7142857142857 & 7.28571428571428 \tabularnewline
112 & 38 & 46.7142857142857 & -8.71428571428572 \tabularnewline
113 & 52 & 46.7142857142857 & 5.28571428571428 \tabularnewline
114 & 57 & 46.7142857142857 & 10.2857142857143 \tabularnewline
115 & 5 & 7.5 & -2.5 \tabularnewline
116 & 0 & 7.5 & -7.5 \tabularnewline
117 & 38 & 46.7142857142857 & -8.71428571428572 \tabularnewline
118 & 66 & 46.7142857142857 & 19.2857142857143 \tabularnewline
119 & 86 & 68.5789473684211 & 17.4210526315789 \tabularnewline
120 & 34 & 27.5333333333333 & 6.46666666666667 \tabularnewline
121 & 19 & 27.5333333333333 & -8.53333333333333 \tabularnewline
122 & 63 & 46.7142857142857 & 16.2857142857143 \tabularnewline
123 & 38 & 46.7142857142857 & -8.71428571428572 \tabularnewline
124 & 48 & 68.5789473684211 & -20.5789473684211 \tabularnewline
125 & 39 & 27.5333333333333 & 11.4666666666667 \tabularnewline
126 & 12 & 7.5 & 4.5 \tabularnewline
127 & 44 & 46.7142857142857 & -2.71428571428572 \tabularnewline
128 & 26 & 46.7142857142857 & -20.7142857142857 \tabularnewline
129 & 35 & 46.7142857142857 & -11.7142857142857 \tabularnewline
130 & 9 & 7.5 & 1.5 \tabularnewline
131 & 9 & 7.5 & 1.5 \tabularnewline
132 & 52 & 46.7142857142857 & 5.28571428571428 \tabularnewline
133 & 3 & 7.5 & -4.5 \tabularnewline
134 & 51 & 68.5789473684211 & -17.5789473684211 \tabularnewline
135 & 3 & 7.5 & -4.5 \tabularnewline
136 & 16 & 7.5 & 8.5 \tabularnewline
137 & 0 & 7.5 & -7.5 \tabularnewline
138 & 42 & 46.7142857142857 & -4.71428571428572 \tabularnewline
139 & 33 & 46.7142857142857 & -13.7142857142857 \tabularnewline
140 & 4 & 7.5 & -3.5 \tabularnewline
141 & 13 & 7.5 & 5.5 \tabularnewline
142 & 22 & 46.7142857142857 & -24.7142857142857 \tabularnewline
143 & 47 & 46.7142857142857 & 0.285714285714285 \tabularnewline
144 & 18 & 46.7142857142857 & -28.7142857142857 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155746&T=2

[TABLE]
[ROW][C]Actuals, Predictions, and Residuals[/C][/ROW]
[ROW][C]#[/C][C]Actuals[/C][C]Forecasts[/C][C]Residuals[/C][/ROW]
[ROW][C]1[/C][C]81[/C][C]68.5789473684211[/C][C]12.4210526315789[/C][/ROW]
[ROW][C]2[/C][C]47[/C][C]46.7142857142857[/C][C]0.285714285714285[/C][/ROW]
[ROW][C]3[/C][C]18[/C][C]7.5[/C][C]10.5[/C][/ROW]
[ROW][C]4[/C][C]89[/C][C]68.5789473684211[/C][C]20.4210526315789[/C][/ROW]
[ROW][C]5[/C][C]128[/C][C]108.083333333333[/C][C]19.9166666666667[/C][/ROW]
[ROW][C]6[/C][C]224[/C][C]108.083333333333[/C][C]115.916666666667[/C][/ROW]
[ROW][C]7[/C][C]52[/C][C]46.7142857142857[/C][C]5.28571428571428[/C][/ROW]
[ROW][C]8[/C][C]51[/C][C]46.7142857142857[/C][C]4.28571428571428[/C][/ROW]
[ROW][C]9[/C][C]39[/C][C]46.7142857142857[/C][C]-7.71428571428572[/C][/ROW]
[ROW][C]10[/C][C]89[/C][C]108.083333333333[/C][C]-19.0833333333333[/C][/ROW]
[ROW][C]11[/C][C]71[/C][C]68.5789473684211[/C][C]2.42105263157895[/C][/ROW]
[ROW][C]12[/C][C]63[/C][C]68.5789473684211[/C][C]-5.57894736842105[/C][/ROW]
[ROW][C]13[/C][C]93[/C][C]68.5789473684211[/C][C]24.4210526315789[/C][/ROW]
[ROW][C]14[/C][C]88[/C][C]108.083333333333[/C][C]-20.0833333333333[/C][/ROW]
[ROW][C]15[/C][C]47[/C][C]46.7142857142857[/C][C]0.285714285714285[/C][/ROW]
[ROW][C]16[/C][C]68[/C][C]46.7142857142857[/C][C]21.2857142857143[/C][/ROW]
[ROW][C]17[/C][C]52[/C][C]68.5789473684211[/C][C]-16.5789473684211[/C][/ROW]
[ROW][C]18[/C][C]51[/C][C]46.7142857142857[/C][C]4.28571428571428[/C][/ROW]
[ROW][C]19[/C][C]80[/C][C]68.5789473684211[/C][C]11.4210526315789[/C][/ROW]
[ROW][C]20[/C][C]21[/C][C]27.5333333333333[/C][C]-6.53333333333333[/C][/ROW]
[ROW][C]21[/C][C]51[/C][C]46.7142857142857[/C][C]4.28571428571428[/C][/ROW]
[ROW][C]22[/C][C]84[/C][C]68.5789473684211[/C][C]15.4210526315789[/C][/ROW]
[ROW][C]23[/C][C]62[/C][C]46.7142857142857[/C][C]15.2857142857143[/C][/ROW]
[ROW][C]24[/C][C]47[/C][C]68.5789473684211[/C][C]-21.5789473684211[/C][/ROW]
[ROW][C]25[/C][C]79[/C][C]68.5789473684211[/C][C]10.4210526315789[/C][/ROW]
[ROW][C]26[/C][C]25[/C][C]46.7142857142857[/C][C]-21.7142857142857[/C][/ROW]
[ROW][C]27[/C][C]141[/C][C]68.5789473684211[/C][C]72.4210526315789[/C][/ROW]
[ROW][C]28[/C][C]75[/C][C]46.7142857142857[/C][C]28.2857142857143[/C][/ROW]
[ROW][C]29[/C][C]108[/C][C]108.083333333333[/C][C]-0.0833333333333286[/C][/ROW]
[ROW][C]30[/C][C]40[/C][C]68.5789473684211[/C][C]-28.5789473684211[/C][/ROW]
[ROW][C]31[/C][C]41[/C][C]46.7142857142857[/C][C]-5.71428571428572[/C][/ROW]
[ROW][C]32[/C][C]41[/C][C]46.7142857142857[/C][C]-5.71428571428572[/C][/ROW]
[ROW][C]33[/C][C]91[/C][C]68.5789473684211[/C][C]22.4210526315789[/C][/ROW]
[ROW][C]34[/C][C]110[/C][C]108.083333333333[/C][C]1.91666666666667[/C][/ROW]
[ROW][C]35[/C][C]45[/C][C]68.5789473684211[/C][C]-23.5789473684211[/C][/ROW]
[ROW][C]36[/C][C]1[/C][C]7.5[/C][C]-6.5[/C][/ROW]
[ROW][C]37[/C][C]56[/C][C]68.5789473684211[/C][C]-12.5789473684211[/C][/ROW]
[ROW][C]38[/C][C]48[/C][C]46.7142857142857[/C][C]1.28571428571428[/C][/ROW]
[ROW][C]39[/C][C]43[/C][C]68.5789473684211[/C][C]-25.5789473684211[/C][/ROW]
[ROW][C]40[/C][C]53[/C][C]68.5789473684211[/C][C]-15.5789473684211[/C][/ROW]
[ROW][C]41[/C][C]60[/C][C]68.5789473684211[/C][C]-8.57894736842105[/C][/ROW]
[ROW][C]42[/C][C]51[/C][C]46.7142857142857[/C][C]4.28571428571428[/C][/ROW]
[ROW][C]43[/C][C]26[/C][C]46.7142857142857[/C][C]-20.7142857142857[/C][/ROW]
[ROW][C]44[/C][C]68[/C][C]68.5789473684211[/C][C]-0.578947368421055[/C][/ROW]
[ROW][C]45[/C][C]42[/C][C]46.7142857142857[/C][C]-4.71428571428572[/C][/ROW]
[ROW][C]46[/C][C]81[/C][C]46.7142857142857[/C][C]34.2857142857143[/C][/ROW]
[ROW][C]47[/C][C]27[/C][C]27.5333333333333[/C][C]-0.533333333333335[/C][/ROW]
[ROW][C]48[/C][C]83[/C][C]68.5789473684211[/C][C]14.4210526315789[/C][/ROW]
[ROW][C]49[/C][C]76[/C][C]68.5789473684211[/C][C]7.42105263157895[/C][/ROW]
[ROW][C]50[/C][C]54[/C][C]108.083333333333[/C][C]-54.0833333333333[/C][/ROW]
[ROW][C]51[/C][C]28[/C][C]27.5333333333333[/C][C]0.466666666666665[/C][/ROW]
[ROW][C]52[/C][C]59[/C][C]46.7142857142857[/C][C]12.2857142857143[/C][/ROW]
[ROW][C]53[/C][C]66[/C][C]68.5789473684211[/C][C]-2.57894736842105[/C][/ROW]
[ROW][C]54[/C][C]70[/C][C]68.5789473684211[/C][C]1.42105263157895[/C][/ROW]
[ROW][C]55[/C][C]54[/C][C]68.5789473684211[/C][C]-14.5789473684211[/C][/ROW]
[ROW][C]56[/C][C]47[/C][C]46.7142857142857[/C][C]0.285714285714285[/C][/ROW]
[ROW][C]57[/C][C]59[/C][C]68.5789473684211[/C][C]-9.57894736842105[/C][/ROW]
[ROW][C]58[/C][C]20[/C][C]27.5333333333333[/C][C]-7.53333333333333[/C][/ROW]
[ROW][C]59[/C][C]57[/C][C]46.7142857142857[/C][C]10.2857142857143[/C][/ROW]
[ROW][C]60[/C][C]77[/C][C]108.083333333333[/C][C]-31.0833333333333[/C][/ROW]
[ROW][C]61[/C][C]51[/C][C]46.7142857142857[/C][C]4.28571428571428[/C][/ROW]
[ROW][C]62[/C][C]69[/C][C]68.5789473684211[/C][C]0.421052631578945[/C][/ROW]
[ROW][C]63[/C][C]50[/C][C]46.7142857142857[/C][C]3.28571428571428[/C][/ROW]
[ROW][C]64[/C][C]30[/C][C]46.7142857142857[/C][C]-16.7142857142857[/C][/ROW]
[ROW][C]65[/C][C]27[/C][C]46.7142857142857[/C][C]-19.7142857142857[/C][/ROW]
[ROW][C]66[/C][C]37[/C][C]46.7142857142857[/C][C]-9.71428571428572[/C][/ROW]
[ROW][C]67[/C][C]62[/C][C]68.5789473684211[/C][C]-6.57894736842105[/C][/ROW]
[ROW][C]68[/C][C]63[/C][C]108.083333333333[/C][C]-45.0833333333333[/C][/ROW]
[ROW][C]69[/C][C]34[/C][C]46.7142857142857[/C][C]-12.7142857142857[/C][/ROW]
[ROW][C]70[/C][C]15[/C][C]7.5[/C][C]7.5[/C][/ROW]
[ROW][C]71[/C][C]105[/C][C]108.083333333333[/C][C]-3.08333333333333[/C][/ROW]
[ROW][C]72[/C][C]57[/C][C]46.7142857142857[/C][C]10.2857142857143[/C][/ROW]
[ROW][C]73[/C][C]58[/C][C]46.7142857142857[/C][C]11.2857142857143[/C][/ROW]
[ROW][C]74[/C][C]62[/C][C]46.7142857142857[/C][C]15.2857142857143[/C][/ROW]
[ROW][C]75[/C][C]57[/C][C]108.083333333333[/C][C]-51.0833333333333[/C][/ROW]
[ROW][C]76[/C][C]34[/C][C]46.7142857142857[/C][C]-12.7142857142857[/C][/ROW]
[ROW][C]77[/C][C]53[/C][C]68.5789473684211[/C][C]-15.5789473684211[/C][/ROW]
[ROW][C]78[/C][C]82[/C][C]68.5789473684211[/C][C]13.4210526315789[/C][/ROW]
[ROW][C]79[/C][C]23[/C][C]27.5333333333333[/C][C]-4.53333333333333[/C][/ROW]
[ROW][C]80[/C][C]71[/C][C]46.7142857142857[/C][C]24.2857142857143[/C][/ROW]
[ROW][C]81[/C][C]62[/C][C]46.7142857142857[/C][C]15.2857142857143[/C][/ROW]
[ROW][C]82[/C][C]55[/C][C]68.5789473684211[/C][C]-13.5789473684211[/C][/ROW]
[ROW][C]83[/C][C]25[/C][C]46.7142857142857[/C][C]-21.7142857142857[/C][/ROW]
[ROW][C]84[/C][C]32[/C][C]46.7142857142857[/C][C]-14.7142857142857[/C][/ROW]
[ROW][C]85[/C][C]40[/C][C]27.5333333333333[/C][C]12.4666666666667[/C][/ROW]
[ROW][C]86[/C][C]43[/C][C]46.7142857142857[/C][C]-3.71428571428572[/C][/ROW]
[ROW][C]87[/C][C]194[/C][C]108.083333333333[/C][C]85.9166666666667[/C][/ROW]
[ROW][C]88[/C][C]87[/C][C]46.7142857142857[/C][C]40.2857142857143[/C][/ROW]
[ROW][C]89[/C][C]49[/C][C]46.7142857142857[/C][C]2.28571428571428[/C][/ROW]
[ROW][C]90[/C][C]44[/C][C]46.7142857142857[/C][C]-2.71428571428572[/C][/ROW]
[ROW][C]91[/C][C]35[/C][C]46.7142857142857[/C][C]-11.7142857142857[/C][/ROW]
[ROW][C]92[/C][C]67[/C][C]68.5789473684211[/C][C]-1.57894736842105[/C][/ROW]
[ROW][C]93[/C][C]53[/C][C]46.7142857142857[/C][C]6.28571428571428[/C][/ROW]
[ROW][C]94[/C][C]57[/C][C]46.7142857142857[/C][C]10.2857142857143[/C][/ROW]
[ROW][C]95[/C][C]33[/C][C]27.5333333333333[/C][C]5.46666666666667[/C][/ROW]
[ROW][C]96[/C][C]95[/C][C]68.5789473684211[/C][C]26.4210526315789[/C][/ROW]
[ROW][C]97[/C][C]50[/C][C]68.5789473684211[/C][C]-18.5789473684211[/C][/ROW]
[ROW][C]98[/C][C]12[/C][C]7.5[/C][C]4.5[/C][/ROW]
[ROW][C]99[/C][C]88[/C][C]68.5789473684211[/C][C]19.4210526315789[/C][/ROW]
[ROW][C]100[/C][C]56[/C][C]68.5789473684211[/C][C]-12.5789473684211[/C][/ROW]
[ROW][C]101[/C][C]25[/C][C]27.5333333333333[/C][C]-2.53333333333333[/C][/ROW]
[ROW][C]102[/C][C]20[/C][C]27.5333333333333[/C][C]-7.53333333333333[/C][/ROW]
[ROW][C]103[/C][C]44[/C][C]46.7142857142857[/C][C]-2.71428571428572[/C][/ROW]
[ROW][C]104[/C][C]52[/C][C]46.7142857142857[/C][C]5.28571428571428[/C][/ROW]
[ROW][C]105[/C][C]36[/C][C]27.5333333333333[/C][C]8.46666666666667[/C][/ROW]
[ROW][C]106[/C][C]22[/C][C]27.5333333333333[/C][C]-5.53333333333333[/C][/ROW]
[ROW][C]107[/C][C]34[/C][C]46.7142857142857[/C][C]-12.7142857142857[/C][/ROW]
[ROW][C]108[/C][C]26[/C][C]27.5333333333333[/C][C]-1.53333333333333[/C][/ROW]
[ROW][C]109[/C][C]0[/C][C]7.5[/C][C]-7.5[/C][/ROW]
[ROW][C]110[/C][C]29[/C][C]46.7142857142857[/C][C]-17.7142857142857[/C][/ROW]
[ROW][C]111[/C][C]54[/C][C]46.7142857142857[/C][C]7.28571428571428[/C][/ROW]
[ROW][C]112[/C][C]38[/C][C]46.7142857142857[/C][C]-8.71428571428572[/C][/ROW]
[ROW][C]113[/C][C]52[/C][C]46.7142857142857[/C][C]5.28571428571428[/C][/ROW]
[ROW][C]114[/C][C]57[/C][C]46.7142857142857[/C][C]10.2857142857143[/C][/ROW]
[ROW][C]115[/C][C]5[/C][C]7.5[/C][C]-2.5[/C][/ROW]
[ROW][C]116[/C][C]0[/C][C]7.5[/C][C]-7.5[/C][/ROW]
[ROW][C]117[/C][C]38[/C][C]46.7142857142857[/C][C]-8.71428571428572[/C][/ROW]
[ROW][C]118[/C][C]66[/C][C]46.7142857142857[/C][C]19.2857142857143[/C][/ROW]
[ROW][C]119[/C][C]86[/C][C]68.5789473684211[/C][C]17.4210526315789[/C][/ROW]
[ROW][C]120[/C][C]34[/C][C]27.5333333333333[/C][C]6.46666666666667[/C][/ROW]
[ROW][C]121[/C][C]19[/C][C]27.5333333333333[/C][C]-8.53333333333333[/C][/ROW]
[ROW][C]122[/C][C]63[/C][C]46.7142857142857[/C][C]16.2857142857143[/C][/ROW]
[ROW][C]123[/C][C]38[/C][C]46.7142857142857[/C][C]-8.71428571428572[/C][/ROW]
[ROW][C]124[/C][C]48[/C][C]68.5789473684211[/C][C]-20.5789473684211[/C][/ROW]
[ROW][C]125[/C][C]39[/C][C]27.5333333333333[/C][C]11.4666666666667[/C][/ROW]
[ROW][C]126[/C][C]12[/C][C]7.5[/C][C]4.5[/C][/ROW]
[ROW][C]127[/C][C]44[/C][C]46.7142857142857[/C][C]-2.71428571428572[/C][/ROW]
[ROW][C]128[/C][C]26[/C][C]46.7142857142857[/C][C]-20.7142857142857[/C][/ROW]
[ROW][C]129[/C][C]35[/C][C]46.7142857142857[/C][C]-11.7142857142857[/C][/ROW]
[ROW][C]130[/C][C]9[/C][C]7.5[/C][C]1.5[/C][/ROW]
[ROW][C]131[/C][C]9[/C][C]7.5[/C][C]1.5[/C][/ROW]
[ROW][C]132[/C][C]52[/C][C]46.7142857142857[/C][C]5.28571428571428[/C][/ROW]
[ROW][C]133[/C][C]3[/C][C]7.5[/C][C]-4.5[/C][/ROW]
[ROW][C]134[/C][C]51[/C][C]68.5789473684211[/C][C]-17.5789473684211[/C][/ROW]
[ROW][C]135[/C][C]3[/C][C]7.5[/C][C]-4.5[/C][/ROW]
[ROW][C]136[/C][C]16[/C][C]7.5[/C][C]8.5[/C][/ROW]
[ROW][C]137[/C][C]0[/C][C]7.5[/C][C]-7.5[/C][/ROW]
[ROW][C]138[/C][C]42[/C][C]46.7142857142857[/C][C]-4.71428571428572[/C][/ROW]
[ROW][C]139[/C][C]33[/C][C]46.7142857142857[/C][C]-13.7142857142857[/C][/ROW]
[ROW][C]140[/C][C]4[/C][C]7.5[/C][C]-3.5[/C][/ROW]
[ROW][C]141[/C][C]13[/C][C]7.5[/C][C]5.5[/C][/ROW]
[ROW][C]142[/C][C]22[/C][C]46.7142857142857[/C][C]-24.7142857142857[/C][/ROW]
[ROW][C]143[/C][C]47[/C][C]46.7142857142857[/C][C]0.285714285714285[/C][/ROW]
[ROW][C]144[/C][C]18[/C][C]46.7142857142857[/C][C]-28.7142857142857[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155746&T=2

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

As an alternative you can also use a QR Code:  

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

Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
18168.578947368421112.4210526315789
24746.71428571428570.285714285714285
3187.510.5
48968.578947368421120.4210526315789
5128108.08333333333319.9166666666667
6224108.083333333333115.916666666667
75246.71428571428575.28571428571428
85146.71428571428574.28571428571428
93946.7142857142857-7.71428571428572
1089108.083333333333-19.0833333333333
117168.57894736842112.42105263157895
126368.5789473684211-5.57894736842105
139368.578947368421124.4210526315789
1488108.083333333333-20.0833333333333
154746.71428571428570.285714285714285
166846.714285714285721.2857142857143
175268.5789473684211-16.5789473684211
185146.71428571428574.28571428571428
198068.578947368421111.4210526315789
202127.5333333333333-6.53333333333333
215146.71428571428574.28571428571428
228468.578947368421115.4210526315789
236246.714285714285715.2857142857143
244768.5789473684211-21.5789473684211
257968.578947368421110.4210526315789
262546.7142857142857-21.7142857142857
2714168.578947368421172.4210526315789
287546.714285714285728.2857142857143
29108108.083333333333-0.0833333333333286
304068.5789473684211-28.5789473684211
314146.7142857142857-5.71428571428572
324146.7142857142857-5.71428571428572
339168.578947368421122.4210526315789
34110108.0833333333331.91666666666667
354568.5789473684211-23.5789473684211
3617.5-6.5
375668.5789473684211-12.5789473684211
384846.71428571428571.28571428571428
394368.5789473684211-25.5789473684211
405368.5789473684211-15.5789473684211
416068.5789473684211-8.57894736842105
425146.71428571428574.28571428571428
432646.7142857142857-20.7142857142857
446868.5789473684211-0.578947368421055
454246.7142857142857-4.71428571428572
468146.714285714285734.2857142857143
472727.5333333333333-0.533333333333335
488368.578947368421114.4210526315789
497668.57894736842117.42105263157895
5054108.083333333333-54.0833333333333
512827.53333333333330.466666666666665
525946.714285714285712.2857142857143
536668.5789473684211-2.57894736842105
547068.57894736842111.42105263157895
555468.5789473684211-14.5789473684211
564746.71428571428570.285714285714285
575968.5789473684211-9.57894736842105
582027.5333333333333-7.53333333333333
595746.714285714285710.2857142857143
6077108.083333333333-31.0833333333333
615146.71428571428574.28571428571428
626968.57894736842110.421052631578945
635046.71428571428573.28571428571428
643046.7142857142857-16.7142857142857
652746.7142857142857-19.7142857142857
663746.7142857142857-9.71428571428572
676268.5789473684211-6.57894736842105
6863108.083333333333-45.0833333333333
693446.7142857142857-12.7142857142857
70157.57.5
71105108.083333333333-3.08333333333333
725746.714285714285710.2857142857143
735846.714285714285711.2857142857143
746246.714285714285715.2857142857143
7557108.083333333333-51.0833333333333
763446.7142857142857-12.7142857142857
775368.5789473684211-15.5789473684211
788268.578947368421113.4210526315789
792327.5333333333333-4.53333333333333
807146.714285714285724.2857142857143
816246.714285714285715.2857142857143
825568.5789473684211-13.5789473684211
832546.7142857142857-21.7142857142857
843246.7142857142857-14.7142857142857
854027.533333333333312.4666666666667
864346.7142857142857-3.71428571428572
87194108.08333333333385.9166666666667
888746.714285714285740.2857142857143
894946.71428571428572.28571428571428
904446.7142857142857-2.71428571428572
913546.7142857142857-11.7142857142857
926768.5789473684211-1.57894736842105
935346.71428571428576.28571428571428
945746.714285714285710.2857142857143
953327.53333333333335.46666666666667
969568.578947368421126.4210526315789
975068.5789473684211-18.5789473684211
98127.54.5
998868.578947368421119.4210526315789
1005668.5789473684211-12.5789473684211
1012527.5333333333333-2.53333333333333
1022027.5333333333333-7.53333333333333
1034446.7142857142857-2.71428571428572
1045246.71428571428575.28571428571428
1053627.53333333333338.46666666666667
1062227.5333333333333-5.53333333333333
1073446.7142857142857-12.7142857142857
1082627.5333333333333-1.53333333333333
10907.5-7.5
1102946.7142857142857-17.7142857142857
1115446.71428571428577.28571428571428
1123846.7142857142857-8.71428571428572
1135246.71428571428575.28571428571428
1145746.714285714285710.2857142857143
11557.5-2.5
11607.5-7.5
1173846.7142857142857-8.71428571428572
1186646.714285714285719.2857142857143
1198668.578947368421117.4210526315789
1203427.53333333333336.46666666666667
1211927.5333333333333-8.53333333333333
1226346.714285714285716.2857142857143
1233846.7142857142857-8.71428571428572
1244868.5789473684211-20.5789473684211
1253927.533333333333311.4666666666667
126127.54.5
1274446.7142857142857-2.71428571428572
1282646.7142857142857-20.7142857142857
1293546.7142857142857-11.7142857142857
13097.51.5
13197.51.5
1325246.71428571428575.28571428571428
13337.5-4.5
1345168.5789473684211-17.5789473684211
13537.5-4.5
136167.58.5
13707.5-7.5
1384246.7142857142857-4.71428571428572
1393346.7142857142857-13.7142857142857
14047.5-3.5
141137.55.5
1422246.7142857142857-24.7142857142857
1434746.71428571428570.285714285714285
1441846.7142857142857-28.7142857142857



Parameters (Session):
par1 = 3 ; par2 = none ; par3 = 3 ; par4 = no ;
Parameters (R input):
par1 = 3 ; par2 = none ; par3 = 3 ; par4 = no ;
R code (references can be found in the software module):
library(party)
library(Hmisc)
par1 <- as.numeric(par1)
par3 <- as.numeric(par3)
x <- data.frame(t(y))
is.data.frame(x)
x <- x[!is.na(x[,par1]),]
k <- length(x[1,])
n <- length(x[,1])
colnames(x)[par1]
x[,par1]
if (par2 == 'kmeans') {
cl <- kmeans(x[,par1], par3)
print(cl)
clm <- matrix(cbind(cl$centers,1:par3),ncol=2)
clm <- clm[sort.list(clm[,1]),]
for (i in 1:par3) {
cl$cluster[cl$cluster==clm[i,2]] <- paste('C',i,sep='')
}
cl$cluster <- as.factor(cl$cluster)
print(cl$cluster)
x[,par1] <- cl$cluster
}
if (par2 == 'quantiles') {
x[,par1] <- cut2(x[,par1],g=par3)
}
if (par2 == 'hclust') {
hc <- hclust(dist(x[,par1])^2, 'cen')
print(hc)
memb <- cutree(hc, k = par3)
dum <- c(mean(x[memb==1,par1]))
for (i in 2:par3) {
dum <- c(dum, mean(x[memb==i,par1]))
}
hcm <- matrix(cbind(dum,1:par3),ncol=2)
hcm <- hcm[sort.list(hcm[,1]),]
for (i in 1:par3) {
memb[memb==hcm[i,2]] <- paste('C',i,sep='')
}
memb <- as.factor(memb)
print(memb)
x[,par1] <- memb
}
if (par2=='equal') {
ed <- cut(as.numeric(x[,par1]),par3,labels=paste('C',1:par3,sep=''))
x[,par1] <- as.factor(ed)
}
table(x[,par1])
colnames(x)
colnames(x)[par1]
x[,par1]
if (par2 == 'none') {
m <- ctree(as.formula(paste(colnames(x)[par1],' ~ .',sep='')),data = x)
}
load(file='createtable')
if (par2 != 'none') {
m <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data = x)
if (par4=='yes') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'10-Fold Cross Validation',3+2*par3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
a<-table.element(a,'Prediction (training)',par3+1,TRUE)
a<-table.element(a,'Prediction (testing)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Actual',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
a<-table.row.end(a)
for (i in 1:10) {
ind <- sample(2, nrow(x), replace=T, prob=c(0.9,0.1))
m.ct <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data =x[ind==1,])
if (i==1) {
m.ct.i.pred <- predict(m.ct, newdata=x[ind==1,])
m.ct.i.actu <- x[ind==1,par1]
m.ct.x.pred <- predict(m.ct, newdata=x[ind==2,])
m.ct.x.actu <- x[ind==2,par1]
} else {
m.ct.i.pred <- c(m.ct.i.pred,predict(m.ct, newdata=x[ind==1,]))
m.ct.i.actu <- c(m.ct.i.actu,x[ind==1,par1])
m.ct.x.pred <- c(m.ct.x.pred,predict(m.ct, newdata=x[ind==2,]))
m.ct.x.actu <- c(m.ct.x.actu,x[ind==2,par1])
}
}
print(m.ct.i.tab <- table(m.ct.i.actu,m.ct.i.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.i.tab[i,i] / sum(m.ct.i.tab[i,]))
numer <- numer + m.ct.i.tab[i,i]
}
print(m.ct.i.cp <- numer / sum(m.ct.i.tab))
print(m.ct.x.tab <- table(m.ct.x.actu,m.ct.x.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.x.tab[i,i] / sum(m.ct.x.tab[i,]))
numer <- numer + m.ct.x.tab[i,i]
}
print(m.ct.x.cp <- numer / sum(m.ct.x.tab))
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (jjj in 1:par3) a<-table.element(a,m.ct.i.tab[i,jjj])
a<-table.element(a,round(m.ct.i.tab[i,i]/sum(m.ct.i.tab[i,]),4))
for (jjj in 1:par3) a<-table.element(a,m.ct.x.tab[i,jjj])
a<-table.element(a,round(m.ct.x.tab[i,i]/sum(m.ct.x.tab[i,]),4))
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a,'Overall',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.i.cp,4))
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.x.cp,4))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
}
}
m
bitmap(file='test1.png')
plot(m)
dev.off()
bitmap(file='test1a.png')
plot(x[,par1] ~ as.factor(where(m)),main='Response by Terminal Node',xlab='Terminal Node',ylab='Response')
dev.off()
if (par2 == 'none') {
forec <- predict(m)
result <- as.data.frame(cbind(x[,par1],forec,x[,par1]-forec))
colnames(result) <- c('Actuals','Forecasts','Residuals')
print(result)
}
if (par2 != 'none') {
print(cbind(as.factor(x[,par1]),predict(m)))
myt <- table(as.factor(x[,par1]),predict(m))
print(myt)
}
bitmap(file='test2.png')
if(par2=='none') {
op <- par(mfrow=c(2,2))
plot(density(result$Actuals),main='Kernel Density Plot of Actuals')
plot(density(result$Residuals),main='Kernel Density Plot of Residuals')
plot(result$Forecasts,result$Actuals,main='Actuals versus Predictions',xlab='Predictions',ylab='Actuals')
plot(density(result$Forecasts),main='Kernel Density Plot of Predictions')
par(op)
}
if(par2!='none') {
plot(myt,main='Confusion Matrix',xlab='Actual',ylab='Predicted')
}
dev.off()
if (par2 == 'none') {
detcoef <- cor(result$Forecasts,result$Actuals)
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goodness of Fit',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Correlation',1,TRUE)
a<-table.element(a,round(detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'R-squared',1,TRUE)
a<-table.element(a,round(detcoef*detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'RMSE',1,TRUE)
a<-table.element(a,round(sqrt(mean((result$Residuals)^2)),4))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Actuals, Predictions, and Residuals',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'#',header=TRUE)
a<-table.element(a,'Actuals',header=TRUE)
a<-table.element(a,'Forecasts',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(result$Actuals)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,result$Actuals[i])
a<-table.element(a,result$Forecasts[i])
a<-table.element(a,result$Residuals[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
}
if (par2 != 'none') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Confusion Matrix (predicted in columns / actuals in rows)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
for (i in 1:par3) {
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
}
a<-table.row.end(a)
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (j in 1:par3) {
a<-table.element(a,myt[i,j])
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
}