Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_regression_trees1dm.wasp
Title produced by softwareRecursive Partitioning (Regression Trees)
Date of computationThu, 17 May 2012 08:14:09 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/May/17/t13372568767bz5s7qc7awkn3d.htm/, Retrieved Mon, 29 Apr 2024 18:41:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=166602, Retrieved Mon, 29 Apr 2024 18:41:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Recursive Partitioning (Regression Trees)] [] [2012-05-01 12:45:50] [0cacbd6f25ea662f229a505efea21410]
- R       [Recursive Partitioning (Regression Trees)] [Assignment 4 - Pr...] [2012-05-17 12:14:09] [1eaf8805ffdd770d1a6587425a1bf41e] [Current]
Feedback Forum

Post a new message




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

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







Goodness of Fit
Correlation0.9165
R-squared0.84
RMSE7.1948

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.9165[/C][/ROW]
[ROW][C]R-squared[/C][C]0.84[/C][/ROW]
[ROW][C]RMSE[/C][C]7.1948[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=166602&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=166602&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.9165
R-squared0.84
RMSE7.1948







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
1119120-1
2143140.52.5
3141140.50.5
4137129.6538461538467.34615384615384
5141140.50.5
6109119.44-10.44
7105119.44-14.44
8111102.48.6
9153140.512.5
109992.56256.4375
11134126.17.9
12122119.442.56
13124126.1-2.09999999999999
14119121.142857142857-2.14285714285714
159192.8-1.8
16122126.1-4.09999999999999
17136129.6538461538466.34615384615384
18131129.6538461538461.34615384615384
19129129.653846153846-0.65384615384616
20135140.5-5.5
21120113.6153846153856.38461538461539
22119126.1-7.1
23119119.44-0.439999999999998
24125129.653846153846-4.65384615384616
25118119.44-1.44
26138126.111.9
271231203
28114119.44-5.44
29134129.6538461538464.34615384615384
309792.56254.4375
31130126.13.90000000000001
32112111.7307692307690.269230769230774
331261206
34107102.1428571428574.85714285714286
35106111.730769230769-5.73076923076923
36110119.44-9.44
37137140.5-3.5
38130126.13.90000000000001
39105102.42.59999999999999
40106102.43.59999999999999
41144128.71428571428615.2857142857143
42129129.653846153846-0.65384615384616
43140128.71428571428611.2857142857143
44112111.7307692307690.269230769230774
45108113.615384615385-5.61538461538461
46113116.4-3.40000000000001
47116121.142857142857-5.14285714285714
48116113.6153846153852.38461538461539
49135129.6538461538465.34615384615384
509592.82.2
51101102.4-1.40000000000001
52122126.1-4.09999999999999
531231203
54126121.1428571428574.85714285714286
55121121.142857142857-0.142857142857139
56106102.43.59999999999999
57100111.730769230769-11.7307692307692
58126129.653846153846-3.65384615384616
59132129.6538461538462.34615384615384
608778.3758.625
61117120-3
6210092.56257.4375
63128129.653846153846-1.65384615384616
64140140.5-0.5
65117120-3
66132129.6538461538462.34615384615384
67107113.615384615385-6.61538461538461
68133140.5-7.5
698078.3751.625
70133129.6538461538463.34615384615384
71119119.44-0.439999999999998
72132129.6538461538462.34615384615384
73142140.51.5
746978.375-9.375
75141140.50.5
761251205
779592.56252.4375
78119111.7307692307697.26923076923077
79136140.5-4.5
80108113.615384615385-5.61538461538461
81112120-8
82115120-5
83100102.142857142857-2.14285714285714
848278.3753.625
85122121.1428571428570.857142857142861
86142140.51.5
87147140.56.5
88132136.454545454545-4.45454545454547
8998102.4-4.40000000000001
906792.5625-25.5625
91130119.4410.56
929192.5625-1.5625
93124116.47.6
94122126.1-4.09999999999999
9596111.730769230769-15.7307692307692
96127129.653846153846-2.65384615384616
97124129.653846153846-5.65384615384616
98127128.714285714286-1.71428571428572
99144136.4545454545457.54545454545453
100134129.6538461538464.34615384615384
101108113.615384615385-5.61538461538461
10213012010
103151140.510.5
104113119.44-6.44
1058178.3752.625
106101102.4-1.40000000000001
107109102.46.6
108126126.1-0.0999999999999943
109134140.5-6.5
110128129.653846153846-1.65384615384616
111128119.448.56
112125119.445.56
1138878.3759.625
114117113.6153846153853.38461538461539
115112113.615384615385-1.61538461538461
11697111.730769230769-14.7307692307692
11799113.615384615385-14.6153846153846
11896102.142857142857-6.14285714285714
119105102.42.59999999999999
1201211201
12195128.714285714286-33.7142857142857
122131128.7142857142862.28571428571428
123122126.1-4.09999999999999
12497102.142857142857-5.14285714285714
12510692.813.2
126119119.44-0.439999999999998
1271241204
128126129.653846153846-3.65384615384616
1299992.56256.4375
130126116.49.6
131151140.510.5
132118119.44-1.44
1339592.82.2
134138140.5-2.5
135101102.142857142857-1.14285714285714
136121121.142857142857-0.142857142857139
137134129.6538461538464.34615384615384
138130128.7142857142861.28571428571428
139121119.441.56
140130111.73076923076918.2692307692308
141131140.5-9.5
142117111.7307692307695.26923076923077
1438692.5625-6.5625
144126126.1-0.0999999999999943
145122126.1-4.09999999999999
146110111.730769230769-1.73076923076923
147129129.653846153846-0.65384615384616
1488792.5625-5.5625
149150136.45454545454513.5454545454545
150109111.730769230769-2.73076923076923
151137140.5-3.5
152111111.730769230769-0.730769230769226
153138136.4545454545451.54545454545453
154123121.1428571428571.85714285714286
1558292.8-10.8
156120119.440.560000000000002
157118119.44-1.44
1589992.56256.4375
1596978.375-9.375
160126119.446.56
161119126.1-7.1
162116116.4-0.400000000000006
163101111.730769230769-10.7307692307692
164132111.73076923076920.2692307692308
1658592.5625-7.5625
166128126.11.90000000000001
1678278.3753.625
168128111.73076923076916.2692307692308
169143136.4545454545456.54545454545453
170125126.1-1.09999999999999
171147136.45454545454510.5454545454545
172111111.730769230769-0.730769230769226
173108113.615384615385-5.61538461538461
174122129.653846153846-7.65384615384616
1758492.5625-8.5625
176117119.44-2.44
177120116.43.59999999999999
1787778.375-1.375
179100102.4-2.40000000000001
180134128.7142857142865.28571428571428
181123136.454545454545-13.4545454545455
182123111.73076923076911.2692307692308
1831231203
184128126.11.90000000000001
185108111.730769230769-3.73076923076923
186118120-2
187107111.730769230769-4.73076923076923
188105102.42.59999999999999
189111111.730769230769-0.730769230769226
190112102.1428571428579.85714285714286
191121119.441.56
1929292.5625-0.5625
19397102.4-5.40000000000001
1949992.56256.4375
195111116.4-5.40000000000001
1969392.80.200000000000003
197121119.441.56
1988678.3757.625
199125129.653846153846-4.65384615384616
2009692.56253.4375
201126113.61538461538512.3846153846154
202108111.730769230769-3.73076923076923
2039992.86.2
204137140.5-3.5
20510592.562512.4375
2066978.375-9.375
2078278.3753.625
208115116.4-1.40000000000001
20996102.4-6.4
2109178.37512.625
211128126.11.90000000000001
2129192.8-1.8
21392111.730769230769-19.7307692307692
2147878.375-0.375
215116120-4
216125129.653846153846-4.65384615384616
217113111.7307692307691.26923076923077
218130126.13.90000000000001
219131129.6538461538461.34615384615384
220111116.4-5.40000000000001
221126119.446.56
2221221202
223130136.454545454545-6.45454545454547
224114116.4-2.40000000000001
225102102.142857142857-0.142857142857139
226121119.441.56
227122119.442.56
2288178.3752.625
229129136.454545454545-7.45454545454547
230124119.444.56
2318992.8-3.8
232139136.4545454545452.54545454545453
23399102.4-3.40000000000001
234127129.653846153846-2.65384615384616
235123111.73076923076911.2692307692308
2368792.8-5.8
237129113.61538461538515.3846153846154
23897102.4-5.40000000000001
239119113.6153846153855.38461538461539
240126136.454545454545-10.4545454545455
241104111.730769230769-7.73076923076923
242109120-11
243127126.10.900000000000006
2445278.375-26.375
245125111.73076923076913.2692307692308
246114116.4-2.40000000000001

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 119 & 120 & -1 \tabularnewline
2 & 143 & 140.5 & 2.5 \tabularnewline
3 & 141 & 140.5 & 0.5 \tabularnewline
4 & 137 & 129.653846153846 & 7.34615384615384 \tabularnewline
5 & 141 & 140.5 & 0.5 \tabularnewline
6 & 109 & 119.44 & -10.44 \tabularnewline
7 & 105 & 119.44 & -14.44 \tabularnewline
8 & 111 & 102.4 & 8.6 \tabularnewline
9 & 153 & 140.5 & 12.5 \tabularnewline
10 & 99 & 92.5625 & 6.4375 \tabularnewline
11 & 134 & 126.1 & 7.9 \tabularnewline
12 & 122 & 119.44 & 2.56 \tabularnewline
13 & 124 & 126.1 & -2.09999999999999 \tabularnewline
14 & 119 & 121.142857142857 & -2.14285714285714 \tabularnewline
15 & 91 & 92.8 & -1.8 \tabularnewline
16 & 122 & 126.1 & -4.09999999999999 \tabularnewline
17 & 136 & 129.653846153846 & 6.34615384615384 \tabularnewline
18 & 131 & 129.653846153846 & 1.34615384615384 \tabularnewline
19 & 129 & 129.653846153846 & -0.65384615384616 \tabularnewline
20 & 135 & 140.5 & -5.5 \tabularnewline
21 & 120 & 113.615384615385 & 6.38461538461539 \tabularnewline
22 & 119 & 126.1 & -7.1 \tabularnewline
23 & 119 & 119.44 & -0.439999999999998 \tabularnewline
24 & 125 & 129.653846153846 & -4.65384615384616 \tabularnewline
25 & 118 & 119.44 & -1.44 \tabularnewline
26 & 138 & 126.1 & 11.9 \tabularnewline
27 & 123 & 120 & 3 \tabularnewline
28 & 114 & 119.44 & -5.44 \tabularnewline
29 & 134 & 129.653846153846 & 4.34615384615384 \tabularnewline
30 & 97 & 92.5625 & 4.4375 \tabularnewline
31 & 130 & 126.1 & 3.90000000000001 \tabularnewline
32 & 112 & 111.730769230769 & 0.269230769230774 \tabularnewline
33 & 126 & 120 & 6 \tabularnewline
34 & 107 & 102.142857142857 & 4.85714285714286 \tabularnewline
35 & 106 & 111.730769230769 & -5.73076923076923 \tabularnewline
36 & 110 & 119.44 & -9.44 \tabularnewline
37 & 137 & 140.5 & -3.5 \tabularnewline
38 & 130 & 126.1 & 3.90000000000001 \tabularnewline
39 & 105 & 102.4 & 2.59999999999999 \tabularnewline
40 & 106 & 102.4 & 3.59999999999999 \tabularnewline
41 & 144 & 128.714285714286 & 15.2857142857143 \tabularnewline
42 & 129 & 129.653846153846 & -0.65384615384616 \tabularnewline
43 & 140 & 128.714285714286 & 11.2857142857143 \tabularnewline
44 & 112 & 111.730769230769 & 0.269230769230774 \tabularnewline
45 & 108 & 113.615384615385 & -5.61538461538461 \tabularnewline
46 & 113 & 116.4 & -3.40000000000001 \tabularnewline
47 & 116 & 121.142857142857 & -5.14285714285714 \tabularnewline
48 & 116 & 113.615384615385 & 2.38461538461539 \tabularnewline
49 & 135 & 129.653846153846 & 5.34615384615384 \tabularnewline
50 & 95 & 92.8 & 2.2 \tabularnewline
51 & 101 & 102.4 & -1.40000000000001 \tabularnewline
52 & 122 & 126.1 & -4.09999999999999 \tabularnewline
53 & 123 & 120 & 3 \tabularnewline
54 & 126 & 121.142857142857 & 4.85714285714286 \tabularnewline
55 & 121 & 121.142857142857 & -0.142857142857139 \tabularnewline
56 & 106 & 102.4 & 3.59999999999999 \tabularnewline
57 & 100 & 111.730769230769 & -11.7307692307692 \tabularnewline
58 & 126 & 129.653846153846 & -3.65384615384616 \tabularnewline
59 & 132 & 129.653846153846 & 2.34615384615384 \tabularnewline
60 & 87 & 78.375 & 8.625 \tabularnewline
61 & 117 & 120 & -3 \tabularnewline
62 & 100 & 92.5625 & 7.4375 \tabularnewline
63 & 128 & 129.653846153846 & -1.65384615384616 \tabularnewline
64 & 140 & 140.5 & -0.5 \tabularnewline
65 & 117 & 120 & -3 \tabularnewline
66 & 132 & 129.653846153846 & 2.34615384615384 \tabularnewline
67 & 107 & 113.615384615385 & -6.61538461538461 \tabularnewline
68 & 133 & 140.5 & -7.5 \tabularnewline
69 & 80 & 78.375 & 1.625 \tabularnewline
70 & 133 & 129.653846153846 & 3.34615384615384 \tabularnewline
71 & 119 & 119.44 & -0.439999999999998 \tabularnewline
72 & 132 & 129.653846153846 & 2.34615384615384 \tabularnewline
73 & 142 & 140.5 & 1.5 \tabularnewline
74 & 69 & 78.375 & -9.375 \tabularnewline
75 & 141 & 140.5 & 0.5 \tabularnewline
76 & 125 & 120 & 5 \tabularnewline
77 & 95 & 92.5625 & 2.4375 \tabularnewline
78 & 119 & 111.730769230769 & 7.26923076923077 \tabularnewline
79 & 136 & 140.5 & -4.5 \tabularnewline
80 & 108 & 113.615384615385 & -5.61538461538461 \tabularnewline
81 & 112 & 120 & -8 \tabularnewline
82 & 115 & 120 & -5 \tabularnewline
83 & 100 & 102.142857142857 & -2.14285714285714 \tabularnewline
84 & 82 & 78.375 & 3.625 \tabularnewline
85 & 122 & 121.142857142857 & 0.857142857142861 \tabularnewline
86 & 142 & 140.5 & 1.5 \tabularnewline
87 & 147 & 140.5 & 6.5 \tabularnewline
88 & 132 & 136.454545454545 & -4.45454545454547 \tabularnewline
89 & 98 & 102.4 & -4.40000000000001 \tabularnewline
90 & 67 & 92.5625 & -25.5625 \tabularnewline
91 & 130 & 119.44 & 10.56 \tabularnewline
92 & 91 & 92.5625 & -1.5625 \tabularnewline
93 & 124 & 116.4 & 7.6 \tabularnewline
94 & 122 & 126.1 & -4.09999999999999 \tabularnewline
95 & 96 & 111.730769230769 & -15.7307692307692 \tabularnewline
96 & 127 & 129.653846153846 & -2.65384615384616 \tabularnewline
97 & 124 & 129.653846153846 & -5.65384615384616 \tabularnewline
98 & 127 & 128.714285714286 & -1.71428571428572 \tabularnewline
99 & 144 & 136.454545454545 & 7.54545454545453 \tabularnewline
100 & 134 & 129.653846153846 & 4.34615384615384 \tabularnewline
101 & 108 & 113.615384615385 & -5.61538461538461 \tabularnewline
102 & 130 & 120 & 10 \tabularnewline
103 & 151 & 140.5 & 10.5 \tabularnewline
104 & 113 & 119.44 & -6.44 \tabularnewline
105 & 81 & 78.375 & 2.625 \tabularnewline
106 & 101 & 102.4 & -1.40000000000001 \tabularnewline
107 & 109 & 102.4 & 6.6 \tabularnewline
108 & 126 & 126.1 & -0.0999999999999943 \tabularnewline
109 & 134 & 140.5 & -6.5 \tabularnewline
110 & 128 & 129.653846153846 & -1.65384615384616 \tabularnewline
111 & 128 & 119.44 & 8.56 \tabularnewline
112 & 125 & 119.44 & 5.56 \tabularnewline
113 & 88 & 78.375 & 9.625 \tabularnewline
114 & 117 & 113.615384615385 & 3.38461538461539 \tabularnewline
115 & 112 & 113.615384615385 & -1.61538461538461 \tabularnewline
116 & 97 & 111.730769230769 & -14.7307692307692 \tabularnewline
117 & 99 & 113.615384615385 & -14.6153846153846 \tabularnewline
118 & 96 & 102.142857142857 & -6.14285714285714 \tabularnewline
119 & 105 & 102.4 & 2.59999999999999 \tabularnewline
120 & 121 & 120 & 1 \tabularnewline
121 & 95 & 128.714285714286 & -33.7142857142857 \tabularnewline
122 & 131 & 128.714285714286 & 2.28571428571428 \tabularnewline
123 & 122 & 126.1 & -4.09999999999999 \tabularnewline
124 & 97 & 102.142857142857 & -5.14285714285714 \tabularnewline
125 & 106 & 92.8 & 13.2 \tabularnewline
126 & 119 & 119.44 & -0.439999999999998 \tabularnewline
127 & 124 & 120 & 4 \tabularnewline
128 & 126 & 129.653846153846 & -3.65384615384616 \tabularnewline
129 & 99 & 92.5625 & 6.4375 \tabularnewline
130 & 126 & 116.4 & 9.6 \tabularnewline
131 & 151 & 140.5 & 10.5 \tabularnewline
132 & 118 & 119.44 & -1.44 \tabularnewline
133 & 95 & 92.8 & 2.2 \tabularnewline
134 & 138 & 140.5 & -2.5 \tabularnewline
135 & 101 & 102.142857142857 & -1.14285714285714 \tabularnewline
136 & 121 & 121.142857142857 & -0.142857142857139 \tabularnewline
137 & 134 & 129.653846153846 & 4.34615384615384 \tabularnewline
138 & 130 & 128.714285714286 & 1.28571428571428 \tabularnewline
139 & 121 & 119.44 & 1.56 \tabularnewline
140 & 130 & 111.730769230769 & 18.2692307692308 \tabularnewline
141 & 131 & 140.5 & -9.5 \tabularnewline
142 & 117 & 111.730769230769 & 5.26923076923077 \tabularnewline
143 & 86 & 92.5625 & -6.5625 \tabularnewline
144 & 126 & 126.1 & -0.0999999999999943 \tabularnewline
145 & 122 & 126.1 & -4.09999999999999 \tabularnewline
146 & 110 & 111.730769230769 & -1.73076923076923 \tabularnewline
147 & 129 & 129.653846153846 & -0.65384615384616 \tabularnewline
148 & 87 & 92.5625 & -5.5625 \tabularnewline
149 & 150 & 136.454545454545 & 13.5454545454545 \tabularnewline
150 & 109 & 111.730769230769 & -2.73076923076923 \tabularnewline
151 & 137 & 140.5 & -3.5 \tabularnewline
152 & 111 & 111.730769230769 & -0.730769230769226 \tabularnewline
153 & 138 & 136.454545454545 & 1.54545454545453 \tabularnewline
154 & 123 & 121.142857142857 & 1.85714285714286 \tabularnewline
155 & 82 & 92.8 & -10.8 \tabularnewline
156 & 120 & 119.44 & 0.560000000000002 \tabularnewline
157 & 118 & 119.44 & -1.44 \tabularnewline
158 & 99 & 92.5625 & 6.4375 \tabularnewline
159 & 69 & 78.375 & -9.375 \tabularnewline
160 & 126 & 119.44 & 6.56 \tabularnewline
161 & 119 & 126.1 & -7.1 \tabularnewline
162 & 116 & 116.4 & -0.400000000000006 \tabularnewline
163 & 101 & 111.730769230769 & -10.7307692307692 \tabularnewline
164 & 132 & 111.730769230769 & 20.2692307692308 \tabularnewline
165 & 85 & 92.5625 & -7.5625 \tabularnewline
166 & 128 & 126.1 & 1.90000000000001 \tabularnewline
167 & 82 & 78.375 & 3.625 \tabularnewline
168 & 128 & 111.730769230769 & 16.2692307692308 \tabularnewline
169 & 143 & 136.454545454545 & 6.54545454545453 \tabularnewline
170 & 125 & 126.1 & -1.09999999999999 \tabularnewline
171 & 147 & 136.454545454545 & 10.5454545454545 \tabularnewline
172 & 111 & 111.730769230769 & -0.730769230769226 \tabularnewline
173 & 108 & 113.615384615385 & -5.61538461538461 \tabularnewline
174 & 122 & 129.653846153846 & -7.65384615384616 \tabularnewline
175 & 84 & 92.5625 & -8.5625 \tabularnewline
176 & 117 & 119.44 & -2.44 \tabularnewline
177 & 120 & 116.4 & 3.59999999999999 \tabularnewline
178 & 77 & 78.375 & -1.375 \tabularnewline
179 & 100 & 102.4 & -2.40000000000001 \tabularnewline
180 & 134 & 128.714285714286 & 5.28571428571428 \tabularnewline
181 & 123 & 136.454545454545 & -13.4545454545455 \tabularnewline
182 & 123 & 111.730769230769 & 11.2692307692308 \tabularnewline
183 & 123 & 120 & 3 \tabularnewline
184 & 128 & 126.1 & 1.90000000000001 \tabularnewline
185 & 108 & 111.730769230769 & -3.73076923076923 \tabularnewline
186 & 118 & 120 & -2 \tabularnewline
187 & 107 & 111.730769230769 & -4.73076923076923 \tabularnewline
188 & 105 & 102.4 & 2.59999999999999 \tabularnewline
189 & 111 & 111.730769230769 & -0.730769230769226 \tabularnewline
190 & 112 & 102.142857142857 & 9.85714285714286 \tabularnewline
191 & 121 & 119.44 & 1.56 \tabularnewline
192 & 92 & 92.5625 & -0.5625 \tabularnewline
193 & 97 & 102.4 & -5.40000000000001 \tabularnewline
194 & 99 & 92.5625 & 6.4375 \tabularnewline
195 & 111 & 116.4 & -5.40000000000001 \tabularnewline
196 & 93 & 92.8 & 0.200000000000003 \tabularnewline
197 & 121 & 119.44 & 1.56 \tabularnewline
198 & 86 & 78.375 & 7.625 \tabularnewline
199 & 125 & 129.653846153846 & -4.65384615384616 \tabularnewline
200 & 96 & 92.5625 & 3.4375 \tabularnewline
201 & 126 & 113.615384615385 & 12.3846153846154 \tabularnewline
202 & 108 & 111.730769230769 & -3.73076923076923 \tabularnewline
203 & 99 & 92.8 & 6.2 \tabularnewline
204 & 137 & 140.5 & -3.5 \tabularnewline
205 & 105 & 92.5625 & 12.4375 \tabularnewline
206 & 69 & 78.375 & -9.375 \tabularnewline
207 & 82 & 78.375 & 3.625 \tabularnewline
208 & 115 & 116.4 & -1.40000000000001 \tabularnewline
209 & 96 & 102.4 & -6.4 \tabularnewline
210 & 91 & 78.375 & 12.625 \tabularnewline
211 & 128 & 126.1 & 1.90000000000001 \tabularnewline
212 & 91 & 92.8 & -1.8 \tabularnewline
213 & 92 & 111.730769230769 & -19.7307692307692 \tabularnewline
214 & 78 & 78.375 & -0.375 \tabularnewline
215 & 116 & 120 & -4 \tabularnewline
216 & 125 & 129.653846153846 & -4.65384615384616 \tabularnewline
217 & 113 & 111.730769230769 & 1.26923076923077 \tabularnewline
218 & 130 & 126.1 & 3.90000000000001 \tabularnewline
219 & 131 & 129.653846153846 & 1.34615384615384 \tabularnewline
220 & 111 & 116.4 & -5.40000000000001 \tabularnewline
221 & 126 & 119.44 & 6.56 \tabularnewline
222 & 122 & 120 & 2 \tabularnewline
223 & 130 & 136.454545454545 & -6.45454545454547 \tabularnewline
224 & 114 & 116.4 & -2.40000000000001 \tabularnewline
225 & 102 & 102.142857142857 & -0.142857142857139 \tabularnewline
226 & 121 & 119.44 & 1.56 \tabularnewline
227 & 122 & 119.44 & 2.56 \tabularnewline
228 & 81 & 78.375 & 2.625 \tabularnewline
229 & 129 & 136.454545454545 & -7.45454545454547 \tabularnewline
230 & 124 & 119.44 & 4.56 \tabularnewline
231 & 89 & 92.8 & -3.8 \tabularnewline
232 & 139 & 136.454545454545 & 2.54545454545453 \tabularnewline
233 & 99 & 102.4 & -3.40000000000001 \tabularnewline
234 & 127 & 129.653846153846 & -2.65384615384616 \tabularnewline
235 & 123 & 111.730769230769 & 11.2692307692308 \tabularnewline
236 & 87 & 92.8 & -5.8 \tabularnewline
237 & 129 & 113.615384615385 & 15.3846153846154 \tabularnewline
238 & 97 & 102.4 & -5.40000000000001 \tabularnewline
239 & 119 & 113.615384615385 & 5.38461538461539 \tabularnewline
240 & 126 & 136.454545454545 & -10.4545454545455 \tabularnewline
241 & 104 & 111.730769230769 & -7.73076923076923 \tabularnewline
242 & 109 & 120 & -11 \tabularnewline
243 & 127 & 126.1 & 0.900000000000006 \tabularnewline
244 & 52 & 78.375 & -26.375 \tabularnewline
245 & 125 & 111.730769230769 & 13.2692307692308 \tabularnewline
246 & 114 & 116.4 & -2.40000000000001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=166602&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]119[/C][C]120[/C][C]-1[/C][/ROW]
[ROW][C]2[/C][C]143[/C][C]140.5[/C][C]2.5[/C][/ROW]
[ROW][C]3[/C][C]141[/C][C]140.5[/C][C]0.5[/C][/ROW]
[ROW][C]4[/C][C]137[/C][C]129.653846153846[/C][C]7.34615384615384[/C][/ROW]
[ROW][C]5[/C][C]141[/C][C]140.5[/C][C]0.5[/C][/ROW]
[ROW][C]6[/C][C]109[/C][C]119.44[/C][C]-10.44[/C][/ROW]
[ROW][C]7[/C][C]105[/C][C]119.44[/C][C]-14.44[/C][/ROW]
[ROW][C]8[/C][C]111[/C][C]102.4[/C][C]8.6[/C][/ROW]
[ROW][C]9[/C][C]153[/C][C]140.5[/C][C]12.5[/C][/ROW]
[ROW][C]10[/C][C]99[/C][C]92.5625[/C][C]6.4375[/C][/ROW]
[ROW][C]11[/C][C]134[/C][C]126.1[/C][C]7.9[/C][/ROW]
[ROW][C]12[/C][C]122[/C][C]119.44[/C][C]2.56[/C][/ROW]
[ROW][C]13[/C][C]124[/C][C]126.1[/C][C]-2.09999999999999[/C][/ROW]
[ROW][C]14[/C][C]119[/C][C]121.142857142857[/C][C]-2.14285714285714[/C][/ROW]
[ROW][C]15[/C][C]91[/C][C]92.8[/C][C]-1.8[/C][/ROW]
[ROW][C]16[/C][C]122[/C][C]126.1[/C][C]-4.09999999999999[/C][/ROW]
[ROW][C]17[/C][C]136[/C][C]129.653846153846[/C][C]6.34615384615384[/C][/ROW]
[ROW][C]18[/C][C]131[/C][C]129.653846153846[/C][C]1.34615384615384[/C][/ROW]
[ROW][C]19[/C][C]129[/C][C]129.653846153846[/C][C]-0.65384615384616[/C][/ROW]
[ROW][C]20[/C][C]135[/C][C]140.5[/C][C]-5.5[/C][/ROW]
[ROW][C]21[/C][C]120[/C][C]113.615384615385[/C][C]6.38461538461539[/C][/ROW]
[ROW][C]22[/C][C]119[/C][C]126.1[/C][C]-7.1[/C][/ROW]
[ROW][C]23[/C][C]119[/C][C]119.44[/C][C]-0.439999999999998[/C][/ROW]
[ROW][C]24[/C][C]125[/C][C]129.653846153846[/C][C]-4.65384615384616[/C][/ROW]
[ROW][C]25[/C][C]118[/C][C]119.44[/C][C]-1.44[/C][/ROW]
[ROW][C]26[/C][C]138[/C][C]126.1[/C][C]11.9[/C][/ROW]
[ROW][C]27[/C][C]123[/C][C]120[/C][C]3[/C][/ROW]
[ROW][C]28[/C][C]114[/C][C]119.44[/C][C]-5.44[/C][/ROW]
[ROW][C]29[/C][C]134[/C][C]129.653846153846[/C][C]4.34615384615384[/C][/ROW]
[ROW][C]30[/C][C]97[/C][C]92.5625[/C][C]4.4375[/C][/ROW]
[ROW][C]31[/C][C]130[/C][C]126.1[/C][C]3.90000000000001[/C][/ROW]
[ROW][C]32[/C][C]112[/C][C]111.730769230769[/C][C]0.269230769230774[/C][/ROW]
[ROW][C]33[/C][C]126[/C][C]120[/C][C]6[/C][/ROW]
[ROW][C]34[/C][C]107[/C][C]102.142857142857[/C][C]4.85714285714286[/C][/ROW]
[ROW][C]35[/C][C]106[/C][C]111.730769230769[/C][C]-5.73076923076923[/C][/ROW]
[ROW][C]36[/C][C]110[/C][C]119.44[/C][C]-9.44[/C][/ROW]
[ROW][C]37[/C][C]137[/C][C]140.5[/C][C]-3.5[/C][/ROW]
[ROW][C]38[/C][C]130[/C][C]126.1[/C][C]3.90000000000001[/C][/ROW]
[ROW][C]39[/C][C]105[/C][C]102.4[/C][C]2.59999999999999[/C][/ROW]
[ROW][C]40[/C][C]106[/C][C]102.4[/C][C]3.59999999999999[/C][/ROW]
[ROW][C]41[/C][C]144[/C][C]128.714285714286[/C][C]15.2857142857143[/C][/ROW]
[ROW][C]42[/C][C]129[/C][C]129.653846153846[/C][C]-0.65384615384616[/C][/ROW]
[ROW][C]43[/C][C]140[/C][C]128.714285714286[/C][C]11.2857142857143[/C][/ROW]
[ROW][C]44[/C][C]112[/C][C]111.730769230769[/C][C]0.269230769230774[/C][/ROW]
[ROW][C]45[/C][C]108[/C][C]113.615384615385[/C][C]-5.61538461538461[/C][/ROW]
[ROW][C]46[/C][C]113[/C][C]116.4[/C][C]-3.40000000000001[/C][/ROW]
[ROW][C]47[/C][C]116[/C][C]121.142857142857[/C][C]-5.14285714285714[/C][/ROW]
[ROW][C]48[/C][C]116[/C][C]113.615384615385[/C][C]2.38461538461539[/C][/ROW]
[ROW][C]49[/C][C]135[/C][C]129.653846153846[/C][C]5.34615384615384[/C][/ROW]
[ROW][C]50[/C][C]95[/C][C]92.8[/C][C]2.2[/C][/ROW]
[ROW][C]51[/C][C]101[/C][C]102.4[/C][C]-1.40000000000001[/C][/ROW]
[ROW][C]52[/C][C]122[/C][C]126.1[/C][C]-4.09999999999999[/C][/ROW]
[ROW][C]53[/C][C]123[/C][C]120[/C][C]3[/C][/ROW]
[ROW][C]54[/C][C]126[/C][C]121.142857142857[/C][C]4.85714285714286[/C][/ROW]
[ROW][C]55[/C][C]121[/C][C]121.142857142857[/C][C]-0.142857142857139[/C][/ROW]
[ROW][C]56[/C][C]106[/C][C]102.4[/C][C]3.59999999999999[/C][/ROW]
[ROW][C]57[/C][C]100[/C][C]111.730769230769[/C][C]-11.7307692307692[/C][/ROW]
[ROW][C]58[/C][C]126[/C][C]129.653846153846[/C][C]-3.65384615384616[/C][/ROW]
[ROW][C]59[/C][C]132[/C][C]129.653846153846[/C][C]2.34615384615384[/C][/ROW]
[ROW][C]60[/C][C]87[/C][C]78.375[/C][C]8.625[/C][/ROW]
[ROW][C]61[/C][C]117[/C][C]120[/C][C]-3[/C][/ROW]
[ROW][C]62[/C][C]100[/C][C]92.5625[/C][C]7.4375[/C][/ROW]
[ROW][C]63[/C][C]128[/C][C]129.653846153846[/C][C]-1.65384615384616[/C][/ROW]
[ROW][C]64[/C][C]140[/C][C]140.5[/C][C]-0.5[/C][/ROW]
[ROW][C]65[/C][C]117[/C][C]120[/C][C]-3[/C][/ROW]
[ROW][C]66[/C][C]132[/C][C]129.653846153846[/C][C]2.34615384615384[/C][/ROW]
[ROW][C]67[/C][C]107[/C][C]113.615384615385[/C][C]-6.61538461538461[/C][/ROW]
[ROW][C]68[/C][C]133[/C][C]140.5[/C][C]-7.5[/C][/ROW]
[ROW][C]69[/C][C]80[/C][C]78.375[/C][C]1.625[/C][/ROW]
[ROW][C]70[/C][C]133[/C][C]129.653846153846[/C][C]3.34615384615384[/C][/ROW]
[ROW][C]71[/C][C]119[/C][C]119.44[/C][C]-0.439999999999998[/C][/ROW]
[ROW][C]72[/C][C]132[/C][C]129.653846153846[/C][C]2.34615384615384[/C][/ROW]
[ROW][C]73[/C][C]142[/C][C]140.5[/C][C]1.5[/C][/ROW]
[ROW][C]74[/C][C]69[/C][C]78.375[/C][C]-9.375[/C][/ROW]
[ROW][C]75[/C][C]141[/C][C]140.5[/C][C]0.5[/C][/ROW]
[ROW][C]76[/C][C]125[/C][C]120[/C][C]5[/C][/ROW]
[ROW][C]77[/C][C]95[/C][C]92.5625[/C][C]2.4375[/C][/ROW]
[ROW][C]78[/C][C]119[/C][C]111.730769230769[/C][C]7.26923076923077[/C][/ROW]
[ROW][C]79[/C][C]136[/C][C]140.5[/C][C]-4.5[/C][/ROW]
[ROW][C]80[/C][C]108[/C][C]113.615384615385[/C][C]-5.61538461538461[/C][/ROW]
[ROW][C]81[/C][C]112[/C][C]120[/C][C]-8[/C][/ROW]
[ROW][C]82[/C][C]115[/C][C]120[/C][C]-5[/C][/ROW]
[ROW][C]83[/C][C]100[/C][C]102.142857142857[/C][C]-2.14285714285714[/C][/ROW]
[ROW][C]84[/C][C]82[/C][C]78.375[/C][C]3.625[/C][/ROW]
[ROW][C]85[/C][C]122[/C][C]121.142857142857[/C][C]0.857142857142861[/C][/ROW]
[ROW][C]86[/C][C]142[/C][C]140.5[/C][C]1.5[/C][/ROW]
[ROW][C]87[/C][C]147[/C][C]140.5[/C][C]6.5[/C][/ROW]
[ROW][C]88[/C][C]132[/C][C]136.454545454545[/C][C]-4.45454545454547[/C][/ROW]
[ROW][C]89[/C][C]98[/C][C]102.4[/C][C]-4.40000000000001[/C][/ROW]
[ROW][C]90[/C][C]67[/C][C]92.5625[/C][C]-25.5625[/C][/ROW]
[ROW][C]91[/C][C]130[/C][C]119.44[/C][C]10.56[/C][/ROW]
[ROW][C]92[/C][C]91[/C][C]92.5625[/C][C]-1.5625[/C][/ROW]
[ROW][C]93[/C][C]124[/C][C]116.4[/C][C]7.6[/C][/ROW]
[ROW][C]94[/C][C]122[/C][C]126.1[/C][C]-4.09999999999999[/C][/ROW]
[ROW][C]95[/C][C]96[/C][C]111.730769230769[/C][C]-15.7307692307692[/C][/ROW]
[ROW][C]96[/C][C]127[/C][C]129.653846153846[/C][C]-2.65384615384616[/C][/ROW]
[ROW][C]97[/C][C]124[/C][C]129.653846153846[/C][C]-5.65384615384616[/C][/ROW]
[ROW][C]98[/C][C]127[/C][C]128.714285714286[/C][C]-1.71428571428572[/C][/ROW]
[ROW][C]99[/C][C]144[/C][C]136.454545454545[/C][C]7.54545454545453[/C][/ROW]
[ROW][C]100[/C][C]134[/C][C]129.653846153846[/C][C]4.34615384615384[/C][/ROW]
[ROW][C]101[/C][C]108[/C][C]113.615384615385[/C][C]-5.61538461538461[/C][/ROW]
[ROW][C]102[/C][C]130[/C][C]120[/C][C]10[/C][/ROW]
[ROW][C]103[/C][C]151[/C][C]140.5[/C][C]10.5[/C][/ROW]
[ROW][C]104[/C][C]113[/C][C]119.44[/C][C]-6.44[/C][/ROW]
[ROW][C]105[/C][C]81[/C][C]78.375[/C][C]2.625[/C][/ROW]
[ROW][C]106[/C][C]101[/C][C]102.4[/C][C]-1.40000000000001[/C][/ROW]
[ROW][C]107[/C][C]109[/C][C]102.4[/C][C]6.6[/C][/ROW]
[ROW][C]108[/C][C]126[/C][C]126.1[/C][C]-0.0999999999999943[/C][/ROW]
[ROW][C]109[/C][C]134[/C][C]140.5[/C][C]-6.5[/C][/ROW]
[ROW][C]110[/C][C]128[/C][C]129.653846153846[/C][C]-1.65384615384616[/C][/ROW]
[ROW][C]111[/C][C]128[/C][C]119.44[/C][C]8.56[/C][/ROW]
[ROW][C]112[/C][C]125[/C][C]119.44[/C][C]5.56[/C][/ROW]
[ROW][C]113[/C][C]88[/C][C]78.375[/C][C]9.625[/C][/ROW]
[ROW][C]114[/C][C]117[/C][C]113.615384615385[/C][C]3.38461538461539[/C][/ROW]
[ROW][C]115[/C][C]112[/C][C]113.615384615385[/C][C]-1.61538461538461[/C][/ROW]
[ROW][C]116[/C][C]97[/C][C]111.730769230769[/C][C]-14.7307692307692[/C][/ROW]
[ROW][C]117[/C][C]99[/C][C]113.615384615385[/C][C]-14.6153846153846[/C][/ROW]
[ROW][C]118[/C][C]96[/C][C]102.142857142857[/C][C]-6.14285714285714[/C][/ROW]
[ROW][C]119[/C][C]105[/C][C]102.4[/C][C]2.59999999999999[/C][/ROW]
[ROW][C]120[/C][C]121[/C][C]120[/C][C]1[/C][/ROW]
[ROW][C]121[/C][C]95[/C][C]128.714285714286[/C][C]-33.7142857142857[/C][/ROW]
[ROW][C]122[/C][C]131[/C][C]128.714285714286[/C][C]2.28571428571428[/C][/ROW]
[ROW][C]123[/C][C]122[/C][C]126.1[/C][C]-4.09999999999999[/C][/ROW]
[ROW][C]124[/C][C]97[/C][C]102.142857142857[/C][C]-5.14285714285714[/C][/ROW]
[ROW][C]125[/C][C]106[/C][C]92.8[/C][C]13.2[/C][/ROW]
[ROW][C]126[/C][C]119[/C][C]119.44[/C][C]-0.439999999999998[/C][/ROW]
[ROW][C]127[/C][C]124[/C][C]120[/C][C]4[/C][/ROW]
[ROW][C]128[/C][C]126[/C][C]129.653846153846[/C][C]-3.65384615384616[/C][/ROW]
[ROW][C]129[/C][C]99[/C][C]92.5625[/C][C]6.4375[/C][/ROW]
[ROW][C]130[/C][C]126[/C][C]116.4[/C][C]9.6[/C][/ROW]
[ROW][C]131[/C][C]151[/C][C]140.5[/C][C]10.5[/C][/ROW]
[ROW][C]132[/C][C]118[/C][C]119.44[/C][C]-1.44[/C][/ROW]
[ROW][C]133[/C][C]95[/C][C]92.8[/C][C]2.2[/C][/ROW]
[ROW][C]134[/C][C]138[/C][C]140.5[/C][C]-2.5[/C][/ROW]
[ROW][C]135[/C][C]101[/C][C]102.142857142857[/C][C]-1.14285714285714[/C][/ROW]
[ROW][C]136[/C][C]121[/C][C]121.142857142857[/C][C]-0.142857142857139[/C][/ROW]
[ROW][C]137[/C][C]134[/C][C]129.653846153846[/C][C]4.34615384615384[/C][/ROW]
[ROW][C]138[/C][C]130[/C][C]128.714285714286[/C][C]1.28571428571428[/C][/ROW]
[ROW][C]139[/C][C]121[/C][C]119.44[/C][C]1.56[/C][/ROW]
[ROW][C]140[/C][C]130[/C][C]111.730769230769[/C][C]18.2692307692308[/C][/ROW]
[ROW][C]141[/C][C]131[/C][C]140.5[/C][C]-9.5[/C][/ROW]
[ROW][C]142[/C][C]117[/C][C]111.730769230769[/C][C]5.26923076923077[/C][/ROW]
[ROW][C]143[/C][C]86[/C][C]92.5625[/C][C]-6.5625[/C][/ROW]
[ROW][C]144[/C][C]126[/C][C]126.1[/C][C]-0.0999999999999943[/C][/ROW]
[ROW][C]145[/C][C]122[/C][C]126.1[/C][C]-4.09999999999999[/C][/ROW]
[ROW][C]146[/C][C]110[/C][C]111.730769230769[/C][C]-1.73076923076923[/C][/ROW]
[ROW][C]147[/C][C]129[/C][C]129.653846153846[/C][C]-0.65384615384616[/C][/ROW]
[ROW][C]148[/C][C]87[/C][C]92.5625[/C][C]-5.5625[/C][/ROW]
[ROW][C]149[/C][C]150[/C][C]136.454545454545[/C][C]13.5454545454545[/C][/ROW]
[ROW][C]150[/C][C]109[/C][C]111.730769230769[/C][C]-2.73076923076923[/C][/ROW]
[ROW][C]151[/C][C]137[/C][C]140.5[/C][C]-3.5[/C][/ROW]
[ROW][C]152[/C][C]111[/C][C]111.730769230769[/C][C]-0.730769230769226[/C][/ROW]
[ROW][C]153[/C][C]138[/C][C]136.454545454545[/C][C]1.54545454545453[/C][/ROW]
[ROW][C]154[/C][C]123[/C][C]121.142857142857[/C][C]1.85714285714286[/C][/ROW]
[ROW][C]155[/C][C]82[/C][C]92.8[/C][C]-10.8[/C][/ROW]
[ROW][C]156[/C][C]120[/C][C]119.44[/C][C]0.560000000000002[/C][/ROW]
[ROW][C]157[/C][C]118[/C][C]119.44[/C][C]-1.44[/C][/ROW]
[ROW][C]158[/C][C]99[/C][C]92.5625[/C][C]6.4375[/C][/ROW]
[ROW][C]159[/C][C]69[/C][C]78.375[/C][C]-9.375[/C][/ROW]
[ROW][C]160[/C][C]126[/C][C]119.44[/C][C]6.56[/C][/ROW]
[ROW][C]161[/C][C]119[/C][C]126.1[/C][C]-7.1[/C][/ROW]
[ROW][C]162[/C][C]116[/C][C]116.4[/C][C]-0.400000000000006[/C][/ROW]
[ROW][C]163[/C][C]101[/C][C]111.730769230769[/C][C]-10.7307692307692[/C][/ROW]
[ROW][C]164[/C][C]132[/C][C]111.730769230769[/C][C]20.2692307692308[/C][/ROW]
[ROW][C]165[/C][C]85[/C][C]92.5625[/C][C]-7.5625[/C][/ROW]
[ROW][C]166[/C][C]128[/C][C]126.1[/C][C]1.90000000000001[/C][/ROW]
[ROW][C]167[/C][C]82[/C][C]78.375[/C][C]3.625[/C][/ROW]
[ROW][C]168[/C][C]128[/C][C]111.730769230769[/C][C]16.2692307692308[/C][/ROW]
[ROW][C]169[/C][C]143[/C][C]136.454545454545[/C][C]6.54545454545453[/C][/ROW]
[ROW][C]170[/C][C]125[/C][C]126.1[/C][C]-1.09999999999999[/C][/ROW]
[ROW][C]171[/C][C]147[/C][C]136.454545454545[/C][C]10.5454545454545[/C][/ROW]
[ROW][C]172[/C][C]111[/C][C]111.730769230769[/C][C]-0.730769230769226[/C][/ROW]
[ROW][C]173[/C][C]108[/C][C]113.615384615385[/C][C]-5.61538461538461[/C][/ROW]
[ROW][C]174[/C][C]122[/C][C]129.653846153846[/C][C]-7.65384615384616[/C][/ROW]
[ROW][C]175[/C][C]84[/C][C]92.5625[/C][C]-8.5625[/C][/ROW]
[ROW][C]176[/C][C]117[/C][C]119.44[/C][C]-2.44[/C][/ROW]
[ROW][C]177[/C][C]120[/C][C]116.4[/C][C]3.59999999999999[/C][/ROW]
[ROW][C]178[/C][C]77[/C][C]78.375[/C][C]-1.375[/C][/ROW]
[ROW][C]179[/C][C]100[/C][C]102.4[/C][C]-2.40000000000001[/C][/ROW]
[ROW][C]180[/C][C]134[/C][C]128.714285714286[/C][C]5.28571428571428[/C][/ROW]
[ROW][C]181[/C][C]123[/C][C]136.454545454545[/C][C]-13.4545454545455[/C][/ROW]
[ROW][C]182[/C][C]123[/C][C]111.730769230769[/C][C]11.2692307692308[/C][/ROW]
[ROW][C]183[/C][C]123[/C][C]120[/C][C]3[/C][/ROW]
[ROW][C]184[/C][C]128[/C][C]126.1[/C][C]1.90000000000001[/C][/ROW]
[ROW][C]185[/C][C]108[/C][C]111.730769230769[/C][C]-3.73076923076923[/C][/ROW]
[ROW][C]186[/C][C]118[/C][C]120[/C][C]-2[/C][/ROW]
[ROW][C]187[/C][C]107[/C][C]111.730769230769[/C][C]-4.73076923076923[/C][/ROW]
[ROW][C]188[/C][C]105[/C][C]102.4[/C][C]2.59999999999999[/C][/ROW]
[ROW][C]189[/C][C]111[/C][C]111.730769230769[/C][C]-0.730769230769226[/C][/ROW]
[ROW][C]190[/C][C]112[/C][C]102.142857142857[/C][C]9.85714285714286[/C][/ROW]
[ROW][C]191[/C][C]121[/C][C]119.44[/C][C]1.56[/C][/ROW]
[ROW][C]192[/C][C]92[/C][C]92.5625[/C][C]-0.5625[/C][/ROW]
[ROW][C]193[/C][C]97[/C][C]102.4[/C][C]-5.40000000000001[/C][/ROW]
[ROW][C]194[/C][C]99[/C][C]92.5625[/C][C]6.4375[/C][/ROW]
[ROW][C]195[/C][C]111[/C][C]116.4[/C][C]-5.40000000000001[/C][/ROW]
[ROW][C]196[/C][C]93[/C][C]92.8[/C][C]0.200000000000003[/C][/ROW]
[ROW][C]197[/C][C]121[/C][C]119.44[/C][C]1.56[/C][/ROW]
[ROW][C]198[/C][C]86[/C][C]78.375[/C][C]7.625[/C][/ROW]
[ROW][C]199[/C][C]125[/C][C]129.653846153846[/C][C]-4.65384615384616[/C][/ROW]
[ROW][C]200[/C][C]96[/C][C]92.5625[/C][C]3.4375[/C][/ROW]
[ROW][C]201[/C][C]126[/C][C]113.615384615385[/C][C]12.3846153846154[/C][/ROW]
[ROW][C]202[/C][C]108[/C][C]111.730769230769[/C][C]-3.73076923076923[/C][/ROW]
[ROW][C]203[/C][C]99[/C][C]92.8[/C][C]6.2[/C][/ROW]
[ROW][C]204[/C][C]137[/C][C]140.5[/C][C]-3.5[/C][/ROW]
[ROW][C]205[/C][C]105[/C][C]92.5625[/C][C]12.4375[/C][/ROW]
[ROW][C]206[/C][C]69[/C][C]78.375[/C][C]-9.375[/C][/ROW]
[ROW][C]207[/C][C]82[/C][C]78.375[/C][C]3.625[/C][/ROW]
[ROW][C]208[/C][C]115[/C][C]116.4[/C][C]-1.40000000000001[/C][/ROW]
[ROW][C]209[/C][C]96[/C][C]102.4[/C][C]-6.4[/C][/ROW]
[ROW][C]210[/C][C]91[/C][C]78.375[/C][C]12.625[/C][/ROW]
[ROW][C]211[/C][C]128[/C][C]126.1[/C][C]1.90000000000001[/C][/ROW]
[ROW][C]212[/C][C]91[/C][C]92.8[/C][C]-1.8[/C][/ROW]
[ROW][C]213[/C][C]92[/C][C]111.730769230769[/C][C]-19.7307692307692[/C][/ROW]
[ROW][C]214[/C][C]78[/C][C]78.375[/C][C]-0.375[/C][/ROW]
[ROW][C]215[/C][C]116[/C][C]120[/C][C]-4[/C][/ROW]
[ROW][C]216[/C][C]125[/C][C]129.653846153846[/C][C]-4.65384615384616[/C][/ROW]
[ROW][C]217[/C][C]113[/C][C]111.730769230769[/C][C]1.26923076923077[/C][/ROW]
[ROW][C]218[/C][C]130[/C][C]126.1[/C][C]3.90000000000001[/C][/ROW]
[ROW][C]219[/C][C]131[/C][C]129.653846153846[/C][C]1.34615384615384[/C][/ROW]
[ROW][C]220[/C][C]111[/C][C]116.4[/C][C]-5.40000000000001[/C][/ROW]
[ROW][C]221[/C][C]126[/C][C]119.44[/C][C]6.56[/C][/ROW]
[ROW][C]222[/C][C]122[/C][C]120[/C][C]2[/C][/ROW]
[ROW][C]223[/C][C]130[/C][C]136.454545454545[/C][C]-6.45454545454547[/C][/ROW]
[ROW][C]224[/C][C]114[/C][C]116.4[/C][C]-2.40000000000001[/C][/ROW]
[ROW][C]225[/C][C]102[/C][C]102.142857142857[/C][C]-0.142857142857139[/C][/ROW]
[ROW][C]226[/C][C]121[/C][C]119.44[/C][C]1.56[/C][/ROW]
[ROW][C]227[/C][C]122[/C][C]119.44[/C][C]2.56[/C][/ROW]
[ROW][C]228[/C][C]81[/C][C]78.375[/C][C]2.625[/C][/ROW]
[ROW][C]229[/C][C]129[/C][C]136.454545454545[/C][C]-7.45454545454547[/C][/ROW]
[ROW][C]230[/C][C]124[/C][C]119.44[/C][C]4.56[/C][/ROW]
[ROW][C]231[/C][C]89[/C][C]92.8[/C][C]-3.8[/C][/ROW]
[ROW][C]232[/C][C]139[/C][C]136.454545454545[/C][C]2.54545454545453[/C][/ROW]
[ROW][C]233[/C][C]99[/C][C]102.4[/C][C]-3.40000000000001[/C][/ROW]
[ROW][C]234[/C][C]127[/C][C]129.653846153846[/C][C]-2.65384615384616[/C][/ROW]
[ROW][C]235[/C][C]123[/C][C]111.730769230769[/C][C]11.2692307692308[/C][/ROW]
[ROW][C]236[/C][C]87[/C][C]92.8[/C][C]-5.8[/C][/ROW]
[ROW][C]237[/C][C]129[/C][C]113.615384615385[/C][C]15.3846153846154[/C][/ROW]
[ROW][C]238[/C][C]97[/C][C]102.4[/C][C]-5.40000000000001[/C][/ROW]
[ROW][C]239[/C][C]119[/C][C]113.615384615385[/C][C]5.38461538461539[/C][/ROW]
[ROW][C]240[/C][C]126[/C][C]136.454545454545[/C][C]-10.4545454545455[/C][/ROW]
[ROW][C]241[/C][C]104[/C][C]111.730769230769[/C][C]-7.73076923076923[/C][/ROW]
[ROW][C]242[/C][C]109[/C][C]120[/C][C]-11[/C][/ROW]
[ROW][C]243[/C][C]127[/C][C]126.1[/C][C]0.900000000000006[/C][/ROW]
[ROW][C]244[/C][C]52[/C][C]78.375[/C][C]-26.375[/C][/ROW]
[ROW][C]245[/C][C]125[/C][C]111.730769230769[/C][C]13.2692307692308[/C][/ROW]
[ROW][C]246[/C][C]114[/C][C]116.4[/C][C]-2.40000000000001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=166602&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=166602&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
1119120-1
2143140.52.5
3141140.50.5
4137129.6538461538467.34615384615384
5141140.50.5
6109119.44-10.44
7105119.44-14.44
8111102.48.6
9153140.512.5
109992.56256.4375
11134126.17.9
12122119.442.56
13124126.1-2.09999999999999
14119121.142857142857-2.14285714285714
159192.8-1.8
16122126.1-4.09999999999999
17136129.6538461538466.34615384615384
18131129.6538461538461.34615384615384
19129129.653846153846-0.65384615384616
20135140.5-5.5
21120113.6153846153856.38461538461539
22119126.1-7.1
23119119.44-0.439999999999998
24125129.653846153846-4.65384615384616
25118119.44-1.44
26138126.111.9
271231203
28114119.44-5.44
29134129.6538461538464.34615384615384
309792.56254.4375
31130126.13.90000000000001
32112111.7307692307690.269230769230774
331261206
34107102.1428571428574.85714285714286
35106111.730769230769-5.73076923076923
36110119.44-9.44
37137140.5-3.5
38130126.13.90000000000001
39105102.42.59999999999999
40106102.43.59999999999999
41144128.71428571428615.2857142857143
42129129.653846153846-0.65384615384616
43140128.71428571428611.2857142857143
44112111.7307692307690.269230769230774
45108113.615384615385-5.61538461538461
46113116.4-3.40000000000001
47116121.142857142857-5.14285714285714
48116113.6153846153852.38461538461539
49135129.6538461538465.34615384615384
509592.82.2
51101102.4-1.40000000000001
52122126.1-4.09999999999999
531231203
54126121.1428571428574.85714285714286
55121121.142857142857-0.142857142857139
56106102.43.59999999999999
57100111.730769230769-11.7307692307692
58126129.653846153846-3.65384615384616
59132129.6538461538462.34615384615384
608778.3758.625
61117120-3
6210092.56257.4375
63128129.653846153846-1.65384615384616
64140140.5-0.5
65117120-3
66132129.6538461538462.34615384615384
67107113.615384615385-6.61538461538461
68133140.5-7.5
698078.3751.625
70133129.6538461538463.34615384615384
71119119.44-0.439999999999998
72132129.6538461538462.34615384615384
73142140.51.5
746978.375-9.375
75141140.50.5
761251205
779592.56252.4375
78119111.7307692307697.26923076923077
79136140.5-4.5
80108113.615384615385-5.61538461538461
81112120-8
82115120-5
83100102.142857142857-2.14285714285714
848278.3753.625
85122121.1428571428570.857142857142861
86142140.51.5
87147140.56.5
88132136.454545454545-4.45454545454547
8998102.4-4.40000000000001
906792.5625-25.5625
91130119.4410.56
929192.5625-1.5625
93124116.47.6
94122126.1-4.09999999999999
9596111.730769230769-15.7307692307692
96127129.653846153846-2.65384615384616
97124129.653846153846-5.65384615384616
98127128.714285714286-1.71428571428572
99144136.4545454545457.54545454545453
100134129.6538461538464.34615384615384
101108113.615384615385-5.61538461538461
10213012010
103151140.510.5
104113119.44-6.44
1058178.3752.625
106101102.4-1.40000000000001
107109102.46.6
108126126.1-0.0999999999999943
109134140.5-6.5
110128129.653846153846-1.65384615384616
111128119.448.56
112125119.445.56
1138878.3759.625
114117113.6153846153853.38461538461539
115112113.615384615385-1.61538461538461
11697111.730769230769-14.7307692307692
11799113.615384615385-14.6153846153846
11896102.142857142857-6.14285714285714
119105102.42.59999999999999
1201211201
12195128.714285714286-33.7142857142857
122131128.7142857142862.28571428571428
123122126.1-4.09999999999999
12497102.142857142857-5.14285714285714
12510692.813.2
126119119.44-0.439999999999998
1271241204
128126129.653846153846-3.65384615384616
1299992.56256.4375
130126116.49.6
131151140.510.5
132118119.44-1.44
1339592.82.2
134138140.5-2.5
135101102.142857142857-1.14285714285714
136121121.142857142857-0.142857142857139
137134129.6538461538464.34615384615384
138130128.7142857142861.28571428571428
139121119.441.56
140130111.73076923076918.2692307692308
141131140.5-9.5
142117111.7307692307695.26923076923077
1438692.5625-6.5625
144126126.1-0.0999999999999943
145122126.1-4.09999999999999
146110111.730769230769-1.73076923076923
147129129.653846153846-0.65384615384616
1488792.5625-5.5625
149150136.45454545454513.5454545454545
150109111.730769230769-2.73076923076923
151137140.5-3.5
152111111.730769230769-0.730769230769226
153138136.4545454545451.54545454545453
154123121.1428571428571.85714285714286
1558292.8-10.8
156120119.440.560000000000002
157118119.44-1.44
1589992.56256.4375
1596978.375-9.375
160126119.446.56
161119126.1-7.1
162116116.4-0.400000000000006
163101111.730769230769-10.7307692307692
164132111.73076923076920.2692307692308
1658592.5625-7.5625
166128126.11.90000000000001
1678278.3753.625
168128111.73076923076916.2692307692308
169143136.4545454545456.54545454545453
170125126.1-1.09999999999999
171147136.45454545454510.5454545454545
172111111.730769230769-0.730769230769226
173108113.615384615385-5.61538461538461
174122129.653846153846-7.65384615384616
1758492.5625-8.5625
176117119.44-2.44
177120116.43.59999999999999
1787778.375-1.375
179100102.4-2.40000000000001
180134128.7142857142865.28571428571428
181123136.454545454545-13.4545454545455
182123111.73076923076911.2692307692308
1831231203
184128126.11.90000000000001
185108111.730769230769-3.73076923076923
186118120-2
187107111.730769230769-4.73076923076923
188105102.42.59999999999999
189111111.730769230769-0.730769230769226
190112102.1428571428579.85714285714286
191121119.441.56
1929292.5625-0.5625
19397102.4-5.40000000000001
1949992.56256.4375
195111116.4-5.40000000000001
1969392.80.200000000000003
197121119.441.56
1988678.3757.625
199125129.653846153846-4.65384615384616
2009692.56253.4375
201126113.61538461538512.3846153846154
202108111.730769230769-3.73076923076923
2039992.86.2
204137140.5-3.5
20510592.562512.4375
2066978.375-9.375
2078278.3753.625
208115116.4-1.40000000000001
20996102.4-6.4
2109178.37512.625
211128126.11.90000000000001
2129192.8-1.8
21392111.730769230769-19.7307692307692
2147878.375-0.375
215116120-4
216125129.653846153846-4.65384615384616
217113111.7307692307691.26923076923077
218130126.13.90000000000001
219131129.6538461538461.34615384615384
220111116.4-5.40000000000001
221126119.446.56
2221221202
223130136.454545454545-6.45454545454547
224114116.4-2.40000000000001
225102102.142857142857-0.142857142857139
226121119.441.56
227122119.442.56
2288178.3752.625
229129136.454545454545-7.45454545454547
230124119.444.56
2318992.8-3.8
232139136.4545454545452.54545454545453
23399102.4-3.40000000000001
234127129.653846153846-2.65384615384616
235123111.73076923076911.2692307692308
2368792.8-5.8
237129113.61538461538515.3846153846154
23897102.4-5.40000000000001
239119113.6153846153855.38461538461539
240126136.454545454545-10.4545454545455
241104111.730769230769-7.73076923076923
242109120-11
243127126.10.900000000000006
2445278.375-26.375
245125111.73076923076913.2692307692308
246114116.4-2.40000000000001



