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, 22 Dec 2011 08:26:34 -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/22/t1324560553glwf1iqxlh3gzu8.htm/, Retrieved Fri, 03 May 2024 14:43:37 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=159432, Retrieved Fri, 03 May 2024 14:43:37 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact79
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 18:59:57] [b98453cac15ba1066b407e146608df68]
- R PD    [Recursive Partitioning (Regression Trees)] [] [2011-12-22 13:26:34] [a23917169fba894c1fbb2182d294ed58] [Current]
Feedback Forum

Post a new message
Dataseries X:
1795	72	96	42	140824	186099
1385	73	75	38	110459	113854
2026	80	70	46	105079	99776
2724	106	134	42	112098	106194
1307	54	69	30	43929	100792
631	    28	8	35	76173	47552
5172	131	169	40	187326	250931
381	    19	1	18	22807	6853
2136	62	87	38	144408	115466
1920	46	92	37	66485	110896
2277	116	97	46	79089	169351
2335	128	120	60	81625	94853
2000	79	57	37	68788	72591
3006	82	139	55	103297	101345
2247	88	87	44	69446	113713
5070	185	176	63	114948	165354
2362	76	114	40	167949	164263
3525	170	121	43	125081	135213
1476	57	103	32	125818	111669
2397	88	135	52	136588	134163
2545	72	123	49	112431	140303
3098	109	91	41	103037	150773
1546	45	74	25	82317	111848
1775	57	103	57	118906	102509
3790	132	158	45	83515	96785
3035	134	113	42	104581	116136
2986	132	100	45	103129	158376
2010	89	117	43	83243	153990
1728	57	62	36	37110	64057
3155	78	142	45	113344	230054
2564	85	137	50	139165	184531
2099	81	50	50	86652	114198
2473	100	141	51	112302	198299
1118	46	46	42	69652	33750
3551	103	141	44	119442	189723
2764	56	83	42	69867	100826
3745	126	112	44	101629	188355
2041	89	79	40	70168	104470
947	    33	33	17	31081	58391
3684	207	149	43	103925	164808
3381	84	126	41	92622	134097
1851	73	80	41	79011	80238
1909	79	84	40	93487	133252
1819	65	68	49	64520	54518
2598	84	50	52	93473	121850
5568	155	101	42	114360	79367
918	    42	20	26	33032	56968
2387	82	101	59	96125	106314
4144	122	150	50	151911	191889
2431	63	115	50	89256	104864
2159	78	98	47	95676	160792
496	    24	8	4	5950	15049
2688	331	88	51	149695	191179
744	    17	21	18	32551	25109
1161	64	30	14	31701	45824
3214	61	97	41	100087	129711
2794	89	149	61	169707	210012
3963	204	132	40	150491	194679
2759	149	161	44	120192	197680
2316	88	89	40	95893	81180
4073	150	160	51	151715	197765
3293	121	139	29	176225	214738
3122	124	104	43	59900	96252
2756	91	99	42	104767	124527
1694	77	63	41	114799	153242
2082	71	163	30	72128	145707
2138	139	93	39	143592	113963
2889	154	85	51	89626	134904
2536	86	150	40	131072	114268
1730	72	143	29	126817	94333
2674	73	107	47	81351	102204
893	    32	22	23	22618	23824
2378	92	85	48	88977	111563
2017	58	86	38	92059	91313
2218	68	131	42	81897	89770
2356	90	140	46	108146	100125
3105	100	152	40	126372	165278
1974	109	81	45	249771	181712
2473	68	136	42	71154	80906
2122	70	102	41	71571	75881
1976	51	69	37	55918	83963
4219	131	161	47	160141	175721
1370	70	30	26	38692	68580
2441	108	120	48	102812	136323
870	    25	49	8	56622	55792
2127	59	63	27	15986	25157
1573	61	76	38	123534	100922
4035	221	85	41	108535	118845
3050	126	146	61	93879	170492
3098	106	165	45	144551	81716
2604	102	89	41	56750	115750
2401	84	168	42	127654	105590
1897	67	48	35	65594	92795
3146	77	149	36	59938	82390
2596	89	75	40	146975	135599
2030	45	103	40	165904	127667
2057	66	114	38	169265	163073
2261	87	165	43	183500	211381
4188	162	155	65	165986	189944
4021	116	165	33	184923	226168
2841	141	121	51	140358	117495
2489	69	156	45	149959	195894
2172	194	79	36	57224	80684
602	    14	13	19	43750	19630
2270	85	89	25	48029	88634
2499	157	111	44	104978	139292
2835	57	129	45	100046	128602
2762	94	169	44	101047	135848
1340	86	28	35	197426	178377
3259	100	118	46	160902	106330
2089	77	82	44	147172	178303
2331	90	148	45	109432	116938
398	    11	12	1	1168	5841
2214	75	146	40	83248	106020
530	    25	23	11	25162	24610
1826	53	83	51	45724	74151
3170	122	163	38	110529	232241
387	    16	4	0	855	    6622
2137	52	81	30	101382	127097
492	    22	18	8	14116	13155
3792	122	118	43	89506	160501




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'AstonUniversity' @ aston.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 & 'AstonUniversity' @ aston.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159432&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]'AstonUniversity' @ aston.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159432&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159432&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'AstonUniversity' @ aston.wessa.net







