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 computationWed, 21 Dec 2011 13:18:15 -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/21/t1324491526hn14tlt4ygzlpdy.htm/, Retrieved Wed, 08 May 2024 00:39:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=158926, Retrieved Wed, 08 May 2024 00:39:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact93
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Recursive Partitioning (Regression Trees)] [Regression Tree] [2011-12-21 18:18:15] [d160b678fd2d7bb562db2147d7efddc2] [Current]
- RMP     [Kendall tau Correlation Matrix] [Pearson Correlati...] [2011-12-21 20:11:45] [489eb911c8db04aca1fc54d886fc3144]
Feedback Forum

Post a new message
Dataseries X:
210907	56	3	79	30	112285
120982	56	4	58	28	84786
176508	54	12	60	38	83123
179321	89	2	108	30	101193
123185	40	1	49	22	38361
52746	25	3	0	26	68504
385534	92	0	121	25	119182
33170	18	0	1	18	22807
101645	63	0	20	11	17140
149061	44	5	43	26	116174
165446	33	0	69	25	57635
237213	84	0	78	38	66198
173326	88	7	86	44	71701
133131	55	7	44	30	57793
258873	60	3	104	40	80444
180083	66	9	63	34	53855
324799	154	0	158	47	97668
230964	53	4	102	30	133824
236785	119	3	77	31	101481
135473	41	0	82	23	99645
202925	61	7	115	36	114789
215147	58	0	101	36	99052
344297	75	1	80	30	67654
153935	33	5	50	25	65553
132943	40	7	83	39	97500
174724	92	0	123	34	69112
174415	100	0	73	31	82753
225548	112	5	81	31	85323
223632	73	0	105	33	72654
124817	40	0	47	25	30727
221698	45	0	105	33	77873
210767	60	3	94	35	117478
170266	62	4	44	42	74007
260561	75	1	114	43	90183
84853	31	4	38	30	61542
294424	77	2	107	33	101494
101011	34	0	30	13	27570
215641	46	0	71	32	55813
325107	99	0	84	36	79215
7176	17	0	0	0	1423
167542	66	2	59	28	55461
106408	30	1	33	14	31081
96560	76	0	42	17	22996
265769	146	2	96	32	83122
269651	67	10	106	30	70106
149112	56	6	56	35	60578
175824	107	0	57	20	39992
152871	58	5	59	28	79892
111665	34	4	39	28	49810
116408	61	1	34	39	71570
362301	119	2	76	34	100708
78800	42	2	20	26	33032
183167	66	0	91	39	82875
277965	89	8	115	39	139077
150629	44	3	85	33	71595
168809	66	0	76	28	72260
24188	24	0	8	4	5950
329267	259	8	79	39	115762
65029	17	5	21	18	32551
101097	64	3	30	14	31701
218946	41	1	76	29	80670
244052	68	5	101	44	143558
341570	168	1	94	21	117105
103597	43	1	27	16	23789
233328	132	5	92	28	120733
256462	105	0	123	35	105195
206161	71	12	75	28	73107
311473	112	8	128	38	132068
235800	94	8	105	23	149193
177939	82	8	55	36	46821
207176	70	8	56	32	87011
196553	57	2	41	29	95260
174184	53	0	72	25	55183
143246	103	5	67	27	106671
187559	121	8	75	36	73511
187681	62	2	114	28	92945
119016	52	5	118	23	78664
182192	52	12	77	40	70054
73566	32	6	22	23	22618
194979	62	7	66	40	74011
167488	45	2	69	28	83737
143756	46	0	105	34	69094
275541	63	4	116	33	93133
243199	75	3	88	28	95536
182999	88	6	73	34	225920
135649	46	2	99	30	62133
152299	53	0	62	33	61370
120221	37	1	53	22	43836
346485	90	0	118	38	106117
145790	63	5	30	26	38692
193339	78	2	100	35	84651
80953	25	0	49	8	56622
122774	45	0	24	24	15986
130585	46	5	67	29	95364
112611	41	0	46	20	26706
286468	144	1	57	29	89691
241066	82	0	75	45	67267
148446	91	1	135	37	126846
204713	71	1	68	33	41140
182079	63	2	124	33	102860
140344	53	6	33	25	51715
220516	62	1	98	32	55801
243060	63	4	58	29	111813
162765	32	2	68	28	120293
182613	39	3	81	28	138599
232138	62	0	131	31	161647
265318	117	10	110	52	115929
85574	34	0	37	21	24266
310839	92	9	130	24	162901
225060	93	7	93	41	109825
232317	54	0	118	33	129838
144966	144	0	39	32	37510
43287	14	4	13	19	43750
155754	61	4	74	20	40652
164709	109	0	81	31	87771
201940	38	0	109	31	85872
235454	73	0	151	32	89275
220801	75	1	51	18	44418
99466	50	0	28	23	192565
92661	61	1	40	17	35232
133328	55	0	56	20	40909
61361	77	0	27	12	13294
125930	75	4	37	17	32387
100750	72	0	83	30	140867
224549	50	4	54	31	120662
82316	32	4	27	10	21233
102010	53	3	28	13	44332




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

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







