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 computationTue, 01 May 2012 04:52:42 -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/01/t1335862409j1ou6i7s02a165o.htm/, Retrieved Sat, 04 May 2024 19:08:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=165356, Retrieved Sat, 04 May 2024 19:08:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact130
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Recursive Partitioning (Regression Trees)] [Regression trees] [2012-05-01 08:52:42] [5363b79245edacd2d961915f77b3b63a] [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 time5 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 5 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=165356&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=165356&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=165356&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 time5 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Goodness of Fit
Correlation0.7621
R-squared0.5809
RMSE4.7643

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.7621[/C][/ROW]
[ROW][C]R-squared[/C][C]0.5809[/C][/ROW]
[ROW][C]RMSE[/C][C]4.7643[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=165356&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=165356&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.7621
R-squared0.5809
RMSE4.7643







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
170673
26768.4230769230769-1.42307692307692
35462.1724137931034-8.17241379310344
44858.1578947368421-10.1578947368421
567670
66058.15789473684211.8421052631579
77368.42307692307694.57692307692308
86567-2
97173.7727272727273-2.77272727272727
107268.42307692307693.57692307692308
116868.4230769230769-0.42307692307692
125963.9411764705882-4.94117647058823
136562.17241379310342.82758620689656
147258.157894736842113.8421052631579
156874.5-6.5
166962.17241379310346.82758620689656
176058.15789473684211.8421052631579
185458.1578947368421-4.1578947368421
195962.1724137931034-3.17241379310344
207272.6428571428571-0.642857142857139
216362.17241379310340.827586206896555
226263.9411764705882-1.94117647058823
235863.9411764705882-5.94117647058823
247173.7727272727273-2.77272727272727
256667-1
267374.1111111111111-1.11111111111111
277574.11111111111110.888888888888886
286868.4230769230769-0.42307692307692
2970673
307474.5-0.5
317073.7727272727273-3.77272727272727
325362.1724137931034-9.17241379310344
338582.8752.125
346569.4285714285714-4.42857142857143
357174.1111111111111-3.11111111111111
366769.4285714285714-2.42857142857143
377369.42857142857143.57142857142857
386167.7083333333333-6.70833333333333
396968.42307692307690.57692307692308
406667.7083333333333-1.70833333333333
416467.7083333333333-3.70833333333333
427672.64285714285713.35714285714286
437274.1111111111111-2.11111111111111
447272.6428571428571-0.642857142857139
456772.6428571428571-5.64285714285714
466768.4230769230769-1.42307692307692
4767670
486773.7727272727273-6.77272727272727
495662.1724137931034-6.17241379310344
505762.1724137931034-5.17241379310344
516767.7083333333333-0.708333333333329
526768.4230769230769-1.42307692307692
536567-2
546762.17241379310344.82758620689656
556763.94117647058823.05882352941177
567174.1111111111111-3.11111111111111
573858.1578947368421-20.1578947368421
585558.1578947368421-3.1578947368421
5971674
607682.875-6.875
615962.1724137931034-3.17241379310344
626367-4
635367-14
646968.42307692307690.57692307692308
657174.1111111111111-3.11111111111111
664558.1578947368421-13.1578947368421
676772.6428571428571-5.64285714285714
686868.4230769230769-0.42307692307692
696362.17241379310340.827586206896555
707063.94117647058826.05882352941177
716363.9411764705882-0.941176470588232
726667-1
736463.94117647058820.058823529411768
745662.1724137931034-6.17241379310344
756568.4230769230769-3.42307692307692
7670673
776567-2
786867.70833333333330.291666666666671
798174.11111111111116.88888888888889
806774.1111111111111-7.11111111111111
817882.875-4.875
827873.77272727272734.22727272727273
837672.64285714285713.35714285714286
848073.77272727272736.22727272727273
856162.1724137931034-1.17241379310344
867373.7727272727273-0.772727272727266
876667-1
887674.51.5
898682.8753.125
908074.11111111111115.88888888888889
917672.64285714285713.35714285714286
927272.6428571428571-0.642857142857139
9371674
946974.1111111111111-5.11111111111111
95776710
967268.42307692307693.57692307692308
976958.157894736842110.8421052631579
986868.4230769230769-0.42307692307692
9967670
1007263.94117647058828.05882352941177
1016463.94117647058820.058823529411768
1027169.42857142857141.57142857142857
1036067.7083333333333-7.70833333333333
1046663.94117647058822.05882352941177
1057374.1111111111111-1.11111111111111
1066858.15789473684219.8421052631579
1076673.7727272727273-7.77272727272727
1085458.1578947368421-4.1578947368421
1096872.6428571428571-4.64285714285714
1106567.7083333333333-2.70833333333333
1119582.87512.125
1127268.42307692307693.57692307692308
1137573.77272727272731.22727272727273
1147268.42307692307693.57692307692308
1157173.7727272727273-2.77272727272727
1166874.5-6.5
1176567-2
1187774.11111111111112.88888888888889
1197974.11111111111114.88888888888889
1207374.1111111111111-1.11111111111111
1215458.1578947368421-4.1578947368421
1227469.42857142857144.57142857142857
1237572.64285714285712.35714285714286
1247774.11111111111112.88888888888889
1258482.8751.125
1266762.17241379310344.82758620689656
12767670
1286568.4230769230769-3.42307692307692
1297472.64285714285711.35714285714286
1307873.77272727272734.22727272727273
1316767.7083333333333-0.708333333333329
1327774.52.5
1337168.42307692307692.57692307692308
1346269.4285714285714-7.42857142857143
1356258.15789473684213.8421052631579
1367067.70833333333332.29166666666667
1377358.157894736842114.8421052631579
1386768.4230769230769-1.42307692307692
1396873.7727272727273-5.77272727272727
1406158.15789473684212.8421052631579
1416662.17241379310343.82758620689656
1427269.42857142857142.57142857142857
1436968.42307692307690.57692307692308
1447173.7727272727273-2.77272727272727
1457567.70833333333337.29166666666667
1467372.64285714285710.357142857142861
1477267.70833333333334.29166666666667
1487369.42857142857143.57142857142857
1496462.17241379310341.82758620689656
1507673.77272727272732.22727272727273
1515458.1578947368421-4.1578947368421
1526062.1724137931034-2.17241379310344
1536968.42307692307690.57692307692308
1547168.42307692307692.57692307692308
1556967.70833333333331.29166666666667
1566567.7083333333333-2.70833333333333
1576868.4230769230769-0.42307692307692
1586663.94117647058822.05882352941177
1596762.17241379310344.82758620689656
1607262.17241379310349.82758620689656
1617474.5-0.5
1627267.70833333333334.29166666666667
1637873.77272727272734.22727272727273
1646467.7083333333333-3.70833333333333
16567670
1667773.77272727272733.22727272727273
1675962.1724137931034-3.17241379310344
1685962.1724137931034-3.17241379310344
1698074.55.5
1707567.70833333333337.29166666666667
1716467.7083333333333-3.70833333333333
1726769.4285714285714-2.42857142857143
1736874.1111111111111-6.11111111111111
1747067.70833333333332.29166666666667
1756467-3
1767673.77272727272732.22727272727273
1776062.1724137931034-2.17241379310344
1787267.70833333333334.29166666666667
1796362.17241379310340.827586206896555
1806967.70833333333331.29166666666667
1817173.7727272727273-2.77272727272727
1826363.9411764705882-0.941176470588232
1836669.4285714285714-3.42857142857143
1846562.17241379310342.82758620689656
1856362.17241379310340.827586206896555
1866663.94117647058822.05882352941177
1876667.7083333333333-1.70833333333333
1886262.1724137931034-0.172413793103445
1897473.77272727272730.227272727272734
1906362.17241379310340.827586206896555
1916772.6428571428571-5.64285714285714
1926268.4230769230769-6.42307692307692
1936468.4230769230769-4.42307692307692
1947974.54.5
1957874.53.5
1966969.4285714285714-0.428571428571431
1976662.17241379310343.82758620689656
1986969.4285714285714-0.428571428571431
1996768.4230769230769-1.42307692307692
2007674.11111111111111.88888888888889
2018174.11111111111116.88888888888889
2026562.17241379310342.82758620689656
2038073.77272727272736.22727272727273
2047367.70833333333335.29166666666667
2057174.5-3.5
2068182.875-1.875
2076667-1
2086463.94117647058820.058823529411768
2097173.7727272727273-2.77272727272727
2107067.70833333333332.29166666666667
2116458.15789473684215.8421052631579
2128272.64285714285719.35714285714286
2137882.875-4.875
21473676
2156363.9411764705882-0.941176470588232
2166968.42307692307690.57692307692308
2177069.42857142857140.571428571428569
2187469.42857142857144.57142857142857
2196167.7083333333333-6.70833333333333
2208173.77272727272737.22727272727273
2215863.9411764705882-5.94117647058823
2224758.1578947368421-11.1578947368421
2236263.9411764705882-1.94117647058823
2246758.15789473684218.8421052631579

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 70 & 67 & 3 \tabularnewline
2 & 67 & 68.4230769230769 & -1.42307692307692 \tabularnewline
3 & 54 & 62.1724137931034 & -8.17241379310344 \tabularnewline
4 & 48 & 58.1578947368421 & -10.1578947368421 \tabularnewline
5 & 67 & 67 & 0 \tabularnewline
6 & 60 & 58.1578947368421 & 1.8421052631579 \tabularnewline
7 & 73 & 68.4230769230769 & 4.57692307692308 \tabularnewline
8 & 65 & 67 & -2 \tabularnewline
9 & 71 & 73.7727272727273 & -2.77272727272727 \tabularnewline
10 & 72 & 68.4230769230769 & 3.57692307692308 \tabularnewline
11 & 68 & 68.4230769230769 & -0.42307692307692 \tabularnewline
12 & 59 & 63.9411764705882 & -4.94117647058823 \tabularnewline
13 & 65 & 62.1724137931034 & 2.82758620689656 \tabularnewline
14 & 72 & 58.1578947368421 & 13.8421052631579 \tabularnewline
15 & 68 & 74.5 & -6.5 \tabularnewline
16 & 69 & 62.1724137931034 & 6.82758620689656 \tabularnewline
17 & 60 & 58.1578947368421 & 1.8421052631579 \tabularnewline
18 & 54 & 58.1578947368421 & -4.1578947368421 \tabularnewline
19 & 59 & 62.1724137931034 & -3.17241379310344 \tabularnewline
20 & 72 & 72.6428571428571 & -0.642857142857139 \tabularnewline
21 & 63 & 62.1724137931034 & 0.827586206896555 \tabularnewline
22 & 62 & 63.9411764705882 & -1.94117647058823 \tabularnewline
23 & 58 & 63.9411764705882 & -5.94117647058823 \tabularnewline
24 & 71 & 73.7727272727273 & -2.77272727272727 \tabularnewline
25 & 66 & 67 & -1 \tabularnewline
26 & 73 & 74.1111111111111 & -1.11111111111111 \tabularnewline
27 & 75 & 74.1111111111111 & 0.888888888888886 \tabularnewline
28 & 68 & 68.4230769230769 & -0.42307692307692 \tabularnewline
29 & 70 & 67 & 3 \tabularnewline
30 & 74 & 74.5 & -0.5 \tabularnewline
31 & 70 & 73.7727272727273 & -3.77272727272727 \tabularnewline
32 & 53 & 62.1724137931034 & -9.17241379310344 \tabularnewline
33 & 85 & 82.875 & 2.125 \tabularnewline
34 & 65 & 69.4285714285714 & -4.42857142857143 \tabularnewline
35 & 71 & 74.1111111111111 & -3.11111111111111 \tabularnewline
36 & 67 & 69.4285714285714 & -2.42857142857143 \tabularnewline
37 & 73 & 69.4285714285714 & 3.57142857142857 \tabularnewline
38 & 61 & 67.7083333333333 & -6.70833333333333 \tabularnewline
39 & 69 & 68.4230769230769 & 0.57692307692308 \tabularnewline
40 & 66 & 67.7083333333333 & -1.70833333333333 \tabularnewline
41 & 64 & 67.7083333333333 & -3.70833333333333 \tabularnewline
42 & 76 & 72.6428571428571 & 3.35714285714286 \tabularnewline
43 & 72 & 74.1111111111111 & -2.11111111111111 \tabularnewline
44 & 72 & 72.6428571428571 & -0.642857142857139 \tabularnewline
45 & 67 & 72.6428571428571 & -5.64285714285714 \tabularnewline
46 & 67 & 68.4230769230769 & -1.42307692307692 \tabularnewline
47 & 67 & 67 & 0 \tabularnewline
48 & 67 & 73.7727272727273 & -6.77272727272727 \tabularnewline
49 & 56 & 62.1724137931034 & -6.17241379310344 \tabularnewline
50 & 57 & 62.1724137931034 & -5.17241379310344 \tabularnewline
51 & 67 & 67.7083333333333 & -0.708333333333329 \tabularnewline
52 & 67 & 68.4230769230769 & -1.42307692307692 \tabularnewline
53 & 65 & 67 & -2 \tabularnewline
54 & 67 & 62.1724137931034 & 4.82758620689656 \tabularnewline
55 & 67 & 63.9411764705882 & 3.05882352941177 \tabularnewline
56 & 71 & 74.1111111111111 & -3.11111111111111 \tabularnewline
57 & 38 & 58.1578947368421 & -20.1578947368421 \tabularnewline
58 & 55 & 58.1578947368421 & -3.1578947368421 \tabularnewline
59 & 71 & 67 & 4 \tabularnewline
60 & 76 & 82.875 & -6.875 \tabularnewline
61 & 59 & 62.1724137931034 & -3.17241379310344 \tabularnewline
62 & 63 & 67 & -4 \tabularnewline
63 & 53 & 67 & -14 \tabularnewline
64 & 69 & 68.4230769230769 & 0.57692307692308 \tabularnewline
65 & 71 & 74.1111111111111 & -3.11111111111111 \tabularnewline
66 & 45 & 58.1578947368421 & -13.1578947368421 \tabularnewline
67 & 67 & 72.6428571428571 & -5.64285714285714 \tabularnewline
68 & 68 & 68.4230769230769 & -0.42307692307692 \tabularnewline
69 & 63 & 62.1724137931034 & 0.827586206896555 \tabularnewline
70 & 70 & 63.9411764705882 & 6.05882352941177 \tabularnewline
71 & 63 & 63.9411764705882 & -0.941176470588232 \tabularnewline
72 & 66 & 67 & -1 \tabularnewline
73 & 64 & 63.9411764705882 & 0.058823529411768 \tabularnewline
74 & 56 & 62.1724137931034 & -6.17241379310344 \tabularnewline
75 & 65 & 68.4230769230769 & -3.42307692307692 \tabularnewline
76 & 70 & 67 & 3 \tabularnewline
77 & 65 & 67 & -2 \tabularnewline
78 & 68 & 67.7083333333333 & 0.291666666666671 \tabularnewline
79 & 81 & 74.1111111111111 & 6.88888888888889 \tabularnewline
80 & 67 & 74.1111111111111 & -7.11111111111111 \tabularnewline
81 & 78 & 82.875 & -4.875 \tabularnewline
82 & 78 & 73.7727272727273 & 4.22727272727273 \tabularnewline
83 & 76 & 72.6428571428571 & 3.35714285714286 \tabularnewline
84 & 80 & 73.7727272727273 & 6.22727272727273 \tabularnewline
85 & 61 & 62.1724137931034 & -1.17241379310344 \tabularnewline
86 & 73 & 73.7727272727273 & -0.772727272727266 \tabularnewline
87 & 66 & 67 & -1 \tabularnewline
88 & 76 & 74.5 & 1.5 \tabularnewline
89 & 86 & 82.875 & 3.125 \tabularnewline
90 & 80 & 74.1111111111111 & 5.88888888888889 \tabularnewline
91 & 76 & 72.6428571428571 & 3.35714285714286 \tabularnewline
92 & 72 & 72.6428571428571 & -0.642857142857139 \tabularnewline
93 & 71 & 67 & 4 \tabularnewline
94 & 69 & 74.1111111111111 & -5.11111111111111 \tabularnewline
95 & 77 & 67 & 10 \tabularnewline
96 & 72 & 68.4230769230769 & 3.57692307692308 \tabularnewline
97 & 69 & 58.1578947368421 & 10.8421052631579 \tabularnewline
98 & 68 & 68.4230769230769 & -0.42307692307692 \tabularnewline
99 & 67 & 67 & 0 \tabularnewline
100 & 72 & 63.9411764705882 & 8.05882352941177 \tabularnewline
101 & 64 & 63.9411764705882 & 0.058823529411768 \tabularnewline
102 & 71 & 69.4285714285714 & 1.57142857142857 \tabularnewline
103 & 60 & 67.7083333333333 & -7.70833333333333 \tabularnewline
104 & 66 & 63.9411764705882 & 2.05882352941177 \tabularnewline
105 & 73 & 74.1111111111111 & -1.11111111111111 \tabularnewline
106 & 68 & 58.1578947368421 & 9.8421052631579 \tabularnewline
107 & 66 & 73.7727272727273 & -7.77272727272727 \tabularnewline
108 & 54 & 58.1578947368421 & -4.1578947368421 \tabularnewline
109 & 68 & 72.6428571428571 & -4.64285714285714 \tabularnewline
110 & 65 & 67.7083333333333 & -2.70833333333333 \tabularnewline
111 & 95 & 82.875 & 12.125 \tabularnewline
112 & 72 & 68.4230769230769 & 3.57692307692308 \tabularnewline
113 & 75 & 73.7727272727273 & 1.22727272727273 \tabularnewline
114 & 72 & 68.4230769230769 & 3.57692307692308 \tabularnewline
115 & 71 & 73.7727272727273 & -2.77272727272727 \tabularnewline
116 & 68 & 74.5 & -6.5 \tabularnewline
117 & 65 & 67 & -2 \tabularnewline
118 & 77 & 74.1111111111111 & 2.88888888888889 \tabularnewline
119 & 79 & 74.1111111111111 & 4.88888888888889 \tabularnewline
120 & 73 & 74.1111111111111 & -1.11111111111111 \tabularnewline
121 & 54 & 58.1578947368421 & -4.1578947368421 \tabularnewline
122 & 74 & 69.4285714285714 & 4.57142857142857 \tabularnewline
123 & 75 & 72.6428571428571 & 2.35714285714286 \tabularnewline
124 & 77 & 74.1111111111111 & 2.88888888888889 \tabularnewline
125 & 84 & 82.875 & 1.125 \tabularnewline
126 & 67 & 62.1724137931034 & 4.82758620689656 \tabularnewline
127 & 67 & 67 & 0 \tabularnewline
128 & 65 & 68.4230769230769 & -3.42307692307692 \tabularnewline
129 & 74 & 72.6428571428571 & 1.35714285714286 \tabularnewline
130 & 78 & 73.7727272727273 & 4.22727272727273 \tabularnewline
131 & 67 & 67.7083333333333 & -0.708333333333329 \tabularnewline
132 & 77 & 74.5 & 2.5 \tabularnewline
133 & 71 & 68.4230769230769 & 2.57692307692308 \tabularnewline
134 & 62 & 69.4285714285714 & -7.42857142857143 \tabularnewline
135 & 62 & 58.1578947368421 & 3.8421052631579 \tabularnewline
136 & 70 & 67.7083333333333 & 2.29166666666667 \tabularnewline
137 & 73 & 58.1578947368421 & 14.8421052631579 \tabularnewline
138 & 67 & 68.4230769230769 & -1.42307692307692 \tabularnewline
139 & 68 & 73.7727272727273 & -5.77272727272727 \tabularnewline
140 & 61 & 58.1578947368421 & 2.8421052631579 \tabularnewline
141 & 66 & 62.1724137931034 & 3.82758620689656 \tabularnewline
142 & 72 & 69.4285714285714 & 2.57142857142857 \tabularnewline
143 & 69 & 68.4230769230769 & 0.57692307692308 \tabularnewline
144 & 71 & 73.7727272727273 & -2.77272727272727 \tabularnewline
145 & 75 & 67.7083333333333 & 7.29166666666667 \tabularnewline
146 & 73 & 72.6428571428571 & 0.357142857142861 \tabularnewline
147 & 72 & 67.7083333333333 & 4.29166666666667 \tabularnewline
148 & 73 & 69.4285714285714 & 3.57142857142857 \tabularnewline
149 & 64 & 62.1724137931034 & 1.82758620689656 \tabularnewline
150 & 76 & 73.7727272727273 & 2.22727272727273 \tabularnewline
151 & 54 & 58.1578947368421 & -4.1578947368421 \tabularnewline
152 & 60 & 62.1724137931034 & -2.17241379310344 \tabularnewline
153 & 69 & 68.4230769230769 & 0.57692307692308 \tabularnewline
154 & 71 & 68.4230769230769 & 2.57692307692308 \tabularnewline
155 & 69 & 67.7083333333333 & 1.29166666666667 \tabularnewline
156 & 65 & 67.7083333333333 & -2.70833333333333 \tabularnewline
157 & 68 & 68.4230769230769 & -0.42307692307692 \tabularnewline
158 & 66 & 63.9411764705882 & 2.05882352941177 \tabularnewline
159 & 67 & 62.1724137931034 & 4.82758620689656 \tabularnewline
160 & 72 & 62.1724137931034 & 9.82758620689656 \tabularnewline
161 & 74 & 74.5 & -0.5 \tabularnewline
162 & 72 & 67.7083333333333 & 4.29166666666667 \tabularnewline
163 & 78 & 73.7727272727273 & 4.22727272727273 \tabularnewline
164 & 64 & 67.7083333333333 & -3.70833333333333 \tabularnewline
165 & 67 & 67 & 0 \tabularnewline
166 & 77 & 73.7727272727273 & 3.22727272727273 \tabularnewline
167 & 59 & 62.1724137931034 & -3.17241379310344 \tabularnewline
168 & 59 & 62.1724137931034 & -3.17241379310344 \tabularnewline
169 & 80 & 74.5 & 5.5 \tabularnewline
170 & 75 & 67.7083333333333 & 7.29166666666667 \tabularnewline
171 & 64 & 67.7083333333333 & -3.70833333333333 \tabularnewline
172 & 67 & 69.4285714285714 & -2.42857142857143 \tabularnewline
173 & 68 & 74.1111111111111 & -6.11111111111111 \tabularnewline
174 & 70 & 67.7083333333333 & 2.29166666666667 \tabularnewline
175 & 64 & 67 & -3 \tabularnewline
176 & 76 & 73.7727272727273 & 2.22727272727273 \tabularnewline
177 & 60 & 62.1724137931034 & -2.17241379310344 \tabularnewline
178 & 72 & 67.7083333333333 & 4.29166666666667 \tabularnewline
179 & 63 & 62.1724137931034 & 0.827586206896555 \tabularnewline
180 & 69 & 67.7083333333333 & 1.29166666666667 \tabularnewline
181 & 71 & 73.7727272727273 & -2.77272727272727 \tabularnewline
182 & 63 & 63.9411764705882 & -0.941176470588232 \tabularnewline
183 & 66 & 69.4285714285714 & -3.42857142857143 \tabularnewline
184 & 65 & 62.1724137931034 & 2.82758620689656 \tabularnewline
185 & 63 & 62.1724137931034 & 0.827586206896555 \tabularnewline
186 & 66 & 63.9411764705882 & 2.05882352941177 \tabularnewline
187 & 66 & 67.7083333333333 & -1.70833333333333 \tabularnewline
188 & 62 & 62.1724137931034 & -0.172413793103445 \tabularnewline
189 & 74 & 73.7727272727273 & 0.227272727272734 \tabularnewline
190 & 63 & 62.1724137931034 & 0.827586206896555 \tabularnewline
191 & 67 & 72.6428571428571 & -5.64285714285714 \tabularnewline
192 & 62 & 68.4230769230769 & -6.42307692307692 \tabularnewline
193 & 64 & 68.4230769230769 & -4.42307692307692 \tabularnewline
194 & 79 & 74.5 & 4.5 \tabularnewline
195 & 78 & 74.5 & 3.5 \tabularnewline
196 & 69 & 69.4285714285714 & -0.428571428571431 \tabularnewline
197 & 66 & 62.1724137931034 & 3.82758620689656 \tabularnewline
198 & 69 & 69.4285714285714 & -0.428571428571431 \tabularnewline
199 & 67 & 68.4230769230769 & -1.42307692307692 \tabularnewline
200 & 76 & 74.1111111111111 & 1.88888888888889 \tabularnewline
201 & 81 & 74.1111111111111 & 6.88888888888889 \tabularnewline
202 & 65 & 62.1724137931034 & 2.82758620689656 \tabularnewline
203 & 80 & 73.7727272727273 & 6.22727272727273 \tabularnewline
204 & 73 & 67.7083333333333 & 5.29166666666667 \tabularnewline
205 & 71 & 74.5 & -3.5 \tabularnewline
206 & 81 & 82.875 & -1.875 \tabularnewline
207 & 66 & 67 & -1 \tabularnewline
208 & 64 & 63.9411764705882 & 0.058823529411768 \tabularnewline
209 & 71 & 73.7727272727273 & -2.77272727272727 \tabularnewline
210 & 70 & 67.7083333333333 & 2.29166666666667 \tabularnewline
211 & 64 & 58.1578947368421 & 5.8421052631579 \tabularnewline
212 & 82 & 72.6428571428571 & 9.35714285714286 \tabularnewline
213 & 78 & 82.875 & -4.875 \tabularnewline
214 & 73 & 67 & 6 \tabularnewline
215 & 63 & 63.9411764705882 & -0.941176470588232 \tabularnewline
216 & 69 & 68.4230769230769 & 0.57692307692308 \tabularnewline
217 & 70 & 69.4285714285714 & 0.571428571428569 \tabularnewline
218 & 74 & 69.4285714285714 & 4.57142857142857 \tabularnewline
219 & 61 & 67.7083333333333 & -6.70833333333333 \tabularnewline
220 & 81 & 73.7727272727273 & 7.22727272727273 \tabularnewline
221 & 58 & 63.9411764705882 & -5.94117647058823 \tabularnewline
222 & 47 & 58.1578947368421 & -11.1578947368421 \tabularnewline
223 & 62 & 63.9411764705882 & -1.94117647058823 \tabularnewline
224 & 67 & 58.1578947368421 & 8.8421052631579 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=165356&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]70[/C][C]67[/C][C]3[/C][/ROW]
[ROW][C]2[/C][C]67[/C][C]68.4230769230769[/C][C]-1.42307692307692[/C][/ROW]
[ROW][C]3[/C][C]54[/C][C]62.1724137931034[/C][C]-8.17241379310344[/C][/ROW]
[ROW][C]4[/C][C]48[/C][C]58.1578947368421[/C][C]-10.1578947368421[/C][/ROW]
[ROW][C]5[/C][C]67[/C][C]67[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]60[/C][C]58.1578947368421[/C][C]1.8421052631579[/C][/ROW]
[ROW][C]7[/C][C]73[/C][C]68.4230769230769[/C][C]4.57692307692308[/C][/ROW]
[ROW][C]8[/C][C]65[/C][C]67[/C][C]-2[/C][/ROW]
[ROW][C]9[/C][C]71[/C][C]73.7727272727273[/C][C]-2.77272727272727[/C][/ROW]
[ROW][C]10[/C][C]72[/C][C]68.4230769230769[/C][C]3.57692307692308[/C][/ROW]
[ROW][C]11[/C][C]68[/C][C]68.4230769230769[/C][C]-0.42307692307692[/C][/ROW]
[ROW][C]12[/C][C]59[/C][C]63.9411764705882[/C][C]-4.94117647058823[/C][/ROW]
[ROW][C]13[/C][C]65[/C][C]62.1724137931034[/C][C]2.82758620689656[/C][/ROW]
[ROW][C]14[/C][C]72[/C][C]58.1578947368421[/C][C]13.8421052631579[/C][/ROW]
[ROW][C]15[/C][C]68[/C][C]74.5[/C][C]-6.5[/C][/ROW]
[ROW][C]16[/C][C]69[/C][C]62.1724137931034[/C][C]6.82758620689656[/C][/ROW]
[ROW][C]17[/C][C]60[/C][C]58.1578947368421[/C][C]1.8421052631579[/C][/ROW]
[ROW][C]18[/C][C]54[/C][C]58.1578947368421[/C][C]-4.1578947368421[/C][/ROW]
[ROW][C]19[/C][C]59[/C][C]62.1724137931034[/C][C]-3.17241379310344[/C][/ROW]
[ROW][C]20[/C][C]72[/C][C]72.6428571428571[/C][C]-0.642857142857139[/C][/ROW]
[ROW][C]21[/C][C]63[/C][C]62.1724137931034[/C][C]0.827586206896555[/C][/ROW]
[ROW][C]22[/C][C]62[/C][C]63.9411764705882[/C][C]-1.94117647058823[/C][/ROW]
[ROW][C]23[/C][C]58[/C][C]63.9411764705882[/C][C]-5.94117647058823[/C][/ROW]
[ROW][C]24[/C][C]71[/C][C]73.7727272727273[/C][C]-2.77272727272727[/C][/ROW]
[ROW][C]25[/C][C]66[/C][C]67[/C][C]-1[/C][/ROW]
[ROW][C]26[/C][C]73[/C][C]74.1111111111111[/C][C]-1.11111111111111[/C][/ROW]
[ROW][C]27[/C][C]75[/C][C]74.1111111111111[/C][C]0.888888888888886[/C][/ROW]
[ROW][C]28[/C][C]68[/C][C]68.4230769230769[/C][C]-0.42307692307692[/C][/ROW]
[ROW][C]29[/C][C]70[/C][C]67[/C][C]3[/C][/ROW]
[ROW][C]30[/C][C]74[/C][C]74.5[/C][C]-0.5[/C][/ROW]
[ROW][C]31[/C][C]70[/C][C]73.7727272727273[/C][C]-3.77272727272727[/C][/ROW]
[ROW][C]32[/C][C]53[/C][C]62.1724137931034[/C][C]-9.17241379310344[/C][/ROW]
[ROW][C]33[/C][C]85[/C][C]82.875[/C][C]2.125[/C][/ROW]
[ROW][C]34[/C][C]65[/C][C]69.4285714285714[/C][C]-4.42857142857143[/C][/ROW]
[ROW][C]35[/C][C]71[/C][C]74.1111111111111[/C][C]-3.11111111111111[/C][/ROW]
[ROW][C]36[/C][C]67[/C][C]69.4285714285714[/C][C]-2.42857142857143[/C][/ROW]
[ROW][C]37[/C][C]73[/C][C]69.4285714285714[/C][C]3.57142857142857[/C][/ROW]
[ROW][C]38[/C][C]61[/C][C]67.7083333333333[/C][C]-6.70833333333333[/C][/ROW]
[ROW][C]39[/C][C]69[/C][C]68.4230769230769[/C][C]0.57692307692308[/C][/ROW]
[ROW][C]40[/C][C]66[/C][C]67.7083333333333[/C][C]-1.70833333333333[/C][/ROW]
[ROW][C]41[/C][C]64[/C][C]67.7083333333333[/C][C]-3.70833333333333[/C][/ROW]
[ROW][C]42[/C][C]76[/C][C]72.6428571428571[/C][C]3.35714285714286[/C][/ROW]
[ROW][C]43[/C][C]72[/C][C]74.1111111111111[/C][C]-2.11111111111111[/C][/ROW]
[ROW][C]44[/C][C]72[/C][C]72.6428571428571[/C][C]-0.642857142857139[/C][/ROW]
[ROW][C]45[/C][C]67[/C][C]72.6428571428571[/C][C]-5.64285714285714[/C][/ROW]
[ROW][C]46[/C][C]67[/C][C]68.4230769230769[/C][C]-1.42307692307692[/C][/ROW]
[ROW][C]47[/C][C]67[/C][C]67[/C][C]0[/C][/ROW]
[ROW][C]48[/C][C]67[/C][C]73.7727272727273[/C][C]-6.77272727272727[/C][/ROW]
[ROW][C]49[/C][C]56[/C][C]62.1724137931034[/C][C]-6.17241379310344[/C][/ROW]
[ROW][C]50[/C][C]57[/C][C]62.1724137931034[/C][C]-5.17241379310344[/C][/ROW]
[ROW][C]51[/C][C]67[/C][C]67.7083333333333[/C][C]-0.708333333333329[/C][/ROW]
[ROW][C]52[/C][C]67[/C][C]68.4230769230769[/C][C]-1.42307692307692[/C][/ROW]
[ROW][C]53[/C][C]65[/C][C]67[/C][C]-2[/C][/ROW]
[ROW][C]54[/C][C]67[/C][C]62.1724137931034[/C][C]4.82758620689656[/C][/ROW]
[ROW][C]55[/C][C]67[/C][C]63.9411764705882[/C][C]3.05882352941177[/C][/ROW]
[ROW][C]56[/C][C]71[/C][C]74.1111111111111[/C][C]-3.11111111111111[/C][/ROW]
[ROW][C]57[/C][C]38[/C][C]58.1578947368421[/C][C]-20.1578947368421[/C][/ROW]
[ROW][C]58[/C][C]55[/C][C]58.1578947368421[/C][C]-3.1578947368421[/C][/ROW]
[ROW][C]59[/C][C]71[/C][C]67[/C][C]4[/C][/ROW]
[ROW][C]60[/C][C]76[/C][C]82.875[/C][C]-6.875[/C][/ROW]
[ROW][C]61[/C][C]59[/C][C]62.1724137931034[/C][C]-3.17241379310344[/C][/ROW]
[ROW][C]62[/C][C]63[/C][C]67[/C][C]-4[/C][/ROW]
[ROW][C]63[/C][C]53[/C][C]67[/C][C]-14[/C][/ROW]
[ROW][C]64[/C][C]69[/C][C]68.4230769230769[/C][C]0.57692307692308[/C][/ROW]
[ROW][C]65[/C][C]71[/C][C]74.1111111111111[/C][C]-3.11111111111111[/C][/ROW]
[ROW][C]66[/C][C]45[/C][C]58.1578947368421[/C][C]-13.1578947368421[/C][/ROW]
[ROW][C]67[/C][C]67[/C][C]72.6428571428571[/C][C]-5.64285714285714[/C][/ROW]
[ROW][C]68[/C][C]68[/C][C]68.4230769230769[/C][C]-0.42307692307692[/C][/ROW]
[ROW][C]69[/C][C]63[/C][C]62.1724137931034[/C][C]0.827586206896555[/C][/ROW]
[ROW][C]70[/C][C]70[/C][C]63.9411764705882[/C][C]6.05882352941177[/C][/ROW]
[ROW][C]71[/C][C]63[/C][C]63.9411764705882[/C][C]-0.941176470588232[/C][/ROW]
[ROW][C]72[/C][C]66[/C][C]67[/C][C]-1[/C][/ROW]
[ROW][C]73[/C][C]64[/C][C]63.9411764705882[/C][C]0.058823529411768[/C][/ROW]
[ROW][C]74[/C][C]56[/C][C]62.1724137931034[/C][C]-6.17241379310344[/C][/ROW]
[ROW][C]75[/C][C]65[/C][C]68.4230769230769[/C][C]-3.42307692307692[/C][/ROW]
[ROW][C]76[/C][C]70[/C][C]67[/C][C]3[/C][/ROW]
[ROW][C]77[/C][C]65[/C][C]67[/C][C]-2[/C][/ROW]
[ROW][C]78[/C][C]68[/C][C]67.7083333333333[/C][C]0.291666666666671[/C][/ROW]
[ROW][C]79[/C][C]81[/C][C]74.1111111111111[/C][C]6.88888888888889[/C][/ROW]
[ROW][C]80[/C][C]67[/C][C]74.1111111111111[/C][C]-7.11111111111111[/C][/ROW]
[ROW][C]81[/C][C]78[/C][C]82.875[/C][C]-4.875[/C][/ROW]
[ROW][C]82[/C][C]78[/C][C]73.7727272727273[/C][C]4.22727272727273[/C][/ROW]
[ROW][C]83[/C][C]76[/C][C]72.6428571428571[/C][C]3.35714285714286[/C][/ROW]
[ROW][C]84[/C][C]80[/C][C]73.7727272727273[/C][C]6.22727272727273[/C][/ROW]
[ROW][C]85[/C][C]61[/C][C]62.1724137931034[/C][C]-1.17241379310344[/C][/ROW]
[ROW][C]86[/C][C]73[/C][C]73.7727272727273[/C][C]-0.772727272727266[/C][/ROW]
[ROW][C]87[/C][C]66[/C][C]67[/C][C]-1[/C][/ROW]
[ROW][C]88[/C][C]76[/C][C]74.5[/C][C]1.5[/C][/ROW]
[ROW][C]89[/C][C]86[/C][C]82.875[/C][C]3.125[/C][/ROW]
[ROW][C]90[/C][C]80[/C][C]74.1111111111111[/C][C]5.88888888888889[/C][/ROW]
[ROW][C]91[/C][C]76[/C][C]72.6428571428571[/C][C]3.35714285714286[/C][/ROW]
[ROW][C]92[/C][C]72[/C][C]72.6428571428571[/C][C]-0.642857142857139[/C][/ROW]
[ROW][C]93[/C][C]71[/C][C]67[/C][C]4[/C][/ROW]
[ROW][C]94[/C][C]69[/C][C]74.1111111111111[/C][C]-5.11111111111111[/C][/ROW]
[ROW][C]95[/C][C]77[/C][C]67[/C][C]10[/C][/ROW]
[ROW][C]96[/C][C]72[/C][C]68.4230769230769[/C][C]3.57692307692308[/C][/ROW]
[ROW][C]97[/C][C]69[/C][C]58.1578947368421[/C][C]10.8421052631579[/C][/ROW]
[ROW][C]98[/C][C]68[/C][C]68.4230769230769[/C][C]-0.42307692307692[/C][/ROW]
[ROW][C]99[/C][C]67[/C][C]67[/C][C]0[/C][/ROW]
[ROW][C]100[/C][C]72[/C][C]63.9411764705882[/C][C]8.05882352941177[/C][/ROW]
[ROW][C]101[/C][C]64[/C][C]63.9411764705882[/C][C]0.058823529411768[/C][/ROW]
[ROW][C]102[/C][C]71[/C][C]69.4285714285714[/C][C]1.57142857142857[/C][/ROW]
[ROW][C]103[/C][C]60[/C][C]67.7083333333333[/C][C]-7.70833333333333[/C][/ROW]
[ROW][C]104[/C][C]66[/C][C]63.9411764705882[/C][C]2.05882352941177[/C][/ROW]
[ROW][C]105[/C][C]73[/C][C]74.1111111111111[/C][C]-1.11111111111111[/C][/ROW]
[ROW][C]106[/C][C]68[/C][C]58.1578947368421[/C][C]9.8421052631579[/C][/ROW]
[ROW][C]107[/C][C]66[/C][C]73.7727272727273[/C][C]-7.77272727272727[/C][/ROW]
[ROW][C]108[/C][C]54[/C][C]58.1578947368421[/C][C]-4.1578947368421[/C][/ROW]
[ROW][C]109[/C][C]68[/C][C]72.6428571428571[/C][C]-4.64285714285714[/C][/ROW]
[ROW][C]110[/C][C]65[/C][C]67.7083333333333[/C][C]-2.70833333333333[/C][/ROW]
[ROW][C]111[/C][C]95[/C][C]82.875[/C][C]12.125[/C][/ROW]
[ROW][C]112[/C][C]72[/C][C]68.4230769230769[/C][C]3.57692307692308[/C][/ROW]
[ROW][C]113[/C][C]75[/C][C]73.7727272727273[/C][C]1.22727272727273[/C][/ROW]
[ROW][C]114[/C][C]72[/C][C]68.4230769230769[/C][C]3.57692307692308[/C][/ROW]
[ROW][C]115[/C][C]71[/C][C]73.7727272727273[/C][C]-2.77272727272727[/C][/ROW]
[ROW][C]116[/C][C]68[/C][C]74.5[/C][C]-6.5[/C][/ROW]
[ROW][C]117[/C][C]65[/C][C]67[/C][C]-2[/C][/ROW]
[ROW][C]118[/C][C]77[/C][C]74.1111111111111[/C][C]2.88888888888889[/C][/ROW]
[ROW][C]119[/C][C]79[/C][C]74.1111111111111[/C][C]4.88888888888889[/C][/ROW]
[ROW][C]120[/C][C]73[/C][C]74.1111111111111[/C][C]-1.11111111111111[/C][/ROW]
[ROW][C]121[/C][C]54[/C][C]58.1578947368421[/C][C]-4.1578947368421[/C][/ROW]
[ROW][C]122[/C][C]74[/C][C]69.4285714285714[/C][C]4.57142857142857[/C][/ROW]
[ROW][C]123[/C][C]75[/C][C]72.6428571428571[/C][C]2.35714285714286[/C][/ROW]
[ROW][C]124[/C][C]77[/C][C]74.1111111111111[/C][C]2.88888888888889[/C][/ROW]
[ROW][C]125[/C][C]84[/C][C]82.875[/C][C]1.125[/C][/ROW]
[ROW][C]126[/C][C]67[/C][C]62.1724137931034[/C][C]4.82758620689656[/C][/ROW]
[ROW][C]127[/C][C]67[/C][C]67[/C][C]0[/C][/ROW]
[ROW][C]128[/C][C]65[/C][C]68.4230769230769[/C][C]-3.42307692307692[/C][/ROW]
[ROW][C]129[/C][C]74[/C][C]72.6428571428571[/C][C]1.35714285714286[/C][/ROW]
[ROW][C]130[/C][C]78[/C][C]73.7727272727273[/C][C]4.22727272727273[/C][/ROW]
[ROW][C]131[/C][C]67[/C][C]67.7083333333333[/C][C]-0.708333333333329[/C][/ROW]
[ROW][C]132[/C][C]77[/C][C]74.5[/C][C]2.5[/C][/ROW]
[ROW][C]133[/C][C]71[/C][C]68.4230769230769[/C][C]2.57692307692308[/C][/ROW]
[ROW][C]134[/C][C]62[/C][C]69.4285714285714[/C][C]-7.42857142857143[/C][/ROW]
[ROW][C]135[/C][C]62[/C][C]58.1578947368421[/C][C]3.8421052631579[/C][/ROW]
[ROW][C]136[/C][C]70[/C][C]67.7083333333333[/C][C]2.29166666666667[/C][/ROW]
[ROW][C]137[/C][C]73[/C][C]58.1578947368421[/C][C]14.8421052631579[/C][/ROW]
[ROW][C]138[/C][C]67[/C][C]68.4230769230769[/C][C]-1.42307692307692[/C][/ROW]
[ROW][C]139[/C][C]68[/C][C]73.7727272727273[/C][C]-5.77272727272727[/C][/ROW]
[ROW][C]140[/C][C]61[/C][C]58.1578947368421[/C][C]2.8421052631579[/C][/ROW]
[ROW][C]141[/C][C]66[/C][C]62.1724137931034[/C][C]3.82758620689656[/C][/ROW]
[ROW][C]142[/C][C]72[/C][C]69.4285714285714[/C][C]2.57142857142857[/C][/ROW]
[ROW][C]143[/C][C]69[/C][C]68.4230769230769[/C][C]0.57692307692308[/C][/ROW]
[ROW][C]144[/C][C]71[/C][C]73.7727272727273[/C][C]-2.77272727272727[/C][/ROW]
[ROW][C]145[/C][C]75[/C][C]67.7083333333333[/C][C]7.29166666666667[/C][/ROW]
[ROW][C]146[/C][C]73[/C][C]72.6428571428571[/C][C]0.357142857142861[/C][/ROW]
[ROW][C]147[/C][C]72[/C][C]67.7083333333333[/C][C]4.29166666666667[/C][/ROW]
[ROW][C]148[/C][C]73[/C][C]69.4285714285714[/C][C]3.57142857142857[/C][/ROW]
[ROW][C]149[/C][C]64[/C][C]62.1724137931034[/C][C]1.82758620689656[/C][/ROW]
[ROW][C]150[/C][C]76[/C][C]73.7727272727273[/C][C]2.22727272727273[/C][/ROW]
[ROW][C]151[/C][C]54[/C][C]58.1578947368421[/C][C]-4.1578947368421[/C][/ROW]
[ROW][C]152[/C][C]60[/C][C]62.1724137931034[/C][C]-2.17241379310344[/C][/ROW]
[ROW][C]153[/C][C]69[/C][C]68.4230769230769[/C][C]0.57692307692308[/C][/ROW]
[ROW][C]154[/C][C]71[/C][C]68.4230769230769[/C][C]2.57692307692308[/C][/ROW]
[ROW][C]155[/C][C]69[/C][C]67.7083333333333[/C][C]1.29166666666667[/C][/ROW]
[ROW][C]156[/C][C]65[/C][C]67.7083333333333[/C][C]-2.70833333333333[/C][/ROW]
[ROW][C]157[/C][C]68[/C][C]68.4230769230769[/C][C]-0.42307692307692[/C][/ROW]
[ROW][C]158[/C][C]66[/C][C]63.9411764705882[/C][C]2.05882352941177[/C][/ROW]
[ROW][C]159[/C][C]67[/C][C]62.1724137931034[/C][C]4.82758620689656[/C][/ROW]
[ROW][C]160[/C][C]72[/C][C]62.1724137931034[/C][C]9.82758620689656[/C][/ROW]
[ROW][C]161[/C][C]74[/C][C]74.5[/C][C]-0.5[/C][/ROW]
[ROW][C]162[/C][C]72[/C][C]67.7083333333333[/C][C]4.29166666666667[/C][/ROW]
[ROW][C]163[/C][C]78[/C][C]73.7727272727273[/C][C]4.22727272727273[/C][/ROW]
[ROW][C]164[/C][C]64[/C][C]67.7083333333333[/C][C]-3.70833333333333[/C][/ROW]
[ROW][C]165[/C][C]67[/C][C]67[/C][C]0[/C][/ROW]
[ROW][C]166[/C][C]77[/C][C]73.7727272727273[/C][C]3.22727272727273[/C][/ROW]
[ROW][C]167[/C][C]59[/C][C]62.1724137931034[/C][C]-3.17241379310344[/C][/ROW]
[ROW][C]168[/C][C]59[/C][C]62.1724137931034[/C][C]-3.17241379310344[/C][/ROW]
[ROW][C]169[/C][C]80[/C][C]74.5[/C][C]5.5[/C][/ROW]
[ROW][C]170[/C][C]75[/C][C]67.7083333333333[/C][C]7.29166666666667[/C][/ROW]
[ROW][C]171[/C][C]64[/C][C]67.7083333333333[/C][C]-3.70833333333333[/C][/ROW]
[ROW][C]172[/C][C]67[/C][C]69.4285714285714[/C][C]-2.42857142857143[/C][/ROW]
[ROW][C]173[/C][C]68[/C][C]74.1111111111111[/C][C]-6.11111111111111[/C][/ROW]
[ROW][C]174[/C][C]70[/C][C]67.7083333333333[/C][C]2.29166666666667[/C][/ROW]
[ROW][C]175[/C][C]64[/C][C]67[/C][C]-3[/C][/ROW]
[ROW][C]176[/C][C]76[/C][C]73.7727272727273[/C][C]2.22727272727273[/C][/ROW]
[ROW][C]177[/C][C]60[/C][C]62.1724137931034[/C][C]-2.17241379310344[/C][/ROW]
[ROW][C]178[/C][C]72[/C][C]67.7083333333333[/C][C]4.29166666666667[/C][/ROW]
[ROW][C]179[/C][C]63[/C][C]62.1724137931034[/C][C]0.827586206896555[/C][/ROW]
[ROW][C]180[/C][C]69[/C][C]67.7083333333333[/C][C]1.29166666666667[/C][/ROW]
[ROW][C]181[/C][C]71[/C][C]73.7727272727273[/C][C]-2.77272727272727[/C][/ROW]
[ROW][C]182[/C][C]63[/C][C]63.9411764705882[/C][C]-0.941176470588232[/C][/ROW]
[ROW][C]183[/C][C]66[/C][C]69.4285714285714[/C][C]-3.42857142857143[/C][/ROW]
[ROW][C]184[/C][C]65[/C][C]62.1724137931034[/C][C]2.82758620689656[/C][/ROW]
[ROW][C]185[/C][C]63[/C][C]62.1724137931034[/C][C]0.827586206896555[/C][/ROW]
[ROW][C]186[/C][C]66[/C][C]63.9411764705882[/C][C]2.05882352941177[/C][/ROW]
[ROW][C]187[/C][C]66[/C][C]67.7083333333333[/C][C]-1.70833333333333[/C][/ROW]
[ROW][C]188[/C][C]62[/C][C]62.1724137931034[/C][C]-0.172413793103445[/C][/ROW]
[ROW][C]189[/C][C]74[/C][C]73.7727272727273[/C][C]0.227272727272734[/C][/ROW]
[ROW][C]190[/C][C]63[/C][C]62.1724137931034[/C][C]0.827586206896555[/C][/ROW]
[ROW][C]191[/C][C]67[/C][C]72.6428571428571[/C][C]-5.64285714285714[/C][/ROW]
[ROW][C]192[/C][C]62[/C][C]68.4230769230769[/C][C]-6.42307692307692[/C][/ROW]
[ROW][C]193[/C][C]64[/C][C]68.4230769230769[/C][C]-4.42307692307692[/C][/ROW]
[ROW][C]194[/C][C]79[/C][C]74.5[/C][C]4.5[/C][/ROW]
[ROW][C]195[/C][C]78[/C][C]74.5[/C][C]3.5[/C][/ROW]
[ROW][C]196[/C][C]69[/C][C]69.4285714285714[/C][C]-0.428571428571431[/C][/ROW]
[ROW][C]197[/C][C]66[/C][C]62.1724137931034[/C][C]3.82758620689656[/C][/ROW]
[ROW][C]198[/C][C]69[/C][C]69.4285714285714[/C][C]-0.428571428571431[/C][/ROW]
[ROW][C]199[/C][C]67[/C][C]68.4230769230769[/C][C]-1.42307692307692[/C][/ROW]
[ROW][C]200[/C][C]76[/C][C]74.1111111111111[/C][C]1.88888888888889[/C][/ROW]
[ROW][C]201[/C][C]81[/C][C]74.1111111111111[/C][C]6.88888888888889[/C][/ROW]
[ROW][C]202[/C][C]65[/C][C]62.1724137931034[/C][C]2.82758620689656[/C][/ROW]
[ROW][C]203[/C][C]80[/C][C]73.7727272727273[/C][C]6.22727272727273[/C][/ROW]
[ROW][C]204[/C][C]73[/C][C]67.7083333333333[/C][C]5.29166666666667[/C][/ROW]
[ROW][C]205[/C][C]71[/C][C]74.5[/C][C]-3.5[/C][/ROW]
[ROW][C]206[/C][C]81[/C][C]82.875[/C][C]-1.875[/C][/ROW]
[ROW][C]207[/C][C]66[/C][C]67[/C][C]-1[/C][/ROW]
[ROW][C]208[/C][C]64[/C][C]63.9411764705882[/C][C]0.058823529411768[/C][/ROW]
[ROW][C]209[/C][C]71[/C][C]73.7727272727273[/C][C]-2.77272727272727[/C][/ROW]
[ROW][C]210[/C][C]70[/C][C]67.7083333333333[/C][C]2.29166666666667[/C][/ROW]
[ROW][C]211[/C][C]64[/C][C]58.1578947368421[/C][C]5.8421052631579[/C][/ROW]
[ROW][C]212[/C][C]82[/C][C]72.6428571428571[/C][C]9.35714285714286[/C][/ROW]
[ROW][C]213[/C][C]78[/C][C]82.875[/C][C]-4.875[/C][/ROW]
[ROW][C]214[/C][C]73[/C][C]67[/C][C]6[/C][/ROW]
[ROW][C]215[/C][C]63[/C][C]63.9411764705882[/C][C]-0.941176470588232[/C][/ROW]
[ROW][C]216[/C][C]69[/C][C]68.4230769230769[/C][C]0.57692307692308[/C][/ROW]
[ROW][C]217[/C][C]70[/C][C]69.4285714285714[/C][C]0.571428571428569[/C][/ROW]
[ROW][C]218[/C][C]74[/C][C]69.4285714285714[/C][C]4.57142857142857[/C][/ROW]
[ROW][C]219[/C][C]61[/C][C]67.7083333333333[/C][C]-6.70833333333333[/C][/ROW]
[ROW][C]220[/C][C]81[/C][C]73.7727272727273[/C][C]7.22727272727273[/C][/ROW]
[ROW][C]221[/C][C]58[/C][C]63.9411764705882[/C][C]-5.94117647058823[/C][/ROW]
[ROW][C]222[/C][C]47[/C][C]58.1578947368421[/C][C]-11.1578947368421[/C][/ROW]
[ROW][C]223[/C][C]62[/C][C]63.9411764705882[/C][C]-1.94117647058823[/C][/ROW]
[ROW][C]224[/C][C]67[/C][C]58.1578947368421[/C][C]8.8421052631579[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=165356&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=165356&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
170673
26768.4230769230769-1.42307692307692
35462.1724137931034-8.17241379310344
44858.1578947368421-10.1578947368421
567670
66058.15789473684211.8421052631579
77368.42307692307694.57692307692308
86567-2
97173.7727272727273-2.77272727272727
107268.42307692307693.57692307692308
116868.4230769230769-0.42307692307692
125963.9411764705882-4.94117647058823
136562.17241379310342.82758620689656
147258.157894736842113.8421052631579
156874.5-6.5
166962.17241379310346.82758620689656
176058.15789473684211.8421052631579
185458.1578947368421-4.1578947368421
195962.1724137931034-3.17241379310344
207272.6428571428571-0.642857142857139
216362.17241379310340.827586206896555
226263.9411764705882-1.94117647058823
235863.9411764705882-5.94117647058823
247173.7727272727273-2.77272727272727
256667-1
267374.1111111111111-1.11111111111111
277574.11111111111110.888888888888886
286868.4230769230769-0.42307692307692
2970673
307474.5-0.5
317073.7727272727273-3.77272727272727
325362.1724137931034-9.17241379310344
338582.8752.125
346569.4285714285714-4.42857142857143
357174.1111111111111-3.11111111111111
366769.4285714285714-2.42857142857143
377369.42857142857143.57142857142857
386167.7083333333333-6.70833333333333
396968.42307692307690.57692307692308
406667.7083333333333-1.70833333333333
416467.7083333333333-3.70833333333333
427672.64285714285713.35714285714286
437274.1111111111111-2.11111111111111
447272.6428571428571-0.642857142857139
456772.6428571428571-5.64285714285714
466768.4230769230769-1.42307692307692
4767670
486773.7727272727273-6.77272727272727
495662.1724137931034-6.17241379310344
505762.1724137931034-5.17241379310344
516767.7083333333333-0.708333333333329
526768.4230769230769-1.42307692307692
536567-2
546762.17241379310344.82758620689656
556763.94117647058823.05882352941177
567174.1111111111111-3.11111111111111
573858.1578947368421-20.1578947368421
585558.1578947368421-3.1578947368421
5971674
607682.875-6.875
615962.1724137931034-3.17241379310344
626367-4
635367-14
646968.42307692307690.57692307692308
657174.1111111111111-3.11111111111111
664558.1578947368421-13.1578947368421
676772.6428571428571-5.64285714285714
686868.4230769230769-0.42307692307692
696362.17241379310340.827586206896555
707063.94117647058826.05882352941177
716363.9411764705882-0.941176470588232
726667-1
736463.94117647058820.058823529411768
745662.1724137931034-6.17241379310344
756568.4230769230769-3.42307692307692
7670673
776567-2
786867.70833333333330.291666666666671
798174.11111111111116.88888888888889
806774.1111111111111-7.11111111111111
817882.875-4.875
827873.77272727272734.22727272727273
837672.64285714285713.35714285714286
848073.77272727272736.22727272727273
856162.1724137931034-1.17241379310344
867373.7727272727273-0.772727272727266
876667-1
887674.51.5
898682.8753.125
908074.11111111111115.88888888888889
917672.64285714285713.35714285714286
927272.6428571428571-0.642857142857139
9371674
946974.1111111111111-5.11111111111111
95776710
967268.42307692307693.57692307692308
976958.157894736842110.8421052631579
986868.4230769230769-0.42307692307692
9967670
1007263.94117647058828.05882352941177
1016463.94117647058820.058823529411768
1027169.42857142857141.57142857142857
1036067.7083333333333-7.70833333333333
1046663.94117647058822.05882352941177
1057374.1111111111111-1.11111111111111
1066858.15789473684219.8421052631579
1076673.7727272727273-7.77272727272727
1085458.1578947368421-4.1578947368421
1096872.6428571428571-4.64285714285714
1106567.7083333333333-2.70833333333333
1119582.87512.125
1127268.42307692307693.57692307692308
1137573.77272727272731.22727272727273
1147268.42307692307693.57692307692308
1157173.7727272727273-2.77272727272727
1166874.5-6.5
1176567-2
1187774.11111111111112.88888888888889
1197974.11111111111114.88888888888889
1207374.1111111111111-1.11111111111111
1215458.1578947368421-4.1578947368421
1227469.42857142857144.57142857142857
1237572.64285714285712.35714285714286
1247774.11111111111112.88888888888889
1258482.8751.125
1266762.17241379310344.82758620689656
12767670
1286568.4230769230769-3.42307692307692
1297472.64285714285711.35714285714286
1307873.77272727272734.22727272727273
1316767.7083333333333-0.708333333333329
1327774.52.5
1337168.42307692307692.57692307692308
1346269.4285714285714-7.42857142857143
1356258.15789473684213.8421052631579
1367067.70833333333332.29166666666667
1377358.157894736842114.8421052631579
1386768.4230769230769-1.42307692307692
1396873.7727272727273-5.77272727272727
1406158.15789473684212.8421052631579
1416662.17241379310343.82758620689656
1427269.42857142857142.57142857142857
1436968.42307692307690.57692307692308
1447173.7727272727273-2.77272727272727
1457567.70833333333337.29166666666667
1467372.64285714285710.357142857142861
1477267.70833333333334.29166666666667
1487369.42857142857143.57142857142857
1496462.17241379310341.82758620689656
1507673.77272727272732.22727272727273
1515458.1578947368421-4.1578947368421
1526062.1724137931034-2.17241379310344
1536968.42307692307690.57692307692308
1547168.42307692307692.57692307692308
1556967.70833333333331.29166666666667
1566567.7083333333333-2.70833333333333
1576868.4230769230769-0.42307692307692
1586663.94117647058822.05882352941177
1596762.17241379310344.82758620689656
1607262.17241379310349.82758620689656
1617474.5-0.5
1627267.70833333333334.29166666666667
1637873.77272727272734.22727272727273
1646467.7083333333333-3.70833333333333
16567670
1667773.77272727272733.22727272727273
1675962.1724137931034-3.17241379310344
1685962.1724137931034-3.17241379310344
1698074.55.5
1707567.70833333333337.29166666666667
1716467.7083333333333-3.70833333333333
1726769.4285714285714-2.42857142857143
1736874.1111111111111-6.11111111111111
1747067.70833333333332.29166666666667
1756467-3
1767673.77272727272732.22727272727273
1776062.1724137931034-2.17241379310344
1787267.70833333333334.29166666666667
1796362.17241379310340.827586206896555
1806967.70833333333331.29166666666667
1817173.7727272727273-2.77272727272727
1826363.9411764705882-0.941176470588232
1836669.4285714285714-3.42857142857143
1846562.17241379310342.82758620689656
1856362.17241379310340.827586206896555
1866663.94117647058822.05882352941177
1876667.7083333333333-1.70833333333333
1886262.1724137931034-0.172413793103445
1897473.77272727272730.227272727272734
1906362.17241379310340.827586206896555
1916772.6428571428571-5.64285714285714
1926268.4230769230769-6.42307692307692
1936468.4230769230769-4.42307692307692
1947974.54.5
1957874.53.5
1966969.4285714285714-0.428571428571431
1976662.17241379310343.82758620689656
1986969.4285714285714-0.428571428571431
1996768.4230769230769-1.42307692307692
2007674.11111111111111.88888888888889
2018174.11111111111116.88888888888889
2026562.17241379310342.82758620689656
2038073.77272727272736.22727272727273
2047367.70833333333335.29166666666667
2057174.5-3.5
2068182.875-1.875
2076667-1
2086463.94117647058820.058823529411768
2097173.7727272727273-2.77272727272727
2107067.70833333333332.29166666666667
2116458.15789473684215.8421052631579
2128272.64285714285719.35714285714286
2137882.875-4.875
21473676
2156363.9411764705882-0.941176470588232
2166968.42307692307690.57692307692308
2177069.42857142857140.571428571428569
2187469.42857142857144.57142857142857
2196167.7083333333333-6.70833333333333
2208173.77272727272737.22727272727273
2215863.9411764705882-5.94117647058823
2224758.1578947368421-11.1578947368421
2236263.9411764705882-1.94117647058823
2246758.15789473684218.8421052631579



Parameters (Session):
par1 = 0 ; par2 = none ; par3 = 3 ; par4 = no ; par5 = female ; par6 = bachelor ; par7 = all ; par8 = ATTLES all ; par9 = ATTLES all ;
Parameters (R input):
par1 = 0 ; par2 = none ; par3 = 3 ; par4 = no ; par5 = female ; par6 = bachelor ; par7 = all ; par8 = ATTLES all ; par9 = ATTLES all ;
R code (references can be found in the software module):
par9 <- 'ATTLES connected'
par8 <- 'ATTLES connected'
par7 <- 'all'
par6 <- 'bachelor'
par5 <- 'female'
par4 <- 'no'
par3 <- '3'
par2 <- 'none'
par1 <- '0'
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')
}