Parameters (Session):
par1 = 0 ; par2 = none ; par3 = 3 ; par4 = no ; par5 = all ; par6 = bachelor ; par7 = all ; par8 = CSUQ ; par9 = CSUQ ;
Parameters (R input):
par1 = 0 ; par2 = none ; par3 = 3 ; par4 = no ; par5 = all ; par6 = prep ; par7 = all ; par8 = CSUQ ; par9 = CSUQ ;
R code (references can be found in the software module):
library(party)
library(Hmisc)
par1 <- as.numeric(par1)
par3 <- as.numeric(par3)
x <- as.data.frame(read.table(file='https://automated.biganalytics.eu/download/utaut.csv',sep=',',header=T))
x$U25 <- 6-x$U25
if(par5 == 'female') x <- x[x$Gender==0,]
if(par5 == 'male') x <- x[x$Gender==1,]
if(par6 == 'prep') x <- x[x$Pop==1,]
if(par6 == 'bachelor') x <- x[x$Pop==0,]
if(par7 != 'all') {
x <- x[x$Year==as.numeric(par7),]
}
cAc <- with(x,cbind( A1, A2, A3, A4, A5, A6, A7, A8, A9,A10))
cAs <- with(x,cbind(A11,A12,A13,A14,A15,A16,A17,A18,A19,A20))
cA <- cbind(cAc,cAs)
cCa <- with(x,cbind(C1,C3,C5,C7, C9,C11,C13,C15,C17,C19,C21,C23,C25,C27,C29,C31,C33,C35,C37,C39,C41,C43,C45,C47))
cCp <- with(x,cbind(C2,C4,C6,C8,C10,C12,C14,C16,C18,C20,C22,C24,C26,C28,C30,C32,C34,C36,C38,C40,C42,C44,C46,C48))
cC <- cbind(cCa,cCp)
cU <- with(x,cbind(U1,U2,U3,U4,U5,U6,U7,U8,U9,U10,U11,U12,U13,U14,U15,U16,U17,U18,U19,U20,U21,U22,U23,U24,U25,U26,U27,U28,U29,U30,U31,U32,U33))
cE <- with(x,cbind(BC,NNZFG,MRT,AFL,LPM,LPC,W,WPA))
cX <- with(x,cbind(X1,X2,X3,X4,X5,X6,X7,X8,X9,X10,X11,X12,X13,X14,X15,X16,X17,X18))
if (par8=='ATTLES connected') x <- cAc
if (par8=='ATTLES separate') x <- cAs
if (par8=='ATTLES all') x <- cA
if (par8=='COLLES actuals') x <- cCa
if (par8=='COLLES preferred') x <- cCp
if (par8=='COLLES all') x <- cC
if (par8=='CSUQ') x <- cU
if (par8=='Learning Activities') x <- cE
if (par8=='Exam Items') x <- cX
if (par9=='ATTLES connected') y <- cAc
if (par9=='ATTLES separate') y <- cAs
if (par9=='ATTLES all') y <- cA
if (par9=='COLLES actuals') y <- cCa
if (par9=='COLLES preferred') y <- cCp
if (par9=='COLLES all') y <- cC
if (par9=='CSUQ') y <- cU
if (par9=='Learning Activities') y <- cE
if (par9=='Exam Items') y <- cX
if (par1==0) {
nr <- length(y[,1])
nc <- length(y[1,])
mysum <- array(0,dim=nr)
for(jjj in 1:nr) {
for(iii in 1:nc) {
mysum[jjj] = mysum[jjj] + y[jjj,iii]
}
}
y <- mysum
} else {
y <- y[,par1]
}
nx <- cbind(y,x)
colnames(nx) <- c('endo',colnames(x))
x <- nx
par1=1
ncol <- length(x[1,])
for (jjj in 1:ncol) {
x <- x[!is.na(x[,jjj]),]
}
x <- as.data.frame(x)
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')
}