Goodness of Fit
Correlation0.8064
R-squared0.6503
RMSE44701.0598

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8064[/C][/ROW]
[ROW][C]R-squared[/C][C]0.6503[/C][/ROW]
[ROW][C]RMSE[/C][C]44701.0598[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158926&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158926&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.8064
R-squared0.6503
RMSE44701.0598







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
1210907198125.05882352912781.9411764706
2120982157520.875-36538.875
3176508198125.058823529-21617.0588235294
4179321248059.3-68738.3
51231859831624869
65274653289.6666666667-543.666666666664
7385534248059.3137474.7
83317053289.6666666667-20119.6666666667
910164553289.666666666748355.3333333333
10149061138043.30769230811017.6923076923
11165446157520.8757925.125
12237213248059.3-10846.3
13173326248059.3-74733.3
14133131138043.307692308-4912.30769230769
15258873198125.05882352960747.9411764706
16180083198125.058823529-18042.0588235294
17324799248059.376739.7
18230964198125.05882352932838.9411764706
19236785248059.3-11274.3
20135473157520.875-22047.875
21202925198125.0588235294799.9411764706
22215147198125.05882352917021.9411764706
23344297248059.396237.7
24153935138043.30769230815891.6923076923
25132943198125.058823529-65182.0588235294
26174724248059.3-73335.3
27174415248059.3-73644.3
28225548248059.3-22511.3
29223632248059.3-24427.3
30124817138043.307692308-13226.3076923077
31221698198125.05882352923572.9411764706
32210767198125.05882352912641.9411764706
33170266138043.30769230832222.6923076923
34260561248059.312501.7
3584853138043.307692308-53190.3076923077
36294424248059.346364.7
37101011983162695
38215641198125.05882352917515.9411764706
39325107248059.377047.7
40717653289.6666666667-46113.6666666667
41167542157520.87510021.125
42106408983168092
439656098316-1756
44265769248059.317709.7
45269651198125.05882352971525.9411764706
46149112198125.058823529-49013.0588235294
47175824248059.3-72235.3
48152871157520.875-4649.875
49111665138043.307692308-26378.3076923077
50116408138043.307692308-21635.3076923077
51362301248059.3114241.7
527880053289.666666666725510.3333333333
53183167198125.058823529-14958.0588235294
54277965248059.329905.7
55150629198125.058823529-47496.0588235294
56168809157520.87511288.125
572418853289.6666666667-29101.6666666667
58329267248059.381207.7
596502953289.666666666711739.3333333333
60101097983162781
61218946198125.05882352920820.9411764706
62244052198125.05882352945926.9411764706
63341570248059.393510.7
64103597983165281
65233328248059.3-14731.3
66256462248059.38402.70000000001
67206161157520.87548640.125
68311473248059.363413.7
69235800248059.3-12259.3
70177939248059.3-70120.3
71207176198125.0588235299050.9411764706
72196553138043.30769230858509.6923076923
73174184157520.87516663.125
74143246248059.3-104813.3
75187559248059.3-60500.3
76187681157520.87530160.125
77119016157520.875-38504.875
78182192198125.058823529-15933.0588235294
797356653289.666666666720276.3333333333
80194979198125.058823529-3146.0588235294
81167488157520.8759967.125
82143756198125.058823529-54369.0588235294
83275541198125.05882352977415.9411764706
84243199248059.3-4860.29999999999
85182999248059.3-65060.3
86135649198125.058823529-62476.0588235294
87152299198125.058823529-45826.0588235294
88120221157520.875-37299.875
89346485248059.398425.7
90145790138043.3076923087746.69230769231
91193339248059.3-54720.3
928095398316-17363
93122774138043.307692308-15269.3076923077
94130585198125.058823529-67540.0588235294
951126119831614295
96286468248059.338408.7
97241066248059.3-6993.29999999999
98148446248059.3-99613.3
99204713198125.0588235296587.9411764706
100182079198125.058823529-16046.0588235294
101140344138043.3076923082300.69230769231
102220516198125.05882352922390.9411764706
103243060198125.05882352944934.9411764706
104162765157520.8755244.125
105182613157520.87525092.125
106232138198125.05882352934012.9411764706
107265318248059.317258.7
1088557498316-12742
109310839248059.362779.7
110225060248059.3-22999.3
111232317198125.05882352934191.9411764706
112144966138043.3076923086922.69230769231
1134328753289.6666666667-10002.6666666667
114155754157520.875-1766.875
115164709248059.3-83350.3
116201940198125.0588235293814.9411764706
117235454248059.3-12605.3
118220801248059.3-27258.3
11999466983161150
1209266198316-5655
121133328157520.875-24192.875
1226136198316-36955
1231259309831627614
124100750198125.058823529-97375.0588235294
125224549198125.05882352926423.9411764706
1268231698316-16000
127102010983163694

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 210907 & 198125.058823529 & 12781.9411764706 \tabularnewline
2 & 120982 & 157520.875 & -36538.875 \tabularnewline
3 & 176508 & 198125.058823529 & -21617.0588235294 \tabularnewline
4 & 179321 & 248059.3 & -68738.3 \tabularnewline
5 & 123185 & 98316 & 24869 \tabularnewline
6 & 52746 & 53289.6666666667 & -543.666666666664 \tabularnewline
7 & 385534 & 248059.3 & 137474.7 \tabularnewline
8 & 33170 & 53289.6666666667 & -20119.6666666667 \tabularnewline
9 & 101645 & 53289.6666666667 & 48355.3333333333 \tabularnewline
10 & 149061 & 138043.307692308 & 11017.6923076923 \tabularnewline
11 & 165446 & 157520.875 & 7925.125 \tabularnewline
12 & 237213 & 248059.3 & -10846.3 \tabularnewline
13 & 173326 & 248059.3 & -74733.3 \tabularnewline
14 & 133131 & 138043.307692308 & -4912.30769230769 \tabularnewline
15 & 258873 & 198125.058823529 & 60747.9411764706 \tabularnewline
16 & 180083 & 198125.058823529 & -18042.0588235294 \tabularnewline
17 & 324799 & 248059.3 & 76739.7 \tabularnewline
18 & 230964 & 198125.058823529 & 32838.9411764706 \tabularnewline
19 & 236785 & 248059.3 & -11274.3 \tabularnewline
20 & 135473 & 157520.875 & -22047.875 \tabularnewline
21 & 202925 & 198125.058823529 & 4799.9411764706 \tabularnewline
22 & 215147 & 198125.058823529 & 17021.9411764706 \tabularnewline
23 & 344297 & 248059.3 & 96237.7 \tabularnewline
24 & 153935 & 138043.307692308 & 15891.6923076923 \tabularnewline
25 & 132943 & 198125.058823529 & -65182.0588235294 \tabularnewline
26 & 174724 & 248059.3 & -73335.3 \tabularnewline
27 & 174415 & 248059.3 & -73644.3 \tabularnewline
28 & 225548 & 248059.3 & -22511.3 \tabularnewline
29 & 223632 & 248059.3 & -24427.3 \tabularnewline
30 & 124817 & 138043.307692308 & -13226.3076923077 \tabularnewline
31 & 221698 & 198125.058823529 & 23572.9411764706 \tabularnewline
32 & 210767 & 198125.058823529 & 12641.9411764706 \tabularnewline
33 & 170266 & 138043.307692308 & 32222.6923076923 \tabularnewline
34 & 260561 & 248059.3 & 12501.7 \tabularnewline
35 & 84853 & 138043.307692308 & -53190.3076923077 \tabularnewline
36 & 294424 & 248059.3 & 46364.7 \tabularnewline
37 & 101011 & 98316 & 2695 \tabularnewline
38 & 215641 & 198125.058823529 & 17515.9411764706 \tabularnewline
39 & 325107 & 248059.3 & 77047.7 \tabularnewline
40 & 7176 & 53289.6666666667 & -46113.6666666667 \tabularnewline
41 & 167542 & 157520.875 & 10021.125 \tabularnewline
42 & 106408 & 98316 & 8092 \tabularnewline
43 & 96560 & 98316 & -1756 \tabularnewline
44 & 265769 & 248059.3 & 17709.7 \tabularnewline
45 & 269651 & 198125.058823529 & 71525.9411764706 \tabularnewline
46 & 149112 & 198125.058823529 & -49013.0588235294 \tabularnewline
47 & 175824 & 248059.3 & -72235.3 \tabularnewline
48 & 152871 & 157520.875 & -4649.875 \tabularnewline
49 & 111665 & 138043.307692308 & -26378.3076923077 \tabularnewline
50 & 116408 & 138043.307692308 & -21635.3076923077 \tabularnewline
51 & 362301 & 248059.3 & 114241.7 \tabularnewline
52 & 78800 & 53289.6666666667 & 25510.3333333333 \tabularnewline
53 & 183167 & 198125.058823529 & -14958.0588235294 \tabularnewline
54 & 277965 & 248059.3 & 29905.7 \tabularnewline
55 & 150629 & 198125.058823529 & -47496.0588235294 \tabularnewline
56 & 168809 & 157520.875 & 11288.125 \tabularnewline
57 & 24188 & 53289.6666666667 & -29101.6666666667 \tabularnewline
58 & 329267 & 248059.3 & 81207.7 \tabularnewline
59 & 65029 & 53289.6666666667 & 11739.3333333333 \tabularnewline
60 & 101097 & 98316 & 2781 \tabularnewline
61 & 218946 & 198125.058823529 & 20820.9411764706 \tabularnewline
62 & 244052 & 198125.058823529 & 45926.9411764706 \tabularnewline
63 & 341570 & 248059.3 & 93510.7 \tabularnewline
64 & 103597 & 98316 & 5281 \tabularnewline
65 & 233328 & 248059.3 & -14731.3 \tabularnewline
66 & 256462 & 248059.3 & 8402.70000000001 \tabularnewline
67 & 206161 & 157520.875 & 48640.125 \tabularnewline
68 & 311473 & 248059.3 & 63413.7 \tabularnewline
69 & 235800 & 248059.3 & -12259.3 \tabularnewline
70 & 177939 & 248059.3 & -70120.3 \tabularnewline
71 & 207176 & 198125.058823529 & 9050.9411764706 \tabularnewline
72 & 196553 & 138043.307692308 & 58509.6923076923 \tabularnewline
73 & 174184 & 157520.875 & 16663.125 \tabularnewline
74 & 143246 & 248059.3 & -104813.3 \tabularnewline
75 & 187559 & 248059.3 & -60500.3 \tabularnewline
76 & 187681 & 157520.875 & 30160.125 \tabularnewline
77 & 119016 & 157520.875 & -38504.875 \tabularnewline
78 & 182192 & 198125.058823529 & -15933.0588235294 \tabularnewline
79 & 73566 & 53289.6666666667 & 20276.3333333333 \tabularnewline
80 & 194979 & 198125.058823529 & -3146.0588235294 \tabularnewline
81 & 167488 & 157520.875 & 9967.125 \tabularnewline
82 & 143756 & 198125.058823529 & -54369.0588235294 \tabularnewline
83 & 275541 & 198125.058823529 & 77415.9411764706 \tabularnewline
84 & 243199 & 248059.3 & -4860.29999999999 \tabularnewline
85 & 182999 & 248059.3 & -65060.3 \tabularnewline
86 & 135649 & 198125.058823529 & -62476.0588235294 \tabularnewline
87 & 152299 & 198125.058823529 & -45826.0588235294 \tabularnewline
88 & 120221 & 157520.875 & -37299.875 \tabularnewline
89 & 346485 & 248059.3 & 98425.7 \tabularnewline
90 & 145790 & 138043.307692308 & 7746.69230769231 \tabularnewline
91 & 193339 & 248059.3 & -54720.3 \tabularnewline
92 & 80953 & 98316 & -17363 \tabularnewline
93 & 122774 & 138043.307692308 & -15269.3076923077 \tabularnewline
94 & 130585 & 198125.058823529 & -67540.0588235294 \tabularnewline
95 & 112611 & 98316 & 14295 \tabularnewline
96 & 286468 & 248059.3 & 38408.7 \tabularnewline
97 & 241066 & 248059.3 & -6993.29999999999 \tabularnewline
98 & 148446 & 248059.3 & -99613.3 \tabularnewline
99 & 204713 & 198125.058823529 & 6587.9411764706 \tabularnewline
100 & 182079 & 198125.058823529 & -16046.0588235294 \tabularnewline
101 & 140344 & 138043.307692308 & 2300.69230769231 \tabularnewline
102 & 220516 & 198125.058823529 & 22390.9411764706 \tabularnewline
103 & 243060 & 198125.058823529 & 44934.9411764706 \tabularnewline
104 & 162765 & 157520.875 & 5244.125 \tabularnewline
105 & 182613 & 157520.875 & 25092.125 \tabularnewline
106 & 232138 & 198125.058823529 & 34012.9411764706 \tabularnewline
107 & 265318 & 248059.3 & 17258.7 \tabularnewline
108 & 85574 & 98316 & -12742 \tabularnewline
109 & 310839 & 248059.3 & 62779.7 \tabularnewline
110 & 225060 & 248059.3 & -22999.3 \tabularnewline
111 & 232317 & 198125.058823529 & 34191.9411764706 \tabularnewline
112 & 144966 & 138043.307692308 & 6922.69230769231 \tabularnewline
113 & 43287 & 53289.6666666667 & -10002.6666666667 \tabularnewline
114 & 155754 & 157520.875 & -1766.875 \tabularnewline
115 & 164709 & 248059.3 & -83350.3 \tabularnewline
116 & 201940 & 198125.058823529 & 3814.9411764706 \tabularnewline
117 & 235454 & 248059.3 & -12605.3 \tabularnewline
118 & 220801 & 248059.3 & -27258.3 \tabularnewline
119 & 99466 & 98316 & 1150 \tabularnewline
120 & 92661 & 98316 & -5655 \tabularnewline
121 & 133328 & 157520.875 & -24192.875 \tabularnewline
122 & 61361 & 98316 & -36955 \tabularnewline
123 & 125930 & 98316 & 27614 \tabularnewline
124 & 100750 & 198125.058823529 & -97375.0588235294 \tabularnewline
125 & 224549 & 198125.058823529 & 26423.9411764706 \tabularnewline
126 & 82316 & 98316 & -16000 \tabularnewline
127 & 102010 & 98316 & 3694 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158926&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]210907[/C][C]198125.058823529[/C][C]12781.9411764706[/C][/ROW]
[ROW][C]2[/C][C]120982[/C][C]157520.875[/C][C]-36538.875[/C][/ROW]
[ROW][C]3[/C][C]176508[/C][C]198125.058823529[/C][C]-21617.0588235294[/C][/ROW]
[ROW][C]4[/C][C]179321[/C][C]248059.3[/C][C]-68738.3[/C][/ROW]
[ROW][C]5[/C][C]123185[/C][C]98316[/C][C]24869[/C][/ROW]
[ROW][C]6[/C][C]52746[/C][C]53289.6666666667[/C][C]-543.666666666664[/C][/ROW]
[ROW][C]7[/C][C]385534[/C][C]248059.3[/C][C]137474.7[/C][/ROW]
[ROW][C]8[/C][C]33170[/C][C]53289.6666666667[/C][C]-20119.6666666667[/C][/ROW]
[ROW][C]9[/C][C]101645[/C][C]53289.6666666667[/C][C]48355.3333333333[/C][/ROW]
[ROW][C]10[/C][C]149061[/C][C]138043.307692308[/C][C]11017.6923076923[/C][/ROW]
[ROW][C]11[/C][C]165446[/C][C]157520.875[/C][C]7925.125[/C][/ROW]
[ROW][C]12[/C][C]237213[/C][C]248059.3[/C][C]-10846.3[/C][/ROW]
[ROW][C]13[/C][C]173326[/C][C]248059.3[/C][C]-74733.3[/C][/ROW]
[ROW][C]14[/C][C]133131[/C][C]138043.307692308[/C][C]-4912.30769230769[/C][/ROW]
[ROW][C]15[/C][C]258873[/C][C]198125.058823529[/C][C]60747.9411764706[/C][/ROW]
[ROW][C]16[/C][C]180083[/C][C]198125.058823529[/C][C]-18042.0588235294[/C][/ROW]
[ROW][C]17[/C][C]324799[/C][C]248059.3[/C][C]76739.7[/C][/ROW]
[ROW][C]18[/C][C]230964[/C][C]198125.058823529[/C][C]32838.9411764706[/C][/ROW]
[ROW][C]19[/C][C]236785[/C][C]248059.3[/C][C]-11274.3[/C][/ROW]
[ROW][C]20[/C][C]135473[/C][C]157520.875[/C][C]-22047.875[/C][/ROW]
[ROW][C]21[/C][C]202925[/C][C]198125.058823529[/C][C]4799.9411764706[/C][/ROW]
[ROW][C]22[/C][C]215147[/C][C]198125.058823529[/C][C]17021.9411764706[/C][/ROW]
[ROW][C]23[/C][C]344297[/C][C]248059.3[/C][C]96237.7[/C][/ROW]
[ROW][C]24[/C][C]153935[/C][C]138043.307692308[/C][C]15891.6923076923[/C][/ROW]
[ROW][C]25[/C][C]132943[/C][C]198125.058823529[/C][C]-65182.0588235294[/C][/ROW]
[ROW][C]26[/C][C]174724[/C][C]248059.3[/C][C]-73335.3[/C][/ROW]
[ROW][C]27[/C][C]174415[/C][C]248059.3[/C][C]-73644.3[/C][/ROW]
[ROW][C]28[/C][C]225548[/C][C]248059.3[/C][C]-22511.3[/C][/ROW]
[ROW][C]29[/C][C]223632[/C][C]248059.3[/C][C]-24427.3[/C][/ROW]
[ROW][C]30[/C][C]124817[/C][C]138043.307692308[/C][C]-13226.3076923077[/C][/ROW]
[ROW][C]31[/C][C]221698[/C][C]198125.058823529[/C][C]23572.9411764706[/C][/ROW]
[ROW][C]32[/C][C]210767[/C][C]198125.058823529[/C][C]12641.9411764706[/C][/ROW]
[ROW][C]33[/C][C]170266[/C][C]138043.307692308[/C][C]32222.6923076923[/C][/ROW]
[ROW][C]34[/C][C]260561[/C][C]248059.3[/C][C]12501.7[/C][/ROW]
[ROW][C]35[/C][C]84853[/C][C]138043.307692308[/C][C]-53190.3076923077[/C][/ROW]
[ROW][C]36[/C][C]294424[/C][C]248059.3[/C][C]46364.7[/C][/ROW]
[ROW][C]37[/C][C]101011[/C][C]98316[/C][C]2695[/C][/ROW]
[ROW][C]38[/C][C]215641[/C][C]198125.058823529[/C][C]17515.9411764706[/C][/ROW]
[ROW][C]39[/C][C]325107[/C][C]248059.3[/C][C]77047.7[/C][/ROW]
[ROW][C]40[/C][C]7176[/C][C]53289.6666666667[/C][C]-46113.6666666667[/C][/ROW]
[ROW][C]41[/C][C]167542[/C][C]157520.875[/C][C]10021.125[/C][/ROW]
[ROW][C]42[/C][C]106408[/C][C]98316[/C][C]8092[/C][/ROW]
[ROW][C]43[/C][C]96560[/C][C]98316[/C][C]-1756[/C][/ROW]
[ROW][C]44[/C][C]265769[/C][C]248059.3[/C][C]17709.7[/C][/ROW]
[ROW][C]45[/C][C]269651[/C][C]198125.058823529[/C][C]71525.9411764706[/C][/ROW]
[ROW][C]46[/C][C]149112[/C][C]198125.058823529[/C][C]-49013.0588235294[/C][/ROW]
[ROW][C]47[/C][C]175824[/C][C]248059.3[/C][C]-72235.3[/C][/ROW]
[ROW][C]48[/C][C]152871[/C][C]157520.875[/C][C]-4649.875[/C][/ROW]
[ROW][C]49[/C][C]111665[/C][C]138043.307692308[/C][C]-26378.3076923077[/C][/ROW]
[ROW][C]50[/C][C]116408[/C][C]138043.307692308[/C][C]-21635.3076923077[/C][/ROW]
[ROW][C]51[/C][C]362301[/C][C]248059.3[/C][C]114241.7[/C][/ROW]
[ROW][C]52[/C][C]78800[/C][C]53289.6666666667[/C][C]25510.3333333333[/C][/ROW]
[ROW][C]53[/C][C]183167[/C][C]198125.058823529[/C][C]-14958.0588235294[/C][/ROW]
[ROW][C]54[/C][C]277965[/C][C]248059.3[/C][C]29905.7[/C][/ROW]
[ROW][C]55[/C][C]150629[/C][C]198125.058823529[/C][C]-47496.0588235294[/C][/ROW]
[ROW][C]56[/C][C]168809[/C][C]157520.875[/C][C]11288.125[/C][/ROW]
[ROW][C]57[/C][C]24188[/C][C]53289.6666666667[/C][C]-29101.6666666667[/C][/ROW]
[ROW][C]58[/C][C]329267[/C][C]248059.3[/C][C]81207.7[/C][/ROW]
[ROW][C]59[/C][C]65029[/C][C]53289.6666666667[/C][C]11739.3333333333[/C][/ROW]
[ROW][C]60[/C][C]101097[/C][C]98316[/C][C]2781[/C][/ROW]
[ROW][C]61[/C][C]218946[/C][C]198125.058823529[/C][C]20820.9411764706[/C][/ROW]
[ROW][C]62[/C][C]244052[/C][C]198125.058823529[/C][C]45926.9411764706[/C][/ROW]
[ROW][C]63[/C][C]341570[/C][C]248059.3[/C][C]93510.7[/C][/ROW]
[ROW][C]64[/C][C]103597[/C][C]98316[/C][C]5281[/C][/ROW]
[ROW][C]65[/C][C]233328[/C][C]248059.3[/C][C]-14731.3[/C][/ROW]
[ROW][C]66[/C][C]256462[/C][C]248059.3[/C][C]8402.70000000001[/C][/ROW]
[ROW][C]67[/C][C]206161[/C][C]157520.875[/C][C]48640.125[/C][/ROW]
[ROW][C]68[/C][C]311473[/C][C]248059.3[/C][C]63413.7[/C][/ROW]
[ROW][C]69[/C][C]235800[/C][C]248059.3[/C][C]-12259.3[/C][/ROW]
[ROW][C]70[/C][C]177939[/C][C]248059.3[/C][C]-70120.3[/C][/ROW]
[ROW][C]71[/C][C]207176[/C][C]198125.058823529[/C][C]9050.9411764706[/C][/ROW]
[ROW][C]72[/C][C]196553[/C][C]138043.307692308[/C][C]58509.6923076923[/C][/ROW]
[ROW][C]73[/C][C]174184[/C][C]157520.875[/C][C]16663.125[/C][/ROW]
[ROW][C]74[/C][C]143246[/C][C]248059.3[/C][C]-104813.3[/C][/ROW]
[ROW][C]75[/C][C]187559[/C][C]248059.3[/C][C]-60500.3[/C][/ROW]
[ROW][C]76[/C][C]187681[/C][C]157520.875[/C][C]30160.125[/C][/ROW]
[ROW][C]77[/C][C]119016[/C][C]157520.875[/C][C]-38504.875[/C][/ROW]
[ROW][C]78[/C][C]182192[/C][C]198125.058823529[/C][C]-15933.0588235294[/C][/ROW]
[ROW][C]79[/C][C]73566[/C][C]53289.6666666667[/C][C]20276.3333333333[/C][/ROW]
[ROW][C]80[/C][C]194979[/C][C]198125.058823529[/C][C]-3146.0588235294[/C][/ROW]
[ROW][C]81[/C][C]167488[/C][C]157520.875[/C][C]9967.125[/C][/ROW]
[ROW][C]82[/C][C]143756[/C][C]198125.058823529[/C][C]-54369.0588235294[/C][/ROW]
[ROW][C]83[/C][C]275541[/C][C]198125.058823529[/C][C]77415.9411764706[/C][/ROW]
[ROW][C]84[/C][C]243199[/C][C]248059.3[/C][C]-4860.29999999999[/C][/ROW]
[ROW][C]85[/C][C]182999[/C][C]248059.3[/C][C]-65060.3[/C][/ROW]
[ROW][C]86[/C][C]135649[/C][C]198125.058823529[/C][C]-62476.0588235294[/C][/ROW]
[ROW][C]87[/C][C]152299[/C][C]198125.058823529[/C][C]-45826.0588235294[/C][/ROW]
[ROW][C]88[/C][C]120221[/C][C]157520.875[/C][C]-37299.875[/C][/ROW]
[ROW][C]89[/C][C]346485[/C][C]248059.3[/C][C]98425.7[/C][/ROW]
[ROW][C]90[/C][C]145790[/C][C]138043.307692308[/C][C]7746.69230769231[/C][/ROW]
[ROW][C]91[/C][C]193339[/C][C]248059.3[/C][C]-54720.3[/C][/ROW]
[ROW][C]92[/C][C]80953[/C][C]98316[/C][C]-17363[/C][/ROW]
[ROW][C]93[/C][C]122774[/C][C]138043.307692308[/C][C]-15269.3076923077[/C][/ROW]
[ROW][C]94[/C][C]130585[/C][C]198125.058823529[/C][C]-67540.0588235294[/C][/ROW]
[ROW][C]95[/C][C]112611[/C][C]98316[/C][C]14295[/C][/ROW]
[ROW][C]96[/C][C]286468[/C][C]248059.3[/C][C]38408.7[/C][/ROW]
[ROW][C]97[/C][C]241066[/C][C]248059.3[/C][C]-6993.29999999999[/C][/ROW]
[ROW][C]98[/C][C]148446[/C][C]248059.3[/C][C]-99613.3[/C][/ROW]
[ROW][C]99[/C][C]204713[/C][C]198125.058823529[/C][C]6587.9411764706[/C][/ROW]
[ROW][C]100[/C][C]182079[/C][C]198125.058823529[/C][C]-16046.0588235294[/C][/ROW]
[ROW][C]101[/C][C]140344[/C][C]138043.307692308[/C][C]2300.69230769231[/C][/ROW]
[ROW][C]102[/C][C]220516[/C][C]198125.058823529[/C][C]22390.9411764706[/C][/ROW]
[ROW][C]103[/C][C]243060[/C][C]198125.058823529[/C][C]44934.9411764706[/C][/ROW]
[ROW][C]104[/C][C]162765[/C][C]157520.875[/C][C]5244.125[/C][/ROW]
[ROW][C]105[/C][C]182613[/C][C]157520.875[/C][C]25092.125[/C][/ROW]
[ROW][C]106[/C][C]232138[/C][C]198125.058823529[/C][C]34012.9411764706[/C][/ROW]
[ROW][C]107[/C][C]265318[/C][C]248059.3[/C][C]17258.7[/C][/ROW]
[ROW][C]108[/C][C]85574[/C][C]98316[/C][C]-12742[/C][/ROW]
[ROW][C]109[/C][C]310839[/C][C]248059.3[/C][C]62779.7[/C][/ROW]
[ROW][C]110[/C][C]225060[/C][C]248059.3[/C][C]-22999.3[/C][/ROW]
[ROW][C]111[/C][C]232317[/C][C]198125.058823529[/C][C]34191.9411764706[/C][/ROW]
[ROW][C]112[/C][C]144966[/C][C]138043.307692308[/C][C]6922.69230769231[/C][/ROW]
[ROW][C]113[/C][C]43287[/C][C]53289.6666666667[/C][C]-10002.6666666667[/C][/ROW]
[ROW][C]114[/C][C]155754[/C][C]157520.875[/C][C]-1766.875[/C][/ROW]
[ROW][C]115[/C][C]164709[/C][C]248059.3[/C][C]-83350.3[/C][/ROW]
[ROW][C]116[/C][C]201940[/C][C]198125.058823529[/C][C]3814.9411764706[/C][/ROW]
[ROW][C]117[/C][C]235454[/C][C]248059.3[/C][C]-12605.3[/C][/ROW]
[ROW][C]118[/C][C]220801[/C][C]248059.3[/C][C]-27258.3[/C][/ROW]
[ROW][C]119[/C][C]99466[/C][C]98316[/C][C]1150[/C][/ROW]
[ROW][C]120[/C][C]92661[/C][C]98316[/C][C]-5655[/C][/ROW]
[ROW][C]121[/C][C]133328[/C][C]157520.875[/C][C]-24192.875[/C][/ROW]
[ROW][C]122[/C][C]61361[/C][C]98316[/C][C]-36955[/C][/ROW]
[ROW][C]123[/C][C]125930[/C][C]98316[/C][C]27614[/C][/ROW]
[ROW][C]124[/C][C]100750[/C][C]198125.058823529[/C][C]-97375.0588235294[/C][/ROW]
[ROW][C]125[/C][C]224549[/C][C]198125.058823529[/C][C]26423.9411764706[/C][/ROW]
[ROW][C]126[/C][C]82316[/C][C]98316[/C][C]-16000[/C][/ROW]
[ROW][C]127[/C][C]102010[/C][C]98316[/C][C]3694[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158926&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158926&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
1210907198125.05882352912781.9411764706
2120982157520.875-36538.875
3176508198125.058823529-21617.0588235294
4179321248059.3-68738.3
51231859831624869
65274653289.6666666667-543.666666666664
7385534248059.3137474.7
83317053289.6666666667-20119.6666666667
910164553289.666666666748355.3333333333
10149061138043.30769230811017.6923076923
11165446157520.8757925.125
12237213248059.3-10846.3
13173326248059.3-74733.3
14133131138043.307692308-4912.30769230769
15258873198125.05882352960747.9411764706
16180083198125.058823529-18042.0588235294
17324799248059.376739.7
18230964198125.05882352932838.9411764706
19236785248059.3-11274.3
20135473157520.875-22047.875
21202925198125.0588235294799.9411764706
22215147198125.05882352917021.9411764706
23344297248059.396237.7
24153935138043.30769230815891.6923076923
25132943198125.058823529-65182.0588235294
26174724248059.3-73335.3
27174415248059.3-73644.3
28225548248059.3-22511.3
29223632248059.3-24427.3
30124817138043.307692308-13226.3076923077
31221698198125.05882352923572.9411764706
32210767198125.05882352912641.9411764706
33170266138043.30769230832222.6923076923
34260561248059.312501.7
3584853138043.307692308-53190.3076923077
36294424248059.346364.7
37101011983162695
38215641198125.05882352917515.9411764706
39325107248059.377047.7
40717653289.6666666667-46113.6666666667
41167542157520.87510021.125
42106408983168092
439656098316-1756
44265769248059.317709.7
45269651198125.05882352971525.9411764706
46149112198125.058823529-49013.0588235294
47175824248059.3-72235.3
48152871157520.875-4649.875
49111665138043.307692308-26378.3076923077
50116408138043.307692308-21635.3076923077
51362301248059.3114241.7
527880053289.666666666725510.3333333333
53183167198125.058823529-14958.0588235294
54277965248059.329905.7
55150629198125.058823529-47496.0588235294
56168809157520.87511288.125
572418853289.6666666667-29101.6666666667
58329267248059.381207.7
596502953289.666666666711739.3333333333
60101097983162781
61218946198125.05882352920820.9411764706
62244052198125.05882352945926.9411764706
63341570248059.393510.7
64103597983165281
65233328248059.3-14731.3
66256462248059.38402.70000000001
67206161157520.87548640.125
68311473248059.363413.7
69235800248059.3-12259.3
70177939248059.3-70120.3
71207176198125.0588235299050.9411764706
72196553138043.30769230858509.6923076923
73174184157520.87516663.125
74143246248059.3-104813.3
75187559248059.3-60500.3
76187681157520.87530160.125
77119016157520.875-38504.875
78182192198125.058823529-15933.0588235294
797356653289.666666666720276.3333333333
80194979198125.058823529-3146.0588235294
81167488157520.8759967.125
82143756198125.058823529-54369.0588235294
83275541198125.05882352977415.9411764706
84243199248059.3-4860.29999999999
85182999248059.3-65060.3
86135649198125.058823529-62476.0588235294
87152299198125.058823529-45826.0588235294
88120221157520.875-37299.875
89346485248059.398425.7
90145790138043.3076923087746.69230769231
91193339248059.3-54720.3
928095398316-17363
93122774138043.307692308-15269.3076923077
94130585198125.058823529-67540.0588235294
951126119831614295
96286468248059.338408.7
97241066248059.3-6993.29999999999
98148446248059.3-99613.3
99204713198125.0588235296587.9411764706
100182079198125.058823529-16046.0588235294
101140344138043.3076923082300.69230769231
102220516198125.05882352922390.9411764706
103243060198125.05882352944934.9411764706
104162765157520.8755244.125
105182613157520.87525092.125
106232138198125.05882352934012.9411764706
107265318248059.317258.7
1088557498316-12742
109310839248059.362779.7
110225060248059.3-22999.3
111232317198125.05882352934191.9411764706
112144966138043.3076923086922.69230769231
1134328753289.6666666667-10002.6666666667
114155754157520.875-1766.875
115164709248059.3-83350.3
116201940198125.0588235293814.9411764706
117235454248059.3-12605.3
118220801248059.3-27258.3
11999466983161150
1209266198316-5655
121133328157520.875-24192.875
1226136198316-36955
1231259309831627614
124100750198125.058823529-97375.0588235294
125224549198125.05882352926423.9411764706
1268231698316-16000
127102010983163694



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