Goodness of Fit
Correlation0.8245
R-squared0.6798
RMSE25800.0911

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8245[/C][/ROW]
[ROW][C]R-squared[/C][C]0.6798[/C][/ROW]
[ROW][C]RMSE[/C][C]25800.0911[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159432&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159432&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.8245
R-squared0.6798
RMSE25800.0911







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
1140824153625-12801
2110459107565.5714285712893.42857142857
310507984018.94736842121060.0526315789
4112098107565.5714285714532.42857142857
54392960210.5-16281.5
67617360210.515962.5
718732615362533701
82280725072.7333333333-2265.73333333333
9144408107565.57142857136842.4285714286
1066485107565.571428571-41080.5714285714
1179089107565.571428571-28476.5714285714
128162584018.947368421-2393.94736842105
136878860210.58577.5
14103297107565.571428571-4268.57142857143
1569446107565.571428571-38119.5714285714
16114948107565.5714285717382.42857142857
17167949107565.57142857160383.4285714286
18125081107565.57142857117515.4285714286
19125818107565.57142857118252.4285714286
20136588107565.57142857129022.4285714286
21112431107565.5714285714865.42857142857
22103037107565.571428571-4528.57142857143
2382317107565.571428571-25248.5714285714
24118906107565.57142857111340.4285714286
258351584018.947368421-503.947368421053
26104581107565.571428571-2984.57142857143
27103129107565.571428571-4436.57142857143
2883243107565.571428571-24322.5714285714
293711060210.5-23100.5
30113344153625-40281
31139165153625-14460
3286652107565.571428571-20913.5714285714
33112302153625-41323
346965260210.59441.5
35119442153625-34183
366986784018.947368421-14151.9473684211
37101629153625-51996
3870168107565.571428571-37397.5714285714
393108125072.73333333336008.26666666667
40103925107565.571428571-3640.57142857143
4192622107565.571428571-14943.5714285714
427901184018.947368421-5007.94736842105
4393487107565.571428571-14078.5714285714
446452060210.54309.5
4593473107565.571428571-14092.5714285714
4611436084018.94736842130341.0526315789
473303225072.73333333337959.26666666667
4896125107565.571428571-11440.5714285714
49151911153625-1714
5089256107565.571428571-18309.5714285714
5195676107565.571428571-11889.5714285714
52595025072.7333333333-19122.7333333333
53149695153625-3930
543255125072.73333333337478.26666666667
553170125072.73333333336628.26666666667
56100087107565.571428571-7478.57142857143
5716970715362516082
58150491153625-3134
59120192153625-33433
609589384018.94736842111874.0526315789
61151715153625-1910
6217622515362522600
635990084018.947368421-24118.9473684211
64104767107565.571428571-2798.57142857143
65114799107565.5714285717233.42857142857
6672128107565.571428571-35437.5714285714
67143592107565.57142857136026.4285714286
6889626107565.571428571-17939.5714285714
69131072107565.57142857123506.4285714286
7012681784018.94736842142798.0526315789
7181351107565.571428571-26214.5714285714
722261825072.7333333333-2454.73333333333
7388977107565.571428571-18588.5714285714
749205984018.9473684218040.05263157895
758189784018.947368421-2121.94736842105
7610814684018.94736842124127.0526315789
77126372107565.57142857118806.4285714286
7824977115362596146
797115484018.947368421-12864.9473684211
807157184018.947368421-12447.9473684211
815591860210.5-4292.5
821601411536256516
833869225072.733333333313619.2666666667
84102812107565.571428571-4753.57142857143
855662225072.733333333331549.2666666667
861598625072.7333333333-9086.73333333333
87123534107565.57142857115968.4285714286
88108535107565.571428571969.428571428565
8993879107565.571428571-13686.5714285714
9014455184018.94736842160532.052631579
9156750107565.571428571-50815.5714285714
92127654107565.57142857120088.4285714286
936559460210.55383.5
945993884018.947368421-24080.9473684211
95146975107565.57142857139409.4285714286
96165904107565.57142857158338.4285714286
97169265107565.57142857161699.4285714286
9818350015362529875
9916598615362512361
10018492315362531298
101140358107565.57142857132792.4285714286
102149959153625-3666
1035722484018.947368421-26794.9473684211
1044375025072.733333333318677.2666666667
1054802984018.947368421-35989.9473684211
106104978107565.571428571-2587.57142857143
107100046107565.571428571-7519.57142857143
108101047107565.571428571-6518.57142857143
10919742615362543801
110160902107565.57142857153336.4285714286
111147172153625-6453
112109432107565.5714285711866.42857142857
113116825072.7333333333-23904.7333333333
11483248107565.571428571-24317.5714285714
1152516225072.733333333389.2666666666664
1164572484018.947368421-38294.9473684211
117110529153625-43096
11885525072.7333333333-24217.7333333333
119101382107565.571428571-6183.57142857143
1201411625072.7333333333-10956.7333333333
12189506107565.571428571-18059.5714285714

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 140824 & 153625 & -12801 \tabularnewline
2 & 110459 & 107565.571428571 & 2893.42857142857 \tabularnewline
3 & 105079 & 84018.947368421 & 21060.0526315789 \tabularnewline
4 & 112098 & 107565.571428571 & 4532.42857142857 \tabularnewline
5 & 43929 & 60210.5 & -16281.5 \tabularnewline
6 & 76173 & 60210.5 & 15962.5 \tabularnewline
7 & 187326 & 153625 & 33701 \tabularnewline
8 & 22807 & 25072.7333333333 & -2265.73333333333 \tabularnewline
9 & 144408 & 107565.571428571 & 36842.4285714286 \tabularnewline
10 & 66485 & 107565.571428571 & -41080.5714285714 \tabularnewline
11 & 79089 & 107565.571428571 & -28476.5714285714 \tabularnewline
12 & 81625 & 84018.947368421 & -2393.94736842105 \tabularnewline
13 & 68788 & 60210.5 & 8577.5 \tabularnewline
14 & 103297 & 107565.571428571 & -4268.57142857143 \tabularnewline
15 & 69446 & 107565.571428571 & -38119.5714285714 \tabularnewline
16 & 114948 & 107565.571428571 & 7382.42857142857 \tabularnewline
17 & 167949 & 107565.571428571 & 60383.4285714286 \tabularnewline
18 & 125081 & 107565.571428571 & 17515.4285714286 \tabularnewline
19 & 125818 & 107565.571428571 & 18252.4285714286 \tabularnewline
20 & 136588 & 107565.571428571 & 29022.4285714286 \tabularnewline
21 & 112431 & 107565.571428571 & 4865.42857142857 \tabularnewline
22 & 103037 & 107565.571428571 & -4528.57142857143 \tabularnewline
23 & 82317 & 107565.571428571 & -25248.5714285714 \tabularnewline
24 & 118906 & 107565.571428571 & 11340.4285714286 \tabularnewline
25 & 83515 & 84018.947368421 & -503.947368421053 \tabularnewline
26 & 104581 & 107565.571428571 & -2984.57142857143 \tabularnewline
27 & 103129 & 107565.571428571 & -4436.57142857143 \tabularnewline
28 & 83243 & 107565.571428571 & -24322.5714285714 \tabularnewline
29 & 37110 & 60210.5 & -23100.5 \tabularnewline
30 & 113344 & 153625 & -40281 \tabularnewline
31 & 139165 & 153625 & -14460 \tabularnewline
32 & 86652 & 107565.571428571 & -20913.5714285714 \tabularnewline
33 & 112302 & 153625 & -41323 \tabularnewline
34 & 69652 & 60210.5 & 9441.5 \tabularnewline
35 & 119442 & 153625 & -34183 \tabularnewline
36 & 69867 & 84018.947368421 & -14151.9473684211 \tabularnewline
37 & 101629 & 153625 & -51996 \tabularnewline
38 & 70168 & 107565.571428571 & -37397.5714285714 \tabularnewline
39 & 31081 & 25072.7333333333 & 6008.26666666667 \tabularnewline
40 & 103925 & 107565.571428571 & -3640.57142857143 \tabularnewline
41 & 92622 & 107565.571428571 & -14943.5714285714 \tabularnewline
42 & 79011 & 84018.947368421 & -5007.94736842105 \tabularnewline
43 & 93487 & 107565.571428571 & -14078.5714285714 \tabularnewline
44 & 64520 & 60210.5 & 4309.5 \tabularnewline
45 & 93473 & 107565.571428571 & -14092.5714285714 \tabularnewline
46 & 114360 & 84018.947368421 & 30341.0526315789 \tabularnewline
47 & 33032 & 25072.7333333333 & 7959.26666666667 \tabularnewline
48 & 96125 & 107565.571428571 & -11440.5714285714 \tabularnewline
49 & 151911 & 153625 & -1714 \tabularnewline
50 & 89256 & 107565.571428571 & -18309.5714285714 \tabularnewline
51 & 95676 & 107565.571428571 & -11889.5714285714 \tabularnewline
52 & 5950 & 25072.7333333333 & -19122.7333333333 \tabularnewline
53 & 149695 & 153625 & -3930 \tabularnewline
54 & 32551 & 25072.7333333333 & 7478.26666666667 \tabularnewline
55 & 31701 & 25072.7333333333 & 6628.26666666667 \tabularnewline
56 & 100087 & 107565.571428571 & -7478.57142857143 \tabularnewline
57 & 169707 & 153625 & 16082 \tabularnewline
58 & 150491 & 153625 & -3134 \tabularnewline
59 & 120192 & 153625 & -33433 \tabularnewline
60 & 95893 & 84018.947368421 & 11874.0526315789 \tabularnewline
61 & 151715 & 153625 & -1910 \tabularnewline
62 & 176225 & 153625 & 22600 \tabularnewline
63 & 59900 & 84018.947368421 & -24118.9473684211 \tabularnewline
64 & 104767 & 107565.571428571 & -2798.57142857143 \tabularnewline
65 & 114799 & 107565.571428571 & 7233.42857142857 \tabularnewline
66 & 72128 & 107565.571428571 & -35437.5714285714 \tabularnewline
67 & 143592 & 107565.571428571 & 36026.4285714286 \tabularnewline
68 & 89626 & 107565.571428571 & -17939.5714285714 \tabularnewline
69 & 131072 & 107565.571428571 & 23506.4285714286 \tabularnewline
70 & 126817 & 84018.947368421 & 42798.0526315789 \tabularnewline
71 & 81351 & 107565.571428571 & -26214.5714285714 \tabularnewline
72 & 22618 & 25072.7333333333 & -2454.73333333333 \tabularnewline
73 & 88977 & 107565.571428571 & -18588.5714285714 \tabularnewline
74 & 92059 & 84018.947368421 & 8040.05263157895 \tabularnewline
75 & 81897 & 84018.947368421 & -2121.94736842105 \tabularnewline
76 & 108146 & 84018.947368421 & 24127.0526315789 \tabularnewline
77 & 126372 & 107565.571428571 & 18806.4285714286 \tabularnewline
78 & 249771 & 153625 & 96146 \tabularnewline
79 & 71154 & 84018.947368421 & -12864.9473684211 \tabularnewline
80 & 71571 & 84018.947368421 & -12447.9473684211 \tabularnewline
81 & 55918 & 60210.5 & -4292.5 \tabularnewline
82 & 160141 & 153625 & 6516 \tabularnewline
83 & 38692 & 25072.7333333333 & 13619.2666666667 \tabularnewline
84 & 102812 & 107565.571428571 & -4753.57142857143 \tabularnewline
85 & 56622 & 25072.7333333333 & 31549.2666666667 \tabularnewline
86 & 15986 & 25072.7333333333 & -9086.73333333333 \tabularnewline
87 & 123534 & 107565.571428571 & 15968.4285714286 \tabularnewline
88 & 108535 & 107565.571428571 & 969.428571428565 \tabularnewline
89 & 93879 & 107565.571428571 & -13686.5714285714 \tabularnewline
90 & 144551 & 84018.947368421 & 60532.052631579 \tabularnewline
91 & 56750 & 107565.571428571 & -50815.5714285714 \tabularnewline
92 & 127654 & 107565.571428571 & 20088.4285714286 \tabularnewline
93 & 65594 & 60210.5 & 5383.5 \tabularnewline
94 & 59938 & 84018.947368421 & -24080.9473684211 \tabularnewline
95 & 146975 & 107565.571428571 & 39409.4285714286 \tabularnewline
96 & 165904 & 107565.571428571 & 58338.4285714286 \tabularnewline
97 & 169265 & 107565.571428571 & 61699.4285714286 \tabularnewline
98 & 183500 & 153625 & 29875 \tabularnewline
99 & 165986 & 153625 & 12361 \tabularnewline
100 & 184923 & 153625 & 31298 \tabularnewline
101 & 140358 & 107565.571428571 & 32792.4285714286 \tabularnewline
102 & 149959 & 153625 & -3666 \tabularnewline
103 & 57224 & 84018.947368421 & -26794.9473684211 \tabularnewline
104 & 43750 & 25072.7333333333 & 18677.2666666667 \tabularnewline
105 & 48029 & 84018.947368421 & -35989.9473684211 \tabularnewline
106 & 104978 & 107565.571428571 & -2587.57142857143 \tabularnewline
107 & 100046 & 107565.571428571 & -7519.57142857143 \tabularnewline
108 & 101047 & 107565.571428571 & -6518.57142857143 \tabularnewline
109 & 197426 & 153625 & 43801 \tabularnewline
110 & 160902 & 107565.571428571 & 53336.4285714286 \tabularnewline
111 & 147172 & 153625 & -6453 \tabularnewline
112 & 109432 & 107565.571428571 & 1866.42857142857 \tabularnewline
113 & 1168 & 25072.7333333333 & -23904.7333333333 \tabularnewline
114 & 83248 & 107565.571428571 & -24317.5714285714 \tabularnewline
115 & 25162 & 25072.7333333333 & 89.2666666666664 \tabularnewline
116 & 45724 & 84018.947368421 & -38294.9473684211 \tabularnewline
117 & 110529 & 153625 & -43096 \tabularnewline
118 & 855 & 25072.7333333333 & -24217.7333333333 \tabularnewline
119 & 101382 & 107565.571428571 & -6183.57142857143 \tabularnewline
120 & 14116 & 25072.7333333333 & -10956.7333333333 \tabularnewline
121 & 89506 & 107565.571428571 & -18059.5714285714 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159432&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]140824[/C][C]153625[/C][C]-12801[/C][/ROW]
[ROW][C]2[/C][C]110459[/C][C]107565.571428571[/C][C]2893.42857142857[/C][/ROW]
[ROW][C]3[/C][C]105079[/C][C]84018.947368421[/C][C]21060.0526315789[/C][/ROW]
[ROW][C]4[/C][C]112098[/C][C]107565.571428571[/C][C]4532.42857142857[/C][/ROW]
[ROW][C]5[/C][C]43929[/C][C]60210.5[/C][C]-16281.5[/C][/ROW]
[ROW][C]6[/C][C]76173[/C][C]60210.5[/C][C]15962.5[/C][/ROW]
[ROW][C]7[/C][C]187326[/C][C]153625[/C][C]33701[/C][/ROW]
[ROW][C]8[/C][C]22807[/C][C]25072.7333333333[/C][C]-2265.73333333333[/C][/ROW]
[ROW][C]9[/C][C]144408[/C][C]107565.571428571[/C][C]36842.4285714286[/C][/ROW]
[ROW][C]10[/C][C]66485[/C][C]107565.571428571[/C][C]-41080.5714285714[/C][/ROW]
[ROW][C]11[/C][C]79089[/C][C]107565.571428571[/C][C]-28476.5714285714[/C][/ROW]
[ROW][C]12[/C][C]81625[/C][C]84018.947368421[/C][C]-2393.94736842105[/C][/ROW]
[ROW][C]13[/C][C]68788[/C][C]60210.5[/C][C]8577.5[/C][/ROW]
[ROW][C]14[/C][C]103297[/C][C]107565.571428571[/C][C]-4268.57142857143[/C][/ROW]
[ROW][C]15[/C][C]69446[/C][C]107565.571428571[/C][C]-38119.5714285714[/C][/ROW]
[ROW][C]16[/C][C]114948[/C][C]107565.571428571[/C][C]7382.42857142857[/C][/ROW]
[ROW][C]17[/C][C]167949[/C][C]107565.571428571[/C][C]60383.4285714286[/C][/ROW]
[ROW][C]18[/C][C]125081[/C][C]107565.571428571[/C][C]17515.4285714286[/C][/ROW]
[ROW][C]19[/C][C]125818[/C][C]107565.571428571[/C][C]18252.4285714286[/C][/ROW]
[ROW][C]20[/C][C]136588[/C][C]107565.571428571[/C][C]29022.4285714286[/C][/ROW]
[ROW][C]21[/C][C]112431[/C][C]107565.571428571[/C][C]4865.42857142857[/C][/ROW]
[ROW][C]22[/C][C]103037[/C][C]107565.571428571[/C][C]-4528.57142857143[/C][/ROW]
[ROW][C]23[/C][C]82317[/C][C]107565.571428571[/C][C]-25248.5714285714[/C][/ROW]
[ROW][C]24[/C][C]118906[/C][C]107565.571428571[/C][C]11340.4285714286[/C][/ROW]
[ROW][C]25[/C][C]83515[/C][C]84018.947368421[/C][C]-503.947368421053[/C][/ROW]
[ROW][C]26[/C][C]104581[/C][C]107565.571428571[/C][C]-2984.57142857143[/C][/ROW]
[ROW][C]27[/C][C]103129[/C][C]107565.571428571[/C][C]-4436.57142857143[/C][/ROW]
[ROW][C]28[/C][C]83243[/C][C]107565.571428571[/C][C]-24322.5714285714[/C][/ROW]
[ROW][C]29[/C][C]37110[/C][C]60210.5[/C][C]-23100.5[/C][/ROW]
[ROW][C]30[/C][C]113344[/C][C]153625[/C][C]-40281[/C][/ROW]
[ROW][C]31[/C][C]139165[/C][C]153625[/C][C]-14460[/C][/ROW]
[ROW][C]32[/C][C]86652[/C][C]107565.571428571[/C][C]-20913.5714285714[/C][/ROW]
[ROW][C]33[/C][C]112302[/C][C]153625[/C][C]-41323[/C][/ROW]
[ROW][C]34[/C][C]69652[/C][C]60210.5[/C][C]9441.5[/C][/ROW]
[ROW][C]35[/C][C]119442[/C][C]153625[/C][C]-34183[/C][/ROW]
[ROW][C]36[/C][C]69867[/C][C]84018.947368421[/C][C]-14151.9473684211[/C][/ROW]
[ROW][C]37[/C][C]101629[/C][C]153625[/C][C]-51996[/C][/ROW]
[ROW][C]38[/C][C]70168[/C][C]107565.571428571[/C][C]-37397.5714285714[/C][/ROW]
[ROW][C]39[/C][C]31081[/C][C]25072.7333333333[/C][C]6008.26666666667[/C][/ROW]
[ROW][C]40[/C][C]103925[/C][C]107565.571428571[/C][C]-3640.57142857143[/C][/ROW]
[ROW][C]41[/C][C]92622[/C][C]107565.571428571[/C][C]-14943.5714285714[/C][/ROW]
[ROW][C]42[/C][C]79011[/C][C]84018.947368421[/C][C]-5007.94736842105[/C][/ROW]
[ROW][C]43[/C][C]93487[/C][C]107565.571428571[/C][C]-14078.5714285714[/C][/ROW]
[ROW][C]44[/C][C]64520[/C][C]60210.5[/C][C]4309.5[/C][/ROW]
[ROW][C]45[/C][C]93473[/C][C]107565.571428571[/C][C]-14092.5714285714[/C][/ROW]
[ROW][C]46[/C][C]114360[/C][C]84018.947368421[/C][C]30341.0526315789[/C][/ROW]
[ROW][C]47[/C][C]33032[/C][C]25072.7333333333[/C][C]7959.26666666667[/C][/ROW]
[ROW][C]48[/C][C]96125[/C][C]107565.571428571[/C][C]-11440.5714285714[/C][/ROW]
[ROW][C]49[/C][C]151911[/C][C]153625[/C][C]-1714[/C][/ROW]
[ROW][C]50[/C][C]89256[/C][C]107565.571428571[/C][C]-18309.5714285714[/C][/ROW]
[ROW][C]51[/C][C]95676[/C][C]107565.571428571[/C][C]-11889.5714285714[/C][/ROW]
[ROW][C]52[/C][C]5950[/C][C]25072.7333333333[/C][C]-19122.7333333333[/C][/ROW]
[ROW][C]53[/C][C]149695[/C][C]153625[/C][C]-3930[/C][/ROW]
[ROW][C]54[/C][C]32551[/C][C]25072.7333333333[/C][C]7478.26666666667[/C][/ROW]
[ROW][C]55[/C][C]31701[/C][C]25072.7333333333[/C][C]6628.26666666667[/C][/ROW]
[ROW][C]56[/C][C]100087[/C][C]107565.571428571[/C][C]-7478.57142857143[/C][/ROW]
[ROW][C]57[/C][C]169707[/C][C]153625[/C][C]16082[/C][/ROW]
[ROW][C]58[/C][C]150491[/C][C]153625[/C][C]-3134[/C][/ROW]
[ROW][C]59[/C][C]120192[/C][C]153625[/C][C]-33433[/C][/ROW]
[ROW][C]60[/C][C]95893[/C][C]84018.947368421[/C][C]11874.0526315789[/C][/ROW]
[ROW][C]61[/C][C]151715[/C][C]153625[/C][C]-1910[/C][/ROW]
[ROW][C]62[/C][C]176225[/C][C]153625[/C][C]22600[/C][/ROW]
[ROW][C]63[/C][C]59900[/C][C]84018.947368421[/C][C]-24118.9473684211[/C][/ROW]
[ROW][C]64[/C][C]104767[/C][C]107565.571428571[/C][C]-2798.57142857143[/C][/ROW]
[ROW][C]65[/C][C]114799[/C][C]107565.571428571[/C][C]7233.42857142857[/C][/ROW]
[ROW][C]66[/C][C]72128[/C][C]107565.571428571[/C][C]-35437.5714285714[/C][/ROW]
[ROW][C]67[/C][C]143592[/C][C]107565.571428571[/C][C]36026.4285714286[/C][/ROW]
[ROW][C]68[/C][C]89626[/C][C]107565.571428571[/C][C]-17939.5714285714[/C][/ROW]
[ROW][C]69[/C][C]131072[/C][C]107565.571428571[/C][C]23506.4285714286[/C][/ROW]
[ROW][C]70[/C][C]126817[/C][C]84018.947368421[/C][C]42798.0526315789[/C][/ROW]
[ROW][C]71[/C][C]81351[/C][C]107565.571428571[/C][C]-26214.5714285714[/C][/ROW]
[ROW][C]72[/C][C]22618[/C][C]25072.7333333333[/C][C]-2454.73333333333[/C][/ROW]
[ROW][C]73[/C][C]88977[/C][C]107565.571428571[/C][C]-18588.5714285714[/C][/ROW]
[ROW][C]74[/C][C]92059[/C][C]84018.947368421[/C][C]8040.05263157895[/C][/ROW]
[ROW][C]75[/C][C]81897[/C][C]84018.947368421[/C][C]-2121.94736842105[/C][/ROW]
[ROW][C]76[/C][C]108146[/C][C]84018.947368421[/C][C]24127.0526315789[/C][/ROW]
[ROW][C]77[/C][C]126372[/C][C]107565.571428571[/C][C]18806.4285714286[/C][/ROW]
[ROW][C]78[/C][C]249771[/C][C]153625[/C][C]96146[/C][/ROW]
[ROW][C]79[/C][C]71154[/C][C]84018.947368421[/C][C]-12864.9473684211[/C][/ROW]
[ROW][C]80[/C][C]71571[/C][C]84018.947368421[/C][C]-12447.9473684211[/C][/ROW]
[ROW][C]81[/C][C]55918[/C][C]60210.5[/C][C]-4292.5[/C][/ROW]
[ROW][C]82[/C][C]160141[/C][C]153625[/C][C]6516[/C][/ROW]
[ROW][C]83[/C][C]38692[/C][C]25072.7333333333[/C][C]13619.2666666667[/C][/ROW]
[ROW][C]84[/C][C]102812[/C][C]107565.571428571[/C][C]-4753.57142857143[/C][/ROW]
[ROW][C]85[/C][C]56622[/C][C]25072.7333333333[/C][C]31549.2666666667[/C][/ROW]
[ROW][C]86[/C][C]15986[/C][C]25072.7333333333[/C][C]-9086.73333333333[/C][/ROW]
[ROW][C]87[/C][C]123534[/C][C]107565.571428571[/C][C]15968.4285714286[/C][/ROW]
[ROW][C]88[/C][C]108535[/C][C]107565.571428571[/C][C]969.428571428565[/C][/ROW]
[ROW][C]89[/C][C]93879[/C][C]107565.571428571[/C][C]-13686.5714285714[/C][/ROW]
[ROW][C]90[/C][C]144551[/C][C]84018.947368421[/C][C]60532.052631579[/C][/ROW]
[ROW][C]91[/C][C]56750[/C][C]107565.571428571[/C][C]-50815.5714285714[/C][/ROW]
[ROW][C]92[/C][C]127654[/C][C]107565.571428571[/C][C]20088.4285714286[/C][/ROW]
[ROW][C]93[/C][C]65594[/C][C]60210.5[/C][C]5383.5[/C][/ROW]
[ROW][C]94[/C][C]59938[/C][C]84018.947368421[/C][C]-24080.9473684211[/C][/ROW]
[ROW][C]95[/C][C]146975[/C][C]107565.571428571[/C][C]39409.4285714286[/C][/ROW]
[ROW][C]96[/C][C]165904[/C][C]107565.571428571[/C][C]58338.4285714286[/C][/ROW]
[ROW][C]97[/C][C]169265[/C][C]107565.571428571[/C][C]61699.4285714286[/C][/ROW]
[ROW][C]98[/C][C]183500[/C][C]153625[/C][C]29875[/C][/ROW]
[ROW][C]99[/C][C]165986[/C][C]153625[/C][C]12361[/C][/ROW]
[ROW][C]100[/C][C]184923[/C][C]153625[/C][C]31298[/C][/ROW]
[ROW][C]101[/C][C]140358[/C][C]107565.571428571[/C][C]32792.4285714286[/C][/ROW]
[ROW][C]102[/C][C]149959[/C][C]153625[/C][C]-3666[/C][/ROW]
[ROW][C]103[/C][C]57224[/C][C]84018.947368421[/C][C]-26794.9473684211[/C][/ROW]
[ROW][C]104[/C][C]43750[/C][C]25072.7333333333[/C][C]18677.2666666667[/C][/ROW]
[ROW][C]105[/C][C]48029[/C][C]84018.947368421[/C][C]-35989.9473684211[/C][/ROW]
[ROW][C]106[/C][C]104978[/C][C]107565.571428571[/C][C]-2587.57142857143[/C][/ROW]
[ROW][C]107[/C][C]100046[/C][C]107565.571428571[/C][C]-7519.57142857143[/C][/ROW]
[ROW][C]108[/C][C]101047[/C][C]107565.571428571[/C][C]-6518.57142857143[/C][/ROW]
[ROW][C]109[/C][C]197426[/C][C]153625[/C][C]43801[/C][/ROW]
[ROW][C]110[/C][C]160902[/C][C]107565.571428571[/C][C]53336.4285714286[/C][/ROW]
[ROW][C]111[/C][C]147172[/C][C]153625[/C][C]-6453[/C][/ROW]
[ROW][C]112[/C][C]109432[/C][C]107565.571428571[/C][C]1866.42857142857[/C][/ROW]
[ROW][C]113[/C][C]1168[/C][C]25072.7333333333[/C][C]-23904.7333333333[/C][/ROW]
[ROW][C]114[/C][C]83248[/C][C]107565.571428571[/C][C]-24317.5714285714[/C][/ROW]
[ROW][C]115[/C][C]25162[/C][C]25072.7333333333[/C][C]89.2666666666664[/C][/ROW]
[ROW][C]116[/C][C]45724[/C][C]84018.947368421[/C][C]-38294.9473684211[/C][/ROW]
[ROW][C]117[/C][C]110529[/C][C]153625[/C][C]-43096[/C][/ROW]
[ROW][C]118[/C][C]855[/C][C]25072.7333333333[/C][C]-24217.7333333333[/C][/ROW]
[ROW][C]119[/C][C]101382[/C][C]107565.571428571[/C][C]-6183.57142857143[/C][/ROW]
[ROW][C]120[/C][C]14116[/C][C]25072.7333333333[/C][C]-10956.7333333333[/C][/ROW]
[ROW][C]121[/C][C]89506[/C][C]107565.571428571[/C][C]-18059.5714285714[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159432&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159432&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
1140824153625-12801
2110459107565.5714285712893.42857142857
310507984018.94736842121060.0526315789
4112098107565.5714285714532.42857142857
54392960210.5-16281.5
67617360210.515962.5
718732615362533701
82280725072.7333333333-2265.73333333333
9144408107565.57142857136842.4285714286
1066485107565.571428571-41080.5714285714
1179089107565.571428571-28476.5714285714
128162584018.947368421-2393.94736842105
136878860210.58577.5
14103297107565.571428571-4268.57142857143
1569446107565.571428571-38119.5714285714
16114948107565.5714285717382.42857142857
17167949107565.57142857160383.4285714286
18125081107565.57142857117515.4285714286
19125818107565.57142857118252.4285714286
20136588107565.57142857129022.4285714286
21112431107565.5714285714865.42857142857
22103037107565.571428571-4528.57142857143
2382317107565.571428571-25248.5714285714
24118906107565.57142857111340.4285714286
258351584018.947368421-503.947368421053
26104581107565.571428571-2984.57142857143
27103129107565.571428571-4436.57142857143
2883243107565.571428571-24322.5714285714
293711060210.5-23100.5
30113344153625-40281
31139165153625-14460
3286652107565.571428571-20913.5714285714
33112302153625-41323
346965260210.59441.5
35119442153625-34183
366986784018.947368421-14151.9473684211
37101629153625-51996
3870168107565.571428571-37397.5714285714
393108125072.73333333336008.26666666667
40103925107565.571428571-3640.57142857143
4192622107565.571428571-14943.5714285714
427901184018.947368421-5007.94736842105
4393487107565.571428571-14078.5714285714
446452060210.54309.5
4593473107565.571428571-14092.5714285714
4611436084018.94736842130341.0526315789
473303225072.73333333337959.26666666667
4896125107565.571428571-11440.5714285714
49151911153625-1714
5089256107565.571428571-18309.5714285714
5195676107565.571428571-11889.5714285714
52595025072.7333333333-19122.7333333333
53149695153625-3930
543255125072.73333333337478.26666666667
553170125072.73333333336628.26666666667
56100087107565.571428571-7478.57142857143
5716970715362516082
58150491153625-3134
59120192153625-33433
609589384018.94736842111874.0526315789
61151715153625-1910
6217622515362522600
635990084018.947368421-24118.9473684211
64104767107565.571428571-2798.57142857143
65114799107565.5714285717233.42857142857
6672128107565.571428571-35437.5714285714
67143592107565.57142857136026.4285714286
6889626107565.571428571-17939.5714285714
69131072107565.57142857123506.4285714286
7012681784018.94736842142798.0526315789
7181351107565.571428571-26214.5714285714
722261825072.7333333333-2454.73333333333
7388977107565.571428571-18588.5714285714
749205984018.9473684218040.05263157895
758189784018.947368421-2121.94736842105
7610814684018.94736842124127.0526315789
77126372107565.57142857118806.4285714286
7824977115362596146
797115484018.947368421-12864.9473684211
807157184018.947368421-12447.9473684211
815591860210.5-4292.5
821601411536256516
833869225072.733333333313619.2666666667
84102812107565.571428571-4753.57142857143
855662225072.733333333331549.2666666667
861598625072.7333333333-9086.73333333333
87123534107565.57142857115968.4285714286
88108535107565.571428571969.428571428565
8993879107565.571428571-13686.5714285714
9014455184018.94736842160532.052631579
9156750107565.571428571-50815.5714285714
92127654107565.57142857120088.4285714286
936559460210.55383.5
945993884018.947368421-24080.9473684211
95146975107565.57142857139409.4285714286
96165904107565.57142857158338.4285714286
97169265107565.57142857161699.4285714286
9818350015362529875
9916598615362512361
10018492315362531298
101140358107565.57142857132792.4285714286
102149959153625-3666
1035722484018.947368421-26794.9473684211
1044375025072.733333333318677.2666666667
1054802984018.947368421-35989.9473684211
106104978107565.571428571-2587.57142857143
107100046107565.571428571-7519.57142857143
108101047107565.571428571-6518.57142857143
10919742615362543801
110160902107565.57142857153336.4285714286
111147172153625-6453
112109432107565.5714285711866.42857142857
113116825072.7333333333-23904.7333333333
11483248107565.571428571-24317.5714285714
1152516225072.733333333389.2666666666664
1164572484018.947368421-38294.9473684211
117110529153625-43096
11885525072.7333333333-24217.7333333333
119101382107565.571428571-6183.57142857143
1201411625072.7333333333-10956.7333333333
12189506107565.571428571-18059.5714285714



Parameters (Session):
par1 = 5 ; par2 = none ; par3 = 3 ; par4 = no ;
Parameters (R input):
par1 = 5 ; 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')
}