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 computationTue, 20 Dec 2011 17:10:35 -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/20/t1324419062o86ylkmxq034ju7.htm/, Retrieved Mon, 06 May 2024 00:07:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=158311, Retrieved Mon, 06 May 2024 00:07:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact69
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Recursive Partitioning (Regression Trees)] [] [2011-12-20 22:10:35] [d9117990bcd7292ecd0ccf87cb78a2ce] [Current]
Feedback Forum

Post a new message
Dataseries X:
158258	48	18	20465
186930	53	20	33629
7215	0	0	1423
128162	51	27	25629
226974	76	31	54002
500344	125	36	151036
171007	59	23	33287
179835	80	30	31172
154581	55	30	28113
278960	67	26	57803
121844	50	24	49830
183086	77	30	52143
98796	44	22	21055
209322	79	25	47007
157125	51	18	28735
154565	54	22	59147
134198	75	33	78950
75548	4	15	13497
150680	73	34	46154
27997	13	18	53249
69919	19	15	10726
233044	93	30	83700
195820	38	25	40400
127994	48	34	33797
145433	50	21	36205
170864	48	21	30165
199655	60	25	58534
188633	81	31	44663
354266	60	31	92556
192399	52	20	40078
165753	50	28	34711
173721	60	20	31076
126739	53	17	74608
224762	76	25	58092
219428	63	24	42009
0	0	0	0
217267	54	27	36022
99706	44	14	23333
136733	36	35	53349
249965	83	34	92596
232951	105	22	49598
143755	37	34	44093
95734	25	23	84205
191416	63	24	63369
114820	55	26	60132
157721	41	22	37403
81293	23	35	24460
216281	67	24	46456
223771	54	31	66616
160344	68	26	41554
48188	12	22	22346
145235	84	21	30874
287839	66	27	68701
235223	56	30	35728
195583	67	33	29010
145942	40	11	23110
207309	53	26	38844
93764	26	26	27084
151985	67	23	35139
190545	36	38	57476
146414	50	30	33277
130794	48	19	31141
124234	46	19	61281
112718	53	26	25820
160817	27	26	23284
99070	38	33	35378
178653	68	36	74990
138708	93	25	29653
114408	59	24	64622
31970	5	21	4157
224494	53	19	29245
123328	36	12	50008
113504	72	30	52338
105932	49	21	13310
162203	81	34	92901
100098	27	32	10956
174768	94	28	34241
156908	71	28	75043
77269	18	21	21152
84971	34	31	42249
80522	54	26	42005
276525	44	29	41152
62974	26	23	14399
120296	44	25	28263
75555	35	22	17215
157988	32	26	48140
224562	55	33	62897
115019	58	24	22883
99602	44	24	41622
151804	39	21	40715
146005	49	28	65897
163444	72	27	76542
151517	39	25	37477
133686	28	15	53216
58128	24	13	40911
234325	49	36	57021
195576	96	24	73116
19349	13	1	3895
213189	32	24	46609
151672	41	31	29351
59117	24	4	2325
71931	52	20	31747
126653	57	23	32665
113552	28	23	19249
85338	36	12	15292
27676	2	16	5842
138522	80	29	33994
122417	29	26	13018
0	0	0	0
87592	46	25	98177
107205	25	21	37941
144664	51	23	31032
136540	59	21	32683
73645	36	21	34545
3616	0	0	0
0	0	0	0
175055	38	23	27525
144618	68	33	66856
152826	28	28	28549
113245	36	23	38610
43410	7	1	2781
175762	70	29	41211
93634	30	17	22698
117426	59	31	41194
60493	3	12	32689
19764	10	2	5752
164062	46	21	26757
128144	34	26	22527
154959	54	29	44810
11796	1	2	0
10674	0	0	0
138547	35	18	100674
6836	0	1	0
154135	48	21	57786
5118	5	0	0
40248	8	4	5444
0	0	0	0
120460	36	25	28470
88837	21	26	61849
7131	0	0	0
9056	0	4	2179
68916	15	17	8019
132697	50	21	39644
100681	17	22	23494




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158311&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.799
R-squared0.6383
RMSE44917.0349

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.799[/C][/ROW]
[ROW][C]R-squared[/C][C]0.6383[/C][/ROW]
[ROW][C]RMSE[/C][C]44917.0349[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158311&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158311&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.799
R-squared0.6383
RMSE44917.0349







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
1158258115255.543002.5
218693015308633844
372159636.35714285714-2421.35714285714
4128162115255.512906.5
5226974184378.36666666742595.6333333333
6500344246565.857142857253778.142857143
717100715308617921
8179835184378.366666667-4543.36666666667
91545811530861495
10278960184378.36666666794581.6333333333
11121844153086-31242
12183086184378.366666667-1292.36666666667
1398796115255.5-16459.5
14209322184378.36666666724943.6333333333
151571251530864039
161545651530861479
17134198184378.366666667-50180.3666666667
18755484014735401
19150680184378.366666667-33698.3666666667
202799740147-12150
216991980319.75-10400.75
22233044246565.857142857-13521.8571428571
2319582015308642734
24127994153086-25092
25145433153086-7653
2617086415308617778
27199655184378.36666666715276.6333333333
28188633184378.3666666674254.63333333333
29354266246565.857142857107700.142857143
3019239915308639313
3116575315308612667
32173721184378.366666667-10657.3666666667
33126739153086-26347
34224762184378.36666666740383.6333333333
35219428184378.36666666735049.6333333333
3609636.35714285714-9636.35714285714
3721726715308664181
3899706115255.5-15549.5
39136733153086-16353
40249965246565.8571428573399.14285714287
41232951184378.36666666748572.6333333333
42143755153086-9331
439573480319.7515414.25
44191416184378.3666666677037.63333333333
45114820153086-38266
461577211530864635
478129380319.75973.25
48216281184378.36666666731902.6333333333
4922377115308670685
50160344184378.366666667-24034.3666666667
5148188401478041
52145235184378.366666667-39143.3666666667
53287839184378.366666667103460.633333333
5423522315308682137
55195583184378.36666666711204.6333333333
56145942115255.530686.5
5720730915308654223
589376480319.7513444.25
59151985184378.366666667-32393.3666666667
6019054515308637459
61146414153086-6672
62130794153086-22292
63124234153086-28852
64112718115255.5-2537.5
65160817115255.545561.5
6699070153086-54016
67178653184378.366666667-5725.36666666667
68138708184378.366666667-45670.3666666667
69114408153086-38678
703197040147-8177
7122449415308671408
72123328153086-29758
73113504184378.366666667-70874.3666666667
74105932115255.5-9323.5
75162203246565.857142857-84362.8571428571
76100098115255.5-15157.5
77174768184378.366666667-9610.36666666667
78156908184378.366666667-27470.3666666667
797726980319.75-3050.75
8084971153086-68115
8180522153086-72564
82276525153086123439
836297480319.75-17345.75
84120296153086-32790
8575555115255.5-39700.5
861579881530864902
8722456215308671476
88115019115255.5-236.5
8999602153086-53484
90151804153086-1282
91146005153086-7081
92163444184378.366666667-20934.3666666667
93151517153086-1569
94133686153086-19400
955812880319.75-22191.75
9623432515308681239
97195576184378.36666666711197.6333333333
98193499636.357142857149712.64285714286
9921318915308660103
100151672153086-1414
1015911780319.75-21202.75
10271931153086-81155
103126653153086-26433
104113552115255.5-1703.5
10585338115255.5-29917.5
1062767640147-12471
107138522184378.366666667-45856.3666666667
108122417115255.57161.5
10909636.35714285714-9636.35714285714
11087592246565.857142857-158973.857142857
11110720580319.7526885.25
112144664153086-8422
113136540153086-16546
11473645153086-79441
11536169636.35714285714-6020.35714285714
11609636.35714285714-9636.35714285714
11717505515308621969
118144618184378.366666667-39760.3666666667
119152826153086-260
120113245153086-39841
121434109636.3571428571433773.6428571429
122175762184378.366666667-8616.36666666667
12393634115255.5-21621.5
124117426153086-35660
125604934014720346
126197649636.3571428571410127.6428571429
12716406215308610976
128128144115255.512888.5
1291549591530861873
130117969636.357142857142159.64285714286
131106749636.357142857141037.64285714286
132138547246565.857142857-108018.857142857
13368369636.35714285714-2800.35714285714
1341541351530861049
13551189636.35714285714-4518.35714285714
1364024840147101
13709636.35714285714-9636.35714285714
138120460153086-32626
1398883780319.758517.25
14071319636.35714285714-2505.35714285714
141905640147-31091
1426891680319.75-11403.75
143132697153086-20389
14410068180319.7520361.25

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 158258 & 115255.5 & 43002.5 \tabularnewline
2 & 186930 & 153086 & 33844 \tabularnewline
3 & 7215 & 9636.35714285714 & -2421.35714285714 \tabularnewline
4 & 128162 & 115255.5 & 12906.5 \tabularnewline
5 & 226974 & 184378.366666667 & 42595.6333333333 \tabularnewline
6 & 500344 & 246565.857142857 & 253778.142857143 \tabularnewline
7 & 171007 & 153086 & 17921 \tabularnewline
8 & 179835 & 184378.366666667 & -4543.36666666667 \tabularnewline
9 & 154581 & 153086 & 1495 \tabularnewline
10 & 278960 & 184378.366666667 & 94581.6333333333 \tabularnewline
11 & 121844 & 153086 & -31242 \tabularnewline
12 & 183086 & 184378.366666667 & -1292.36666666667 \tabularnewline
13 & 98796 & 115255.5 & -16459.5 \tabularnewline
14 & 209322 & 184378.366666667 & 24943.6333333333 \tabularnewline
15 & 157125 & 153086 & 4039 \tabularnewline
16 & 154565 & 153086 & 1479 \tabularnewline
17 & 134198 & 184378.366666667 & -50180.3666666667 \tabularnewline
18 & 75548 & 40147 & 35401 \tabularnewline
19 & 150680 & 184378.366666667 & -33698.3666666667 \tabularnewline
20 & 27997 & 40147 & -12150 \tabularnewline
21 & 69919 & 80319.75 & -10400.75 \tabularnewline
22 & 233044 & 246565.857142857 & -13521.8571428571 \tabularnewline
23 & 195820 & 153086 & 42734 \tabularnewline
24 & 127994 & 153086 & -25092 \tabularnewline
25 & 145433 & 153086 & -7653 \tabularnewline
26 & 170864 & 153086 & 17778 \tabularnewline
27 & 199655 & 184378.366666667 & 15276.6333333333 \tabularnewline
28 & 188633 & 184378.366666667 & 4254.63333333333 \tabularnewline
29 & 354266 & 246565.857142857 & 107700.142857143 \tabularnewline
30 & 192399 & 153086 & 39313 \tabularnewline
31 & 165753 & 153086 & 12667 \tabularnewline
32 & 173721 & 184378.366666667 & -10657.3666666667 \tabularnewline
33 & 126739 & 153086 & -26347 \tabularnewline
34 & 224762 & 184378.366666667 & 40383.6333333333 \tabularnewline
35 & 219428 & 184378.366666667 & 35049.6333333333 \tabularnewline
36 & 0 & 9636.35714285714 & -9636.35714285714 \tabularnewline
37 & 217267 & 153086 & 64181 \tabularnewline
38 & 99706 & 115255.5 & -15549.5 \tabularnewline
39 & 136733 & 153086 & -16353 \tabularnewline
40 & 249965 & 246565.857142857 & 3399.14285714287 \tabularnewline
41 & 232951 & 184378.366666667 & 48572.6333333333 \tabularnewline
42 & 143755 & 153086 & -9331 \tabularnewline
43 & 95734 & 80319.75 & 15414.25 \tabularnewline
44 & 191416 & 184378.366666667 & 7037.63333333333 \tabularnewline
45 & 114820 & 153086 & -38266 \tabularnewline
46 & 157721 & 153086 & 4635 \tabularnewline
47 & 81293 & 80319.75 & 973.25 \tabularnewline
48 & 216281 & 184378.366666667 & 31902.6333333333 \tabularnewline
49 & 223771 & 153086 & 70685 \tabularnewline
50 & 160344 & 184378.366666667 & -24034.3666666667 \tabularnewline
51 & 48188 & 40147 & 8041 \tabularnewline
52 & 145235 & 184378.366666667 & -39143.3666666667 \tabularnewline
53 & 287839 & 184378.366666667 & 103460.633333333 \tabularnewline
54 & 235223 & 153086 & 82137 \tabularnewline
55 & 195583 & 184378.366666667 & 11204.6333333333 \tabularnewline
56 & 145942 & 115255.5 & 30686.5 \tabularnewline
57 & 207309 & 153086 & 54223 \tabularnewline
58 & 93764 & 80319.75 & 13444.25 \tabularnewline
59 & 151985 & 184378.366666667 & -32393.3666666667 \tabularnewline
60 & 190545 & 153086 & 37459 \tabularnewline
61 & 146414 & 153086 & -6672 \tabularnewline
62 & 130794 & 153086 & -22292 \tabularnewline
63 & 124234 & 153086 & -28852 \tabularnewline
64 & 112718 & 115255.5 & -2537.5 \tabularnewline
65 & 160817 & 115255.5 & 45561.5 \tabularnewline
66 & 99070 & 153086 & -54016 \tabularnewline
67 & 178653 & 184378.366666667 & -5725.36666666667 \tabularnewline
68 & 138708 & 184378.366666667 & -45670.3666666667 \tabularnewline
69 & 114408 & 153086 & -38678 \tabularnewline
70 & 31970 & 40147 & -8177 \tabularnewline
71 & 224494 & 153086 & 71408 \tabularnewline
72 & 123328 & 153086 & -29758 \tabularnewline
73 & 113504 & 184378.366666667 & -70874.3666666667 \tabularnewline
74 & 105932 & 115255.5 & -9323.5 \tabularnewline
75 & 162203 & 246565.857142857 & -84362.8571428571 \tabularnewline
76 & 100098 & 115255.5 & -15157.5 \tabularnewline
77 & 174768 & 184378.366666667 & -9610.36666666667 \tabularnewline
78 & 156908 & 184378.366666667 & -27470.3666666667 \tabularnewline
79 & 77269 & 80319.75 & -3050.75 \tabularnewline
80 & 84971 & 153086 & -68115 \tabularnewline
81 & 80522 & 153086 & -72564 \tabularnewline
82 & 276525 & 153086 & 123439 \tabularnewline
83 & 62974 & 80319.75 & -17345.75 \tabularnewline
84 & 120296 & 153086 & -32790 \tabularnewline
85 & 75555 & 115255.5 & -39700.5 \tabularnewline
86 & 157988 & 153086 & 4902 \tabularnewline
87 & 224562 & 153086 & 71476 \tabularnewline
88 & 115019 & 115255.5 & -236.5 \tabularnewline
89 & 99602 & 153086 & -53484 \tabularnewline
90 & 151804 & 153086 & -1282 \tabularnewline
91 & 146005 & 153086 & -7081 \tabularnewline
92 & 163444 & 184378.366666667 & -20934.3666666667 \tabularnewline
93 & 151517 & 153086 & -1569 \tabularnewline
94 & 133686 & 153086 & -19400 \tabularnewline
95 & 58128 & 80319.75 & -22191.75 \tabularnewline
96 & 234325 & 153086 & 81239 \tabularnewline
97 & 195576 & 184378.366666667 & 11197.6333333333 \tabularnewline
98 & 19349 & 9636.35714285714 & 9712.64285714286 \tabularnewline
99 & 213189 & 153086 & 60103 \tabularnewline
100 & 151672 & 153086 & -1414 \tabularnewline
101 & 59117 & 80319.75 & -21202.75 \tabularnewline
102 & 71931 & 153086 & -81155 \tabularnewline
103 & 126653 & 153086 & -26433 \tabularnewline
104 & 113552 & 115255.5 & -1703.5 \tabularnewline
105 & 85338 & 115255.5 & -29917.5 \tabularnewline
106 & 27676 & 40147 & -12471 \tabularnewline
107 & 138522 & 184378.366666667 & -45856.3666666667 \tabularnewline
108 & 122417 & 115255.5 & 7161.5 \tabularnewline
109 & 0 & 9636.35714285714 & -9636.35714285714 \tabularnewline
110 & 87592 & 246565.857142857 & -158973.857142857 \tabularnewline
111 & 107205 & 80319.75 & 26885.25 \tabularnewline
112 & 144664 & 153086 & -8422 \tabularnewline
113 & 136540 & 153086 & -16546 \tabularnewline
114 & 73645 & 153086 & -79441 \tabularnewline
115 & 3616 & 9636.35714285714 & -6020.35714285714 \tabularnewline
116 & 0 & 9636.35714285714 & -9636.35714285714 \tabularnewline
117 & 175055 & 153086 & 21969 \tabularnewline
118 & 144618 & 184378.366666667 & -39760.3666666667 \tabularnewline
119 & 152826 & 153086 & -260 \tabularnewline
120 & 113245 & 153086 & -39841 \tabularnewline
121 & 43410 & 9636.35714285714 & 33773.6428571429 \tabularnewline
122 & 175762 & 184378.366666667 & -8616.36666666667 \tabularnewline
123 & 93634 & 115255.5 & -21621.5 \tabularnewline
124 & 117426 & 153086 & -35660 \tabularnewline
125 & 60493 & 40147 & 20346 \tabularnewline
126 & 19764 & 9636.35714285714 & 10127.6428571429 \tabularnewline
127 & 164062 & 153086 & 10976 \tabularnewline
128 & 128144 & 115255.5 & 12888.5 \tabularnewline
129 & 154959 & 153086 & 1873 \tabularnewline
130 & 11796 & 9636.35714285714 & 2159.64285714286 \tabularnewline
131 & 10674 & 9636.35714285714 & 1037.64285714286 \tabularnewline
132 & 138547 & 246565.857142857 & -108018.857142857 \tabularnewline
133 & 6836 & 9636.35714285714 & -2800.35714285714 \tabularnewline
134 & 154135 & 153086 & 1049 \tabularnewline
135 & 5118 & 9636.35714285714 & -4518.35714285714 \tabularnewline
136 & 40248 & 40147 & 101 \tabularnewline
137 & 0 & 9636.35714285714 & -9636.35714285714 \tabularnewline
138 & 120460 & 153086 & -32626 \tabularnewline
139 & 88837 & 80319.75 & 8517.25 \tabularnewline
140 & 7131 & 9636.35714285714 & -2505.35714285714 \tabularnewline
141 & 9056 & 40147 & -31091 \tabularnewline
142 & 68916 & 80319.75 & -11403.75 \tabularnewline
143 & 132697 & 153086 & -20389 \tabularnewline
144 & 100681 & 80319.75 & 20361.25 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158311&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]158258[/C][C]115255.5[/C][C]43002.5[/C][/ROW]
[ROW][C]2[/C][C]186930[/C][C]153086[/C][C]33844[/C][/ROW]
[ROW][C]3[/C][C]7215[/C][C]9636.35714285714[/C][C]-2421.35714285714[/C][/ROW]
[ROW][C]4[/C][C]128162[/C][C]115255.5[/C][C]12906.5[/C][/ROW]
[ROW][C]5[/C][C]226974[/C][C]184378.366666667[/C][C]42595.6333333333[/C][/ROW]
[ROW][C]6[/C][C]500344[/C][C]246565.857142857[/C][C]253778.142857143[/C][/ROW]
[ROW][C]7[/C][C]171007[/C][C]153086[/C][C]17921[/C][/ROW]
[ROW][C]8[/C][C]179835[/C][C]184378.366666667[/C][C]-4543.36666666667[/C][/ROW]
[ROW][C]9[/C][C]154581[/C][C]153086[/C][C]1495[/C][/ROW]
[ROW][C]10[/C][C]278960[/C][C]184378.366666667[/C][C]94581.6333333333[/C][/ROW]
[ROW][C]11[/C][C]121844[/C][C]153086[/C][C]-31242[/C][/ROW]
[ROW][C]12[/C][C]183086[/C][C]184378.366666667[/C][C]-1292.36666666667[/C][/ROW]
[ROW][C]13[/C][C]98796[/C][C]115255.5[/C][C]-16459.5[/C][/ROW]
[ROW][C]14[/C][C]209322[/C][C]184378.366666667[/C][C]24943.6333333333[/C][/ROW]
[ROW][C]15[/C][C]157125[/C][C]153086[/C][C]4039[/C][/ROW]
[ROW][C]16[/C][C]154565[/C][C]153086[/C][C]1479[/C][/ROW]
[ROW][C]17[/C][C]134198[/C][C]184378.366666667[/C][C]-50180.3666666667[/C][/ROW]
[ROW][C]18[/C][C]75548[/C][C]40147[/C][C]35401[/C][/ROW]
[ROW][C]19[/C][C]150680[/C][C]184378.366666667[/C][C]-33698.3666666667[/C][/ROW]
[ROW][C]20[/C][C]27997[/C][C]40147[/C][C]-12150[/C][/ROW]
[ROW][C]21[/C][C]69919[/C][C]80319.75[/C][C]-10400.75[/C][/ROW]
[ROW][C]22[/C][C]233044[/C][C]246565.857142857[/C][C]-13521.8571428571[/C][/ROW]
[ROW][C]23[/C][C]195820[/C][C]153086[/C][C]42734[/C][/ROW]
[ROW][C]24[/C][C]127994[/C][C]153086[/C][C]-25092[/C][/ROW]
[ROW][C]25[/C][C]145433[/C][C]153086[/C][C]-7653[/C][/ROW]
[ROW][C]26[/C][C]170864[/C][C]153086[/C][C]17778[/C][/ROW]
[ROW][C]27[/C][C]199655[/C][C]184378.366666667[/C][C]15276.6333333333[/C][/ROW]
[ROW][C]28[/C][C]188633[/C][C]184378.366666667[/C][C]4254.63333333333[/C][/ROW]
[ROW][C]29[/C][C]354266[/C][C]246565.857142857[/C][C]107700.142857143[/C][/ROW]
[ROW][C]30[/C][C]192399[/C][C]153086[/C][C]39313[/C][/ROW]
[ROW][C]31[/C][C]165753[/C][C]153086[/C][C]12667[/C][/ROW]
[ROW][C]32[/C][C]173721[/C][C]184378.366666667[/C][C]-10657.3666666667[/C][/ROW]
[ROW][C]33[/C][C]126739[/C][C]153086[/C][C]-26347[/C][/ROW]
[ROW][C]34[/C][C]224762[/C][C]184378.366666667[/C][C]40383.6333333333[/C][/ROW]
[ROW][C]35[/C][C]219428[/C][C]184378.366666667[/C][C]35049.6333333333[/C][/ROW]
[ROW][C]36[/C][C]0[/C][C]9636.35714285714[/C][C]-9636.35714285714[/C][/ROW]
[ROW][C]37[/C][C]217267[/C][C]153086[/C][C]64181[/C][/ROW]
[ROW][C]38[/C][C]99706[/C][C]115255.5[/C][C]-15549.5[/C][/ROW]
[ROW][C]39[/C][C]136733[/C][C]153086[/C][C]-16353[/C][/ROW]
[ROW][C]40[/C][C]249965[/C][C]246565.857142857[/C][C]3399.14285714287[/C][/ROW]
[ROW][C]41[/C][C]232951[/C][C]184378.366666667[/C][C]48572.6333333333[/C][/ROW]
[ROW][C]42[/C][C]143755[/C][C]153086[/C][C]-9331[/C][/ROW]
[ROW][C]43[/C][C]95734[/C][C]80319.75[/C][C]15414.25[/C][/ROW]
[ROW][C]44[/C][C]191416[/C][C]184378.366666667[/C][C]7037.63333333333[/C][/ROW]
[ROW][C]45[/C][C]114820[/C][C]153086[/C][C]-38266[/C][/ROW]
[ROW][C]46[/C][C]157721[/C][C]153086[/C][C]4635[/C][/ROW]
[ROW][C]47[/C][C]81293[/C][C]80319.75[/C][C]973.25[/C][/ROW]
[ROW][C]48[/C][C]216281[/C][C]184378.366666667[/C][C]31902.6333333333[/C][/ROW]
[ROW][C]49[/C][C]223771[/C][C]153086[/C][C]70685[/C][/ROW]
[ROW][C]50[/C][C]160344[/C][C]184378.366666667[/C][C]-24034.3666666667[/C][/ROW]
[ROW][C]51[/C][C]48188[/C][C]40147[/C][C]8041[/C][/ROW]
[ROW][C]52[/C][C]145235[/C][C]184378.366666667[/C][C]-39143.3666666667[/C][/ROW]
[ROW][C]53[/C][C]287839[/C][C]184378.366666667[/C][C]103460.633333333[/C][/ROW]
[ROW][C]54[/C][C]235223[/C][C]153086[/C][C]82137[/C][/ROW]
[ROW][C]55[/C][C]195583[/C][C]184378.366666667[/C][C]11204.6333333333[/C][/ROW]
[ROW][C]56[/C][C]145942[/C][C]115255.5[/C][C]30686.5[/C][/ROW]
[ROW][C]57[/C][C]207309[/C][C]153086[/C][C]54223[/C][/ROW]
[ROW][C]58[/C][C]93764[/C][C]80319.75[/C][C]13444.25[/C][/ROW]
[ROW][C]59[/C][C]151985[/C][C]184378.366666667[/C][C]-32393.3666666667[/C][/ROW]
[ROW][C]60[/C][C]190545[/C][C]153086[/C][C]37459[/C][/ROW]
[ROW][C]61[/C][C]146414[/C][C]153086[/C][C]-6672[/C][/ROW]
[ROW][C]62[/C][C]130794[/C][C]153086[/C][C]-22292[/C][/ROW]
[ROW][C]63[/C][C]124234[/C][C]153086[/C][C]-28852[/C][/ROW]
[ROW][C]64[/C][C]112718[/C][C]115255.5[/C][C]-2537.5[/C][/ROW]
[ROW][C]65[/C][C]160817[/C][C]115255.5[/C][C]45561.5[/C][/ROW]
[ROW][C]66[/C][C]99070[/C][C]153086[/C][C]-54016[/C][/ROW]
[ROW][C]67[/C][C]178653[/C][C]184378.366666667[/C][C]-5725.36666666667[/C][/ROW]
[ROW][C]68[/C][C]138708[/C][C]184378.366666667[/C][C]-45670.3666666667[/C][/ROW]
[ROW][C]69[/C][C]114408[/C][C]153086[/C][C]-38678[/C][/ROW]
[ROW][C]70[/C][C]31970[/C][C]40147[/C][C]-8177[/C][/ROW]
[ROW][C]71[/C][C]224494[/C][C]153086[/C][C]71408[/C][/ROW]
[ROW][C]72[/C][C]123328[/C][C]153086[/C][C]-29758[/C][/ROW]
[ROW][C]73[/C][C]113504[/C][C]184378.366666667[/C][C]-70874.3666666667[/C][/ROW]
[ROW][C]74[/C][C]105932[/C][C]115255.5[/C][C]-9323.5[/C][/ROW]
[ROW][C]75[/C][C]162203[/C][C]246565.857142857[/C][C]-84362.8571428571[/C][/ROW]
[ROW][C]76[/C][C]100098[/C][C]115255.5[/C][C]-15157.5[/C][/ROW]
[ROW][C]77[/C][C]174768[/C][C]184378.366666667[/C][C]-9610.36666666667[/C][/ROW]
[ROW][C]78[/C][C]156908[/C][C]184378.366666667[/C][C]-27470.3666666667[/C][/ROW]
[ROW][C]79[/C][C]77269[/C][C]80319.75[/C][C]-3050.75[/C][/ROW]
[ROW][C]80[/C][C]84971[/C][C]153086[/C][C]-68115[/C][/ROW]
[ROW][C]81[/C][C]80522[/C][C]153086[/C][C]-72564[/C][/ROW]
[ROW][C]82[/C][C]276525[/C][C]153086[/C][C]123439[/C][/ROW]
[ROW][C]83[/C][C]62974[/C][C]80319.75[/C][C]-17345.75[/C][/ROW]
[ROW][C]84[/C][C]120296[/C][C]153086[/C][C]-32790[/C][/ROW]
[ROW][C]85[/C][C]75555[/C][C]115255.5[/C][C]-39700.5[/C][/ROW]
[ROW][C]86[/C][C]157988[/C][C]153086[/C][C]4902[/C][/ROW]
[ROW][C]87[/C][C]224562[/C][C]153086[/C][C]71476[/C][/ROW]
[ROW][C]88[/C][C]115019[/C][C]115255.5[/C][C]-236.5[/C][/ROW]
[ROW][C]89[/C][C]99602[/C][C]153086[/C][C]-53484[/C][/ROW]
[ROW][C]90[/C][C]151804[/C][C]153086[/C][C]-1282[/C][/ROW]
[ROW][C]91[/C][C]146005[/C][C]153086[/C][C]-7081[/C][/ROW]
[ROW][C]92[/C][C]163444[/C][C]184378.366666667[/C][C]-20934.3666666667[/C][/ROW]
[ROW][C]93[/C][C]151517[/C][C]153086[/C][C]-1569[/C][/ROW]
[ROW][C]94[/C][C]133686[/C][C]153086[/C][C]-19400[/C][/ROW]
[ROW][C]95[/C][C]58128[/C][C]80319.75[/C][C]-22191.75[/C][/ROW]
[ROW][C]96[/C][C]234325[/C][C]153086[/C][C]81239[/C][/ROW]
[ROW][C]97[/C][C]195576[/C][C]184378.366666667[/C][C]11197.6333333333[/C][/ROW]
[ROW][C]98[/C][C]19349[/C][C]9636.35714285714[/C][C]9712.64285714286[/C][/ROW]
[ROW][C]99[/C][C]213189[/C][C]153086[/C][C]60103[/C][/ROW]
[ROW][C]100[/C][C]151672[/C][C]153086[/C][C]-1414[/C][/ROW]
[ROW][C]101[/C][C]59117[/C][C]80319.75[/C][C]-21202.75[/C][/ROW]
[ROW][C]102[/C][C]71931[/C][C]153086[/C][C]-81155[/C][/ROW]
[ROW][C]103[/C][C]126653[/C][C]153086[/C][C]-26433[/C][/ROW]
[ROW][C]104[/C][C]113552[/C][C]115255.5[/C][C]-1703.5[/C][/ROW]
[ROW][C]105[/C][C]85338[/C][C]115255.5[/C][C]-29917.5[/C][/ROW]
[ROW][C]106[/C][C]27676[/C][C]40147[/C][C]-12471[/C][/ROW]
[ROW][C]107[/C][C]138522[/C][C]184378.366666667[/C][C]-45856.3666666667[/C][/ROW]
[ROW][C]108[/C][C]122417[/C][C]115255.5[/C][C]7161.5[/C][/ROW]
[ROW][C]109[/C][C]0[/C][C]9636.35714285714[/C][C]-9636.35714285714[/C][/ROW]
[ROW][C]110[/C][C]87592[/C][C]246565.857142857[/C][C]-158973.857142857[/C][/ROW]
[ROW][C]111[/C][C]107205[/C][C]80319.75[/C][C]26885.25[/C][/ROW]
[ROW][C]112[/C][C]144664[/C][C]153086[/C][C]-8422[/C][/ROW]
[ROW][C]113[/C][C]136540[/C][C]153086[/C][C]-16546[/C][/ROW]
[ROW][C]114[/C][C]73645[/C][C]153086[/C][C]-79441[/C][/ROW]
[ROW][C]115[/C][C]3616[/C][C]9636.35714285714[/C][C]-6020.35714285714[/C][/ROW]
[ROW][C]116[/C][C]0[/C][C]9636.35714285714[/C][C]-9636.35714285714[/C][/ROW]
[ROW][C]117[/C][C]175055[/C][C]153086[/C][C]21969[/C][/ROW]
[ROW][C]118[/C][C]144618[/C][C]184378.366666667[/C][C]-39760.3666666667[/C][/ROW]
[ROW][C]119[/C][C]152826[/C][C]153086[/C][C]-260[/C][/ROW]
[ROW][C]120[/C][C]113245[/C][C]153086[/C][C]-39841[/C][/ROW]
[ROW][C]121[/C][C]43410[/C][C]9636.35714285714[/C][C]33773.6428571429[/C][/ROW]
[ROW][C]122[/C][C]175762[/C][C]184378.366666667[/C][C]-8616.36666666667[/C][/ROW]
[ROW][C]123[/C][C]93634[/C][C]115255.5[/C][C]-21621.5[/C][/ROW]
[ROW][C]124[/C][C]117426[/C][C]153086[/C][C]-35660[/C][/ROW]
[ROW][C]125[/C][C]60493[/C][C]40147[/C][C]20346[/C][/ROW]
[ROW][C]126[/C][C]19764[/C][C]9636.35714285714[/C][C]10127.6428571429[/C][/ROW]
[ROW][C]127[/C][C]164062[/C][C]153086[/C][C]10976[/C][/ROW]
[ROW][C]128[/C][C]128144[/C][C]115255.5[/C][C]12888.5[/C][/ROW]
[ROW][C]129[/C][C]154959[/C][C]153086[/C][C]1873[/C][/ROW]
[ROW][C]130[/C][C]11796[/C][C]9636.35714285714[/C][C]2159.64285714286[/C][/ROW]
[ROW][C]131[/C][C]10674[/C][C]9636.35714285714[/C][C]1037.64285714286[/C][/ROW]
[ROW][C]132[/C][C]138547[/C][C]246565.857142857[/C][C]-108018.857142857[/C][/ROW]
[ROW][C]133[/C][C]6836[/C][C]9636.35714285714[/C][C]-2800.35714285714[/C][/ROW]
[ROW][C]134[/C][C]154135[/C][C]153086[/C][C]1049[/C][/ROW]
[ROW][C]135[/C][C]5118[/C][C]9636.35714285714[/C][C]-4518.35714285714[/C][/ROW]
[ROW][C]136[/C][C]40248[/C][C]40147[/C][C]101[/C][/ROW]
[ROW][C]137[/C][C]0[/C][C]9636.35714285714[/C][C]-9636.35714285714[/C][/ROW]
[ROW][C]138[/C][C]120460[/C][C]153086[/C][C]-32626[/C][/ROW]
[ROW][C]139[/C][C]88837[/C][C]80319.75[/C][C]8517.25[/C][/ROW]
[ROW][C]140[/C][C]7131[/C][C]9636.35714285714[/C][C]-2505.35714285714[/C][/ROW]
[ROW][C]141[/C][C]9056[/C][C]40147[/C][C]-31091[/C][/ROW]
[ROW][C]142[/C][C]68916[/C][C]80319.75[/C][C]-11403.75[/C][/ROW]
[ROW][C]143[/C][C]132697[/C][C]153086[/C][C]-20389[/C][/ROW]
[ROW][C]144[/C][C]100681[/C][C]80319.75[/C][C]20361.25[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158311&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158311&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
1158258115255.543002.5
218693015308633844
372159636.35714285714-2421.35714285714
4128162115255.512906.5
5226974184378.36666666742595.6333333333
6500344246565.857142857253778.142857143
717100715308617921
8179835184378.366666667-4543.36666666667
91545811530861495
10278960184378.36666666794581.6333333333
11121844153086-31242
12183086184378.366666667-1292.36666666667
1398796115255.5-16459.5
14209322184378.36666666724943.6333333333
151571251530864039
161545651530861479
17134198184378.366666667-50180.3666666667
18755484014735401
19150680184378.366666667-33698.3666666667
202799740147-12150
216991980319.75-10400.75
22233044246565.857142857-13521.8571428571
2319582015308642734
24127994153086-25092
25145433153086-7653
2617086415308617778
27199655184378.36666666715276.6333333333
28188633184378.3666666674254.63333333333
29354266246565.857142857107700.142857143
3019239915308639313
3116575315308612667
32173721184378.366666667-10657.3666666667
33126739153086-26347
34224762184378.36666666740383.6333333333
35219428184378.36666666735049.6333333333
3609636.35714285714-9636.35714285714
3721726715308664181
3899706115255.5-15549.5
39136733153086-16353
40249965246565.8571428573399.14285714287
41232951184378.36666666748572.6333333333
42143755153086-9331
439573480319.7515414.25
44191416184378.3666666677037.63333333333
45114820153086-38266
461577211530864635
478129380319.75973.25
48216281184378.36666666731902.6333333333
4922377115308670685
50160344184378.366666667-24034.3666666667
5148188401478041
52145235184378.366666667-39143.3666666667
53287839184378.366666667103460.633333333
5423522315308682137
55195583184378.36666666711204.6333333333
56145942115255.530686.5
5720730915308654223
589376480319.7513444.25
59151985184378.366666667-32393.3666666667
6019054515308637459
61146414153086-6672
62130794153086-22292
63124234153086-28852
64112718115255.5-2537.5
65160817115255.545561.5
6699070153086-54016
67178653184378.366666667-5725.36666666667
68138708184378.366666667-45670.3666666667
69114408153086-38678
703197040147-8177
7122449415308671408
72123328153086-29758
73113504184378.366666667-70874.3666666667
74105932115255.5-9323.5
75162203246565.857142857-84362.8571428571
76100098115255.5-15157.5
77174768184378.366666667-9610.36666666667
78156908184378.366666667-27470.3666666667
797726980319.75-3050.75
8084971153086-68115
8180522153086-72564
82276525153086123439
836297480319.75-17345.75
84120296153086-32790
8575555115255.5-39700.5
861579881530864902
8722456215308671476
88115019115255.5-236.5
8999602153086-53484
90151804153086-1282
91146005153086-7081
92163444184378.366666667-20934.3666666667
93151517153086-1569
94133686153086-19400
955812880319.75-22191.75
9623432515308681239
97195576184378.36666666711197.6333333333
98193499636.357142857149712.64285714286
9921318915308660103
100151672153086-1414
1015911780319.75-21202.75
10271931153086-81155
103126653153086-26433
104113552115255.5-1703.5
10585338115255.5-29917.5
1062767640147-12471
107138522184378.366666667-45856.3666666667
108122417115255.57161.5
10909636.35714285714-9636.35714285714
11087592246565.857142857-158973.857142857
11110720580319.7526885.25
112144664153086-8422
113136540153086-16546
11473645153086-79441
11536169636.35714285714-6020.35714285714
11609636.35714285714-9636.35714285714
11717505515308621969
118144618184378.366666667-39760.3666666667
119152826153086-260
120113245153086-39841
121434109636.3571428571433773.6428571429
122175762184378.366666667-8616.36666666667
12393634115255.5-21621.5
124117426153086-35660
125604934014720346
126197649636.3571428571410127.6428571429
12716406215308610976
128128144115255.512888.5
1291549591530861873
130117969636.357142857142159.64285714286
131106749636.357142857141037.64285714286
132138547246565.857142857-108018.857142857
13368369636.35714285714-2800.35714285714
1341541351530861049
13551189636.35714285714-4518.35714285714
1364024840147101
13709636.35714285714-9636.35714285714
138120460153086-32626
1398883780319.758517.25
14071319636.35714285714-2505.35714285714
141905640147-31091
1426891680319.75-11403.75
143132697153086-20389
14410068180319.7520361.25



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