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 computationSun, 18 Dec 2011 11:38:19 -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/18/t13242264242wy0i29x29fac1z.htm/, Retrieved Sun, 05 May 2024 09:16:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=157064, Retrieved Sun, 05 May 2024 09:16:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact126
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Paired and Unpaired Two Samples Tests about the Mean] [] [2010-11-18 18:11:09] [2e1e44f0ae3cb9513dc28781dfdb387b]
-    D  [Paired and Unpaired Two Samples Tests about the Mean] [] [2011-10-26 14:24:41] [5c12c14850e1dddd68cd7e26a7cf987c]
- RMPD    [(Partial) Autocorrelation Function] [Auto Correlation ...] [2011-12-18 12:54:39] [5c12c14850e1dddd68cd7e26a7cf987c]
- RMPD      [Recursive Partitioning (Regression Trees)] [Regression Trees] [2011-12-18 16:28:33] [5c12c14850e1dddd68cd7e26a7cf987c]
-    D          [Recursive Partitioning (Regression Trees)] [Regression Trees 2] [2011-12-18 16:38:19] [12a6074303e7dbf450a4f3ff6a9ce824] [Current]
Feedback Forum

Post a new message
Dataseries X:
1769	240	118	151036	26258
810	111	55	92556	14881
919	91	67	57803	16957
769	68	60	68701	18717
712	57	39	41152	8464
760	61	82	92596	26641
664	77	55	35728	9724
1118	129	76	54002	20323
624	217	55	62897	22557
694	104	45	57021	14612
861	117	76	58092	4362
910	108	53	29245	6372
975	99	75	47007	13448
742	48	54	42009	14349
890	58	46	36022	10881
697	90	78	83700	20517
651	87	63	46456	13275
456	60	50	38844	8030
815	40	52	40078	16318
726	95	26	46609	11252
526	61	95	73116	11219
483	67	68	74990	19365
628	67	73	49598	14426
597	68	35	40400	2570
584	54	53	29010	9863
616	149	58	58534	15657
588	80	43	66616	21224
611	64	71	52143	20488
426	52	45	33629	10265
880	86	30	57476	7768
496	42	54	31076	10462
734	74	54	63369	5989
562	85	48	20465	6200
297	77	67	44663	15329
301	38	35	27525	10698
606	56	48	57786	6837
474	65	67	41211	9188
427	41	50	34711	9556
384	54	62	31172	8247
407	56	39	37477	7028
395	32	25	23284	5753
535	92	26	28549	6852
875	55	62	41554	10615
771	71	40	29351	9289
452	77	54	59147	6185
627	60	67	92901	12964
496	46	32	48140	8895
569	80	50	36205	5299
497	37	48	44810	9435
375	49	45	28735	5389
756	89	59	75043	9970
282	85	40	37403	13958
513	25	39	30165	7233
587	69	66	76542	13178
539	75	68	66856	14884
518	48	30	40715	7820
498	53	42	33287	10165
391	52	75	78950	24369
449	52	33	100674	7642
454	52	50	33277	13823
495	45	35	53349	13073
843	65	83	29653	9422
538	54	64	34241	11580
597	53	31	44093	15604
471	49	46	26757	9831
298	42	78	33994	12840
466	57	27	53216	6616
405	41	49	31032	7987
721	82	54	46154	17327
618	91	49	25629	8874
629	71	50	49830	8058
468	41	48	28113	8683
661	95	53	74608	7192
273	47	47	39644	13400
465	50	35	23110	8374
360	44	51	32665	8208
535	37	45	65897	12112
347	56	43	61281	10170
381	61	67	30874	12396
287	37	36	38610	6873
315	59	47	35139	14146
497	49	55	41194	4260
372	56	52	32683	10566
341	26	23	22527	5953
366	65	25	37941	5322
352	61	36	50008	5413
248	36	48	64622	12310
384	33	44	25820	7573
673	71	36	31141	7230
442	65	46	13310	3394
312	43	25	28470	8191
560	49	38	33797	5162
438	32	37	28263	10226
322	42	44	60132	11270
410	62	62	52338	10837
391	37	38	35378	9791
249	53	24	19249	7488
350	29	25	84205	9184
386	18	17	23494	8181
483	49	44	23333	8022
360	54	39	41622	8620
229	31	12	13018	1350
241	39	30	22698	5141
574	94	41	21055	7945
306	31	46	98177	10623
395	71	34	42249	10138
248	36	21	61849	1661
244	95	42	22883	6900
212	31	23	24460	7162
211	64	54	42005	14697
190	37	30	15292	4574
251	22	25	27084	7509
345	37	2	10956	3495
287	57	36	34545	1900
305	52	0	13497	70
247	23	15	8019	3080
165	39	3	32689	443
253	23	16	21152	4911
240	20	41	31747	6562
244	26	26	14399	4204
310	52	16	10726	3149
263	27	13	2325	593
256	42	17	17215	3456
291	34	22	40911	9570
205	28	12	22346	2102
292	19	7	2781	4
183	16	8	5444	775
101	15	5	4157	1283
215	24	13	53249	3878
194	22	2	5842	522
75	12	10	5752	2416
67	12	13	3895	786
79	9	1	0	0
33	9	0	0	0
97	13	0	2179	548
72	18	0	1423	603
27	4	0	0	0
11	3	0	0	0
6	3	5	0	0
14	5	0	0	0
0	1	0	0	0
0	0	0	0	0
0	0	0	0	0
0	0	0	0	0




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=157064&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=157064&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157064&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.8109
R-squared0.6575
RMSE151.4015

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8109[/C][/ROW]
[ROW][C]R-squared[/C][C]0.6575[/C][/ROW]
[ROW][C]RMSE[/C][C]151.4015[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157064&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157064&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.8109
R-squared0.6575
RMSE151.4015







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
11769930.777777777778838.222222222222
2810930.777777777778-120.777777777778
3919606.7312.3
4769606.7162.3
5712491.02220.98
6760491.02268.98
7664606.757.3
81118930.777777777778187.222222222222
9624930.777777777778-306.777777777778
10694930.777777777778-236.777777777778
11861930.777777777778-69.7777777777778
12910930.777777777778-20.7777777777778
13975930.77777777777844.2222222222222
14742491.02250.98
15890491.02398.98
16697606.790.3
17651606.744.3
18456491.02-35.02
19815491.02323.98
20726606.7119.3
21526491.0234.98
22483606.7-123.7
23628606.721.3
24597606.7-9.70000000000005
25584491.0292.98
26616930.777777777778-314.777777777778
27588606.7-18.7
28611491.02119.98
29426491.02-65.02
30880606.7273.3
31496491.024.98000000000002
32734606.7127.3
33562606.7-44.7
34297606.7-309.7
35301324.04-23.04
36606491.02114.98
37474491.02-17.02
38427491.02-64.02
39384491.02-107.02
40407491.02-84.02
41395324.0470.96
42535606.7-71.7
43875491.02383.98
44771606.7164.3
45452606.7-154.7
46627491.02135.98
47496491.024.98000000000002
48569606.7-37.7
49497324.04172.96
50375491.02-116.02
51756606.7149.3
52282606.7-324.7
53513324.04188.96
54587606.7-19.7
55539606.7-67.7
56518491.0226.98
57498491.026.98000000000002
58391491.02-100.02
59449491.02-42.02
60454491.02-37.02
61495491.023.98000000000002
62843491.02351.98
63538491.0246.98
64597491.02105.98
65471491.02-20.02
66298491.02-193.02
67466323.428571428571142.571428571429
68405491.02-86.02
69721606.7114.3
70618606.711.3
71629606.722.3
72468491.02-23.02
73661606.754.3
74273491.02-218.02
75465491.02-26.02
76360491.02-131.02
77535324.04210.96
78347491.02-144.02
79381491.02-110.02
80287324.04-37.04
81315491.02-176.02
82497491.025.98000000000002
83372491.02-119.02
84341324.0416.96
85366323.42857142857142.5714285714286
86352491.02-139.02
87248324.04-76.04
88384324.0459.96
89673606.766.3
90442491.02-49.02
91312323.428571428571-11.4285714285714
92560491.0268.98
93438324.04113.96
94322491.02-169.02
95410491.02-81.02
96391324.0466.96
97249323.428571428571-74.4285714285714
98350324.0425.96
99386324.0461.96
100483491.02-8.01999999999998
101360491.02-131.02
1022292281
103241324.04-83.04
104574606.7-32.7
105306324.04-18.04
106395606.7-211.7
10724822820
108244606.7-362.7
109212324.04-112.04
110211491.02-280.02
111190324.04-134.04
112251324.04-73.04
113345324.0420.96
114287491.02-204.02
115305323.428571428571-18.4285714285714
116247324.04-77.04
117165228-63
118253324.04-71.04
119240324.04-84.04
120244324.04-80.04
121310323.428571428571-13.4285714285714
12226322835
123256323.428571428571-67.4285714285714
124291324.04-33.04
125205228-23
12629222864
12718347.8125135.1875
12810147.812553.1875
129215324.04-109.04
130194228-34
1317547.812527.1875
1326747.812519.1875
1337947.812531.1875
1343347.8125-14.8125
1359747.812549.1875
1367247.812524.1875
1372747.8125-20.8125
1381147.8125-36.8125
139647.8125-41.8125
1401447.8125-33.8125
141047.8125-47.8125
142047.8125-47.8125
143047.8125-47.8125
144047.8125-47.8125

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 1769 & 930.777777777778 & 838.222222222222 \tabularnewline
2 & 810 & 930.777777777778 & -120.777777777778 \tabularnewline
3 & 919 & 606.7 & 312.3 \tabularnewline
4 & 769 & 606.7 & 162.3 \tabularnewline
5 & 712 & 491.02 & 220.98 \tabularnewline
6 & 760 & 491.02 & 268.98 \tabularnewline
7 & 664 & 606.7 & 57.3 \tabularnewline
8 & 1118 & 930.777777777778 & 187.222222222222 \tabularnewline
9 & 624 & 930.777777777778 & -306.777777777778 \tabularnewline
10 & 694 & 930.777777777778 & -236.777777777778 \tabularnewline
11 & 861 & 930.777777777778 & -69.7777777777778 \tabularnewline
12 & 910 & 930.777777777778 & -20.7777777777778 \tabularnewline
13 & 975 & 930.777777777778 & 44.2222222222222 \tabularnewline
14 & 742 & 491.02 & 250.98 \tabularnewline
15 & 890 & 491.02 & 398.98 \tabularnewline
16 & 697 & 606.7 & 90.3 \tabularnewline
17 & 651 & 606.7 & 44.3 \tabularnewline
18 & 456 & 491.02 & -35.02 \tabularnewline
19 & 815 & 491.02 & 323.98 \tabularnewline
20 & 726 & 606.7 & 119.3 \tabularnewline
21 & 526 & 491.02 & 34.98 \tabularnewline
22 & 483 & 606.7 & -123.7 \tabularnewline
23 & 628 & 606.7 & 21.3 \tabularnewline
24 & 597 & 606.7 & -9.70000000000005 \tabularnewline
25 & 584 & 491.02 & 92.98 \tabularnewline
26 & 616 & 930.777777777778 & -314.777777777778 \tabularnewline
27 & 588 & 606.7 & -18.7 \tabularnewline
28 & 611 & 491.02 & 119.98 \tabularnewline
29 & 426 & 491.02 & -65.02 \tabularnewline
30 & 880 & 606.7 & 273.3 \tabularnewline
31 & 496 & 491.02 & 4.98000000000002 \tabularnewline
32 & 734 & 606.7 & 127.3 \tabularnewline
33 & 562 & 606.7 & -44.7 \tabularnewline
34 & 297 & 606.7 & -309.7 \tabularnewline
35 & 301 & 324.04 & -23.04 \tabularnewline
36 & 606 & 491.02 & 114.98 \tabularnewline
37 & 474 & 491.02 & -17.02 \tabularnewline
38 & 427 & 491.02 & -64.02 \tabularnewline
39 & 384 & 491.02 & -107.02 \tabularnewline
40 & 407 & 491.02 & -84.02 \tabularnewline
41 & 395 & 324.04 & 70.96 \tabularnewline
42 & 535 & 606.7 & -71.7 \tabularnewline
43 & 875 & 491.02 & 383.98 \tabularnewline
44 & 771 & 606.7 & 164.3 \tabularnewline
45 & 452 & 606.7 & -154.7 \tabularnewline
46 & 627 & 491.02 & 135.98 \tabularnewline
47 & 496 & 491.02 & 4.98000000000002 \tabularnewline
48 & 569 & 606.7 & -37.7 \tabularnewline
49 & 497 & 324.04 & 172.96 \tabularnewline
50 & 375 & 491.02 & -116.02 \tabularnewline
51 & 756 & 606.7 & 149.3 \tabularnewline
52 & 282 & 606.7 & -324.7 \tabularnewline
53 & 513 & 324.04 & 188.96 \tabularnewline
54 & 587 & 606.7 & -19.7 \tabularnewline
55 & 539 & 606.7 & -67.7 \tabularnewline
56 & 518 & 491.02 & 26.98 \tabularnewline
57 & 498 & 491.02 & 6.98000000000002 \tabularnewline
58 & 391 & 491.02 & -100.02 \tabularnewline
59 & 449 & 491.02 & -42.02 \tabularnewline
60 & 454 & 491.02 & -37.02 \tabularnewline
61 & 495 & 491.02 & 3.98000000000002 \tabularnewline
62 & 843 & 491.02 & 351.98 \tabularnewline
63 & 538 & 491.02 & 46.98 \tabularnewline
64 & 597 & 491.02 & 105.98 \tabularnewline
65 & 471 & 491.02 & -20.02 \tabularnewline
66 & 298 & 491.02 & -193.02 \tabularnewline
67 & 466 & 323.428571428571 & 142.571428571429 \tabularnewline
68 & 405 & 491.02 & -86.02 \tabularnewline
69 & 721 & 606.7 & 114.3 \tabularnewline
70 & 618 & 606.7 & 11.3 \tabularnewline
71 & 629 & 606.7 & 22.3 \tabularnewline
72 & 468 & 491.02 & -23.02 \tabularnewline
73 & 661 & 606.7 & 54.3 \tabularnewline
74 & 273 & 491.02 & -218.02 \tabularnewline
75 & 465 & 491.02 & -26.02 \tabularnewline
76 & 360 & 491.02 & -131.02 \tabularnewline
77 & 535 & 324.04 & 210.96 \tabularnewline
78 & 347 & 491.02 & -144.02 \tabularnewline
79 & 381 & 491.02 & -110.02 \tabularnewline
80 & 287 & 324.04 & -37.04 \tabularnewline
81 & 315 & 491.02 & -176.02 \tabularnewline
82 & 497 & 491.02 & 5.98000000000002 \tabularnewline
83 & 372 & 491.02 & -119.02 \tabularnewline
84 & 341 & 324.04 & 16.96 \tabularnewline
85 & 366 & 323.428571428571 & 42.5714285714286 \tabularnewline
86 & 352 & 491.02 & -139.02 \tabularnewline
87 & 248 & 324.04 & -76.04 \tabularnewline
88 & 384 & 324.04 & 59.96 \tabularnewline
89 & 673 & 606.7 & 66.3 \tabularnewline
90 & 442 & 491.02 & -49.02 \tabularnewline
91 & 312 & 323.428571428571 & -11.4285714285714 \tabularnewline
92 & 560 & 491.02 & 68.98 \tabularnewline
93 & 438 & 324.04 & 113.96 \tabularnewline
94 & 322 & 491.02 & -169.02 \tabularnewline
95 & 410 & 491.02 & -81.02 \tabularnewline
96 & 391 & 324.04 & 66.96 \tabularnewline
97 & 249 & 323.428571428571 & -74.4285714285714 \tabularnewline
98 & 350 & 324.04 & 25.96 \tabularnewline
99 & 386 & 324.04 & 61.96 \tabularnewline
100 & 483 & 491.02 & -8.01999999999998 \tabularnewline
101 & 360 & 491.02 & -131.02 \tabularnewline
102 & 229 & 228 & 1 \tabularnewline
103 & 241 & 324.04 & -83.04 \tabularnewline
104 & 574 & 606.7 & -32.7 \tabularnewline
105 & 306 & 324.04 & -18.04 \tabularnewline
106 & 395 & 606.7 & -211.7 \tabularnewline
107 & 248 & 228 & 20 \tabularnewline
108 & 244 & 606.7 & -362.7 \tabularnewline
109 & 212 & 324.04 & -112.04 \tabularnewline
110 & 211 & 491.02 & -280.02 \tabularnewline
111 & 190 & 324.04 & -134.04 \tabularnewline
112 & 251 & 324.04 & -73.04 \tabularnewline
113 & 345 & 324.04 & 20.96 \tabularnewline
114 & 287 & 491.02 & -204.02 \tabularnewline
115 & 305 & 323.428571428571 & -18.4285714285714 \tabularnewline
116 & 247 & 324.04 & -77.04 \tabularnewline
117 & 165 & 228 & -63 \tabularnewline
118 & 253 & 324.04 & -71.04 \tabularnewline
119 & 240 & 324.04 & -84.04 \tabularnewline
120 & 244 & 324.04 & -80.04 \tabularnewline
121 & 310 & 323.428571428571 & -13.4285714285714 \tabularnewline
122 & 263 & 228 & 35 \tabularnewline
123 & 256 & 323.428571428571 & -67.4285714285714 \tabularnewline
124 & 291 & 324.04 & -33.04 \tabularnewline
125 & 205 & 228 & -23 \tabularnewline
126 & 292 & 228 & 64 \tabularnewline
127 & 183 & 47.8125 & 135.1875 \tabularnewline
128 & 101 & 47.8125 & 53.1875 \tabularnewline
129 & 215 & 324.04 & -109.04 \tabularnewline
130 & 194 & 228 & -34 \tabularnewline
131 & 75 & 47.8125 & 27.1875 \tabularnewline
132 & 67 & 47.8125 & 19.1875 \tabularnewline
133 & 79 & 47.8125 & 31.1875 \tabularnewline
134 & 33 & 47.8125 & -14.8125 \tabularnewline
135 & 97 & 47.8125 & 49.1875 \tabularnewline
136 & 72 & 47.8125 & 24.1875 \tabularnewline
137 & 27 & 47.8125 & -20.8125 \tabularnewline
138 & 11 & 47.8125 & -36.8125 \tabularnewline
139 & 6 & 47.8125 & -41.8125 \tabularnewline
140 & 14 & 47.8125 & -33.8125 \tabularnewline
141 & 0 & 47.8125 & -47.8125 \tabularnewline
142 & 0 & 47.8125 & -47.8125 \tabularnewline
143 & 0 & 47.8125 & -47.8125 \tabularnewline
144 & 0 & 47.8125 & -47.8125 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=157064&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]1769[/C][C]930.777777777778[/C][C]838.222222222222[/C][/ROW]
[ROW][C]2[/C][C]810[/C][C]930.777777777778[/C][C]-120.777777777778[/C][/ROW]
[ROW][C]3[/C][C]919[/C][C]606.7[/C][C]312.3[/C][/ROW]
[ROW][C]4[/C][C]769[/C][C]606.7[/C][C]162.3[/C][/ROW]
[ROW][C]5[/C][C]712[/C][C]491.02[/C][C]220.98[/C][/ROW]
[ROW][C]6[/C][C]760[/C][C]491.02[/C][C]268.98[/C][/ROW]
[ROW][C]7[/C][C]664[/C][C]606.7[/C][C]57.3[/C][/ROW]
[ROW][C]8[/C][C]1118[/C][C]930.777777777778[/C][C]187.222222222222[/C][/ROW]
[ROW][C]9[/C][C]624[/C][C]930.777777777778[/C][C]-306.777777777778[/C][/ROW]
[ROW][C]10[/C][C]694[/C][C]930.777777777778[/C][C]-236.777777777778[/C][/ROW]
[ROW][C]11[/C][C]861[/C][C]930.777777777778[/C][C]-69.7777777777778[/C][/ROW]
[ROW][C]12[/C][C]910[/C][C]930.777777777778[/C][C]-20.7777777777778[/C][/ROW]
[ROW][C]13[/C][C]975[/C][C]930.777777777778[/C][C]44.2222222222222[/C][/ROW]
[ROW][C]14[/C][C]742[/C][C]491.02[/C][C]250.98[/C][/ROW]
[ROW][C]15[/C][C]890[/C][C]491.02[/C][C]398.98[/C][/ROW]
[ROW][C]16[/C][C]697[/C][C]606.7[/C][C]90.3[/C][/ROW]
[ROW][C]17[/C][C]651[/C][C]606.7[/C][C]44.3[/C][/ROW]
[ROW][C]18[/C][C]456[/C][C]491.02[/C][C]-35.02[/C][/ROW]
[ROW][C]19[/C][C]815[/C][C]491.02[/C][C]323.98[/C][/ROW]
[ROW][C]20[/C][C]726[/C][C]606.7[/C][C]119.3[/C][/ROW]
[ROW][C]21[/C][C]526[/C][C]491.02[/C][C]34.98[/C][/ROW]
[ROW][C]22[/C][C]483[/C][C]606.7[/C][C]-123.7[/C][/ROW]
[ROW][C]23[/C][C]628[/C][C]606.7[/C][C]21.3[/C][/ROW]
[ROW][C]24[/C][C]597[/C][C]606.7[/C][C]-9.70000000000005[/C][/ROW]
[ROW][C]25[/C][C]584[/C][C]491.02[/C][C]92.98[/C][/ROW]
[ROW][C]26[/C][C]616[/C][C]930.777777777778[/C][C]-314.777777777778[/C][/ROW]
[ROW][C]27[/C][C]588[/C][C]606.7[/C][C]-18.7[/C][/ROW]
[ROW][C]28[/C][C]611[/C][C]491.02[/C][C]119.98[/C][/ROW]
[ROW][C]29[/C][C]426[/C][C]491.02[/C][C]-65.02[/C][/ROW]
[ROW][C]30[/C][C]880[/C][C]606.7[/C][C]273.3[/C][/ROW]
[ROW][C]31[/C][C]496[/C][C]491.02[/C][C]4.98000000000002[/C][/ROW]
[ROW][C]32[/C][C]734[/C][C]606.7[/C][C]127.3[/C][/ROW]
[ROW][C]33[/C][C]562[/C][C]606.7[/C][C]-44.7[/C][/ROW]
[ROW][C]34[/C][C]297[/C][C]606.7[/C][C]-309.7[/C][/ROW]
[ROW][C]35[/C][C]301[/C][C]324.04[/C][C]-23.04[/C][/ROW]
[ROW][C]36[/C][C]606[/C][C]491.02[/C][C]114.98[/C][/ROW]
[ROW][C]37[/C][C]474[/C][C]491.02[/C][C]-17.02[/C][/ROW]
[ROW][C]38[/C][C]427[/C][C]491.02[/C][C]-64.02[/C][/ROW]
[ROW][C]39[/C][C]384[/C][C]491.02[/C][C]-107.02[/C][/ROW]
[ROW][C]40[/C][C]407[/C][C]491.02[/C][C]-84.02[/C][/ROW]
[ROW][C]41[/C][C]395[/C][C]324.04[/C][C]70.96[/C][/ROW]
[ROW][C]42[/C][C]535[/C][C]606.7[/C][C]-71.7[/C][/ROW]
[ROW][C]43[/C][C]875[/C][C]491.02[/C][C]383.98[/C][/ROW]
[ROW][C]44[/C][C]771[/C][C]606.7[/C][C]164.3[/C][/ROW]
[ROW][C]45[/C][C]452[/C][C]606.7[/C][C]-154.7[/C][/ROW]
[ROW][C]46[/C][C]627[/C][C]491.02[/C][C]135.98[/C][/ROW]
[ROW][C]47[/C][C]496[/C][C]491.02[/C][C]4.98000000000002[/C][/ROW]
[ROW][C]48[/C][C]569[/C][C]606.7[/C][C]-37.7[/C][/ROW]
[ROW][C]49[/C][C]497[/C][C]324.04[/C][C]172.96[/C][/ROW]
[ROW][C]50[/C][C]375[/C][C]491.02[/C][C]-116.02[/C][/ROW]
[ROW][C]51[/C][C]756[/C][C]606.7[/C][C]149.3[/C][/ROW]
[ROW][C]52[/C][C]282[/C][C]606.7[/C][C]-324.7[/C][/ROW]
[ROW][C]53[/C][C]513[/C][C]324.04[/C][C]188.96[/C][/ROW]
[ROW][C]54[/C][C]587[/C][C]606.7[/C][C]-19.7[/C][/ROW]
[ROW][C]55[/C][C]539[/C][C]606.7[/C][C]-67.7[/C][/ROW]
[ROW][C]56[/C][C]518[/C][C]491.02[/C][C]26.98[/C][/ROW]
[ROW][C]57[/C][C]498[/C][C]491.02[/C][C]6.98000000000002[/C][/ROW]
[ROW][C]58[/C][C]391[/C][C]491.02[/C][C]-100.02[/C][/ROW]
[ROW][C]59[/C][C]449[/C][C]491.02[/C][C]-42.02[/C][/ROW]
[ROW][C]60[/C][C]454[/C][C]491.02[/C][C]-37.02[/C][/ROW]
[ROW][C]61[/C][C]495[/C][C]491.02[/C][C]3.98000000000002[/C][/ROW]
[ROW][C]62[/C][C]843[/C][C]491.02[/C][C]351.98[/C][/ROW]
[ROW][C]63[/C][C]538[/C][C]491.02[/C][C]46.98[/C][/ROW]
[ROW][C]64[/C][C]597[/C][C]491.02[/C][C]105.98[/C][/ROW]
[ROW][C]65[/C][C]471[/C][C]491.02[/C][C]-20.02[/C][/ROW]
[ROW][C]66[/C][C]298[/C][C]491.02[/C][C]-193.02[/C][/ROW]
[ROW][C]67[/C][C]466[/C][C]323.428571428571[/C][C]142.571428571429[/C][/ROW]
[ROW][C]68[/C][C]405[/C][C]491.02[/C][C]-86.02[/C][/ROW]
[ROW][C]69[/C][C]721[/C][C]606.7[/C][C]114.3[/C][/ROW]
[ROW][C]70[/C][C]618[/C][C]606.7[/C][C]11.3[/C][/ROW]
[ROW][C]71[/C][C]629[/C][C]606.7[/C][C]22.3[/C][/ROW]
[ROW][C]72[/C][C]468[/C][C]491.02[/C][C]-23.02[/C][/ROW]
[ROW][C]73[/C][C]661[/C][C]606.7[/C][C]54.3[/C][/ROW]
[ROW][C]74[/C][C]273[/C][C]491.02[/C][C]-218.02[/C][/ROW]
[ROW][C]75[/C][C]465[/C][C]491.02[/C][C]-26.02[/C][/ROW]
[ROW][C]76[/C][C]360[/C][C]491.02[/C][C]-131.02[/C][/ROW]
[ROW][C]77[/C][C]535[/C][C]324.04[/C][C]210.96[/C][/ROW]
[ROW][C]78[/C][C]347[/C][C]491.02[/C][C]-144.02[/C][/ROW]
[ROW][C]79[/C][C]381[/C][C]491.02[/C][C]-110.02[/C][/ROW]
[ROW][C]80[/C][C]287[/C][C]324.04[/C][C]-37.04[/C][/ROW]
[ROW][C]81[/C][C]315[/C][C]491.02[/C][C]-176.02[/C][/ROW]
[ROW][C]82[/C][C]497[/C][C]491.02[/C][C]5.98000000000002[/C][/ROW]
[ROW][C]83[/C][C]372[/C][C]491.02[/C][C]-119.02[/C][/ROW]
[ROW][C]84[/C][C]341[/C][C]324.04[/C][C]16.96[/C][/ROW]
[ROW][C]85[/C][C]366[/C][C]323.428571428571[/C][C]42.5714285714286[/C][/ROW]
[ROW][C]86[/C][C]352[/C][C]491.02[/C][C]-139.02[/C][/ROW]
[ROW][C]87[/C][C]248[/C][C]324.04[/C][C]-76.04[/C][/ROW]
[ROW][C]88[/C][C]384[/C][C]324.04[/C][C]59.96[/C][/ROW]
[ROW][C]89[/C][C]673[/C][C]606.7[/C][C]66.3[/C][/ROW]
[ROW][C]90[/C][C]442[/C][C]491.02[/C][C]-49.02[/C][/ROW]
[ROW][C]91[/C][C]312[/C][C]323.428571428571[/C][C]-11.4285714285714[/C][/ROW]
[ROW][C]92[/C][C]560[/C][C]491.02[/C][C]68.98[/C][/ROW]
[ROW][C]93[/C][C]438[/C][C]324.04[/C][C]113.96[/C][/ROW]
[ROW][C]94[/C][C]322[/C][C]491.02[/C][C]-169.02[/C][/ROW]
[ROW][C]95[/C][C]410[/C][C]491.02[/C][C]-81.02[/C][/ROW]
[ROW][C]96[/C][C]391[/C][C]324.04[/C][C]66.96[/C][/ROW]
[ROW][C]97[/C][C]249[/C][C]323.428571428571[/C][C]-74.4285714285714[/C][/ROW]
[ROW][C]98[/C][C]350[/C][C]324.04[/C][C]25.96[/C][/ROW]
[ROW][C]99[/C][C]386[/C][C]324.04[/C][C]61.96[/C][/ROW]
[ROW][C]100[/C][C]483[/C][C]491.02[/C][C]-8.01999999999998[/C][/ROW]
[ROW][C]101[/C][C]360[/C][C]491.02[/C][C]-131.02[/C][/ROW]
[ROW][C]102[/C][C]229[/C][C]228[/C][C]1[/C][/ROW]
[ROW][C]103[/C][C]241[/C][C]324.04[/C][C]-83.04[/C][/ROW]
[ROW][C]104[/C][C]574[/C][C]606.7[/C][C]-32.7[/C][/ROW]
[ROW][C]105[/C][C]306[/C][C]324.04[/C][C]-18.04[/C][/ROW]
[ROW][C]106[/C][C]395[/C][C]606.7[/C][C]-211.7[/C][/ROW]
[ROW][C]107[/C][C]248[/C][C]228[/C][C]20[/C][/ROW]
[ROW][C]108[/C][C]244[/C][C]606.7[/C][C]-362.7[/C][/ROW]
[ROW][C]109[/C][C]212[/C][C]324.04[/C][C]-112.04[/C][/ROW]
[ROW][C]110[/C][C]211[/C][C]491.02[/C][C]-280.02[/C][/ROW]
[ROW][C]111[/C][C]190[/C][C]324.04[/C][C]-134.04[/C][/ROW]
[ROW][C]112[/C][C]251[/C][C]324.04[/C][C]-73.04[/C][/ROW]
[ROW][C]113[/C][C]345[/C][C]324.04[/C][C]20.96[/C][/ROW]
[ROW][C]114[/C][C]287[/C][C]491.02[/C][C]-204.02[/C][/ROW]
[ROW][C]115[/C][C]305[/C][C]323.428571428571[/C][C]-18.4285714285714[/C][/ROW]
[ROW][C]116[/C][C]247[/C][C]324.04[/C][C]-77.04[/C][/ROW]
[ROW][C]117[/C][C]165[/C][C]228[/C][C]-63[/C][/ROW]
[ROW][C]118[/C][C]253[/C][C]324.04[/C][C]-71.04[/C][/ROW]
[ROW][C]119[/C][C]240[/C][C]324.04[/C][C]-84.04[/C][/ROW]
[ROW][C]120[/C][C]244[/C][C]324.04[/C][C]-80.04[/C][/ROW]
[ROW][C]121[/C][C]310[/C][C]323.428571428571[/C][C]-13.4285714285714[/C][/ROW]
[ROW][C]122[/C][C]263[/C][C]228[/C][C]35[/C][/ROW]
[ROW][C]123[/C][C]256[/C][C]323.428571428571[/C][C]-67.4285714285714[/C][/ROW]
[ROW][C]124[/C][C]291[/C][C]324.04[/C][C]-33.04[/C][/ROW]
[ROW][C]125[/C][C]205[/C][C]228[/C][C]-23[/C][/ROW]
[ROW][C]126[/C][C]292[/C][C]228[/C][C]64[/C][/ROW]
[ROW][C]127[/C][C]183[/C][C]47.8125[/C][C]135.1875[/C][/ROW]
[ROW][C]128[/C][C]101[/C][C]47.8125[/C][C]53.1875[/C][/ROW]
[ROW][C]129[/C][C]215[/C][C]324.04[/C][C]-109.04[/C][/ROW]
[ROW][C]130[/C][C]194[/C][C]228[/C][C]-34[/C][/ROW]
[ROW][C]131[/C][C]75[/C][C]47.8125[/C][C]27.1875[/C][/ROW]
[ROW][C]132[/C][C]67[/C][C]47.8125[/C][C]19.1875[/C][/ROW]
[ROW][C]133[/C][C]79[/C][C]47.8125[/C][C]31.1875[/C][/ROW]
[ROW][C]134[/C][C]33[/C][C]47.8125[/C][C]-14.8125[/C][/ROW]
[ROW][C]135[/C][C]97[/C][C]47.8125[/C][C]49.1875[/C][/ROW]
[ROW][C]136[/C][C]72[/C][C]47.8125[/C][C]24.1875[/C][/ROW]
[ROW][C]137[/C][C]27[/C][C]47.8125[/C][C]-20.8125[/C][/ROW]
[ROW][C]138[/C][C]11[/C][C]47.8125[/C][C]-36.8125[/C][/ROW]
[ROW][C]139[/C][C]6[/C][C]47.8125[/C][C]-41.8125[/C][/ROW]
[ROW][C]140[/C][C]14[/C][C]47.8125[/C][C]-33.8125[/C][/ROW]
[ROW][C]141[/C][C]0[/C][C]47.8125[/C][C]-47.8125[/C][/ROW]
[ROW][C]142[/C][C]0[/C][C]47.8125[/C][C]-47.8125[/C][/ROW]
[ROW][C]143[/C][C]0[/C][C]47.8125[/C][C]-47.8125[/C][/ROW]
[ROW][C]144[/C][C]0[/C][C]47.8125[/C][C]-47.8125[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157064&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157064&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
11769930.777777777778838.222222222222
2810930.777777777778-120.777777777778
3919606.7312.3
4769606.7162.3
5712491.02220.98
6760491.02268.98
7664606.757.3
81118930.777777777778187.222222222222
9624930.777777777778-306.777777777778
10694930.777777777778-236.777777777778
11861930.777777777778-69.7777777777778
12910930.777777777778-20.7777777777778
13975930.77777777777844.2222222222222
14742491.02250.98
15890491.02398.98
16697606.790.3
17651606.744.3
18456491.02-35.02
19815491.02323.98
20726606.7119.3
21526491.0234.98
22483606.7-123.7
23628606.721.3
24597606.7-9.70000000000005
25584491.0292.98
26616930.777777777778-314.777777777778
27588606.7-18.7
28611491.02119.98
29426491.02-65.02
30880606.7273.3
31496491.024.98000000000002
32734606.7127.3
33562606.7-44.7
34297606.7-309.7
35301324.04-23.04
36606491.02114.98
37474491.02-17.02
38427491.02-64.02
39384491.02-107.02
40407491.02-84.02
41395324.0470.96
42535606.7-71.7
43875491.02383.98
44771606.7164.3
45452606.7-154.7
46627491.02135.98
47496491.024.98000000000002
48569606.7-37.7
49497324.04172.96
50375491.02-116.02
51756606.7149.3
52282606.7-324.7
53513324.04188.96
54587606.7-19.7
55539606.7-67.7
56518491.0226.98
57498491.026.98000000000002
58391491.02-100.02
59449491.02-42.02
60454491.02-37.02
61495491.023.98000000000002
62843491.02351.98
63538491.0246.98
64597491.02105.98
65471491.02-20.02
66298491.02-193.02
67466323.428571428571142.571428571429
68405491.02-86.02
69721606.7114.3
70618606.711.3
71629606.722.3
72468491.02-23.02
73661606.754.3
74273491.02-218.02
75465491.02-26.02
76360491.02-131.02
77535324.04210.96
78347491.02-144.02
79381491.02-110.02
80287324.04-37.04
81315491.02-176.02
82497491.025.98000000000002
83372491.02-119.02
84341324.0416.96
85366323.42857142857142.5714285714286
86352491.02-139.02
87248324.04-76.04
88384324.0459.96
89673606.766.3
90442491.02-49.02
91312323.428571428571-11.4285714285714
92560491.0268.98
93438324.04113.96
94322491.02-169.02
95410491.02-81.02
96391324.0466.96
97249323.428571428571-74.4285714285714
98350324.0425.96
99386324.0461.96
100483491.02-8.01999999999998
101360491.02-131.02
1022292281
103241324.04-83.04
104574606.7-32.7
105306324.04-18.04
106395606.7-211.7
10724822820
108244606.7-362.7
109212324.04-112.04
110211491.02-280.02
111190324.04-134.04
112251324.04-73.04
113345324.0420.96
114287491.02-204.02
115305323.428571428571-18.4285714285714
116247324.04-77.04
117165228-63
118253324.04-71.04
119240324.04-84.04
120244324.04-80.04
121310323.428571428571-13.4285714285714
12226322835
123256323.428571428571-67.4285714285714
124291324.04-33.04
125205228-23
12629222864
12718347.8125135.1875
12810147.812553.1875
129215324.04-109.04
130194228-34
1317547.812527.1875
1326747.812519.1875
1337947.812531.1875
1343347.8125-14.8125
1359747.812549.1875
1367247.812524.1875
1372747.8125-20.8125
1381147.8125-36.8125
139647.8125-41.8125
1401447.8125-33.8125
141047.8125-47.8125
142047.8125-47.8125
143047.8125-47.8125
144047.8125-47.8125



Parameters (Session):
Parameters (R input):
par1 = 1 ; 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')
}