Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_regression_trees1.wasp
Title produced by softwareRecursive Partitioning (Regression Trees)
Date of computationSun, 18 Dec 2011 08:20:06 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/18/t1324214601ucx4xg3sd7pq9if.htm/, Retrieved Sun, 05 May 2024 10:20:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=156843, Retrieved Sun, 05 May 2024 10:20:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact175
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Notched Boxplots] [] [2011-12-13 15:13:41] [b98453cac15ba1066b407e146608df68]
- RMPD    [Recursive Partitioning (Regression Trees)] [] [2011-12-18 13:20:06] [d76b387543b13b5e3afd8ff9e5fdc89f] [Current]
Feedback Forum

Post a new message
Dataseries X:
13	1	0
12	1	0
11	1	0
10	1	1
8	1	1
7	1	0
10	1	1
8	1	1
13	1	1
11	1	1
8	1	1
9	1	0
12	1	0
11	0	1
9	1	0
8	1	1
9	1	1
8	1	0
11	1	1
10	1	0
15	1	0
11	1	1
16	1	1
12	1	1
11	1	1
11	1	0
10	0	1
8	1	1
11	1	1
11	1	1
13	1	1
15	0	1
12	1	0
14	0	1
12	1	1
7	1	1
8	1	1
12	1	0
10	0	1
9	1	1
12	0	1
10	1	0
9	0	1
10	1	1
13	0	1
8	1	0
11	0	0
11	0	1
9	1	1
9	1	1
12	0	0
10	0	0
9	0	0
14	0	1
8	0	1
9	0	0
14	0	0
8	0	1
16	0	1
14	0	1
14	0	0
8	0	1
11	0	1
11	0	0
13	0	1
12	0	1
9	0	1
10	0	0
12	0	1
11	0	1
15	0	0
14	0	1
16	1	1
16	1	1
9	1	1
10	1	1
14	1	1
14	0	1
21	0	0
14	1	0
17	1	1
18	1	0
16	1	1
14	0	1
13	0	0
17	1	1
10	1	1
17	1	0
13	1	1
18	1	1
14	1	0
14	1	1
15	1	0
12	0	1
17	0	1
15	0	1
12	0	0
13	0	1
14	0	0
18	0	1
16	1	1
21	1	0
20	1	1
10	0	0
16	0	0
19	1	0
12	1	1
13	0	1
20	0	0
14	0	0
10	0	1
13	0	0
11	0	0
13	0	1
13	0	1
11	0	1
15	0	0
14	0	0
10	0	0
24	1	0
23	1	1
19	1	0
19	1	0
22	1	1
16	1	1
16	0	0
20	1	1
11	1	0
20	1	1
15	1	0
21	1	0
17	1	0
25	0	0
17	0	1
16	0	0
17	0	0
15	0	0
15	0	0
26	1	0
25	1	0
20	1	0
20	1	1
26	1	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=156843&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=156843&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=156843&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net







Goodness of Fit
Correlation0.2196
R-squared0.0482
RMSE4.1163

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.2196[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0482[/C][/ROW]
[ROW][C]RMSE[/C][C]4.1163[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=156843&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=156843&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.2196
R-squared0.0482
RMSE4.1163







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
11314.5483870967742-1.54838709677419
21214.5483870967742-2.54838709677419
31114.5483870967742-3.54838709677419
41012.679012345679-2.67901234567901
5812.679012345679-4.67901234567901
6714.5483870967742-7.54838709677419
71012.679012345679-2.67901234567901
8812.679012345679-4.67901234567901
91312.6790123456790.320987654320987
101112.679012345679-1.67901234567901
11812.679012345679-4.67901234567901
12914.5483870967742-5.54838709677419
131214.5483870967742-2.54838709677419
141112.679012345679-1.67901234567901
15914.5483870967742-5.54838709677419
16812.679012345679-4.67901234567901
17912.679012345679-3.67901234567901
18814.5483870967742-6.54838709677419
191112.679012345679-1.67901234567901
201014.5483870967742-4.54838709677419
211514.54838709677420.451612903225806
221112.679012345679-1.67901234567901
231612.6790123456793.32098765432099
241212.679012345679-0.679012345679013
251112.679012345679-1.67901234567901
261114.5483870967742-3.54838709677419
271012.679012345679-2.67901234567901
28812.679012345679-4.67901234567901
291112.679012345679-1.67901234567901
301112.679012345679-1.67901234567901
311312.6790123456790.320987654320987
321512.6790123456792.32098765432099
331214.5483870967742-2.54838709677419
341412.6790123456791.32098765432099
351212.679012345679-0.679012345679013
36712.679012345679-5.67901234567901
37812.679012345679-4.67901234567901
381214.5483870967742-2.54838709677419
391012.679012345679-2.67901234567901
40912.679012345679-3.67901234567901
411212.679012345679-0.679012345679013
421014.5483870967742-4.54838709677419
43912.679012345679-3.67901234567901
441012.679012345679-2.67901234567901
451312.6790123456790.320987654320987
46814.5483870967742-6.54838709677419
471114.5483870967742-3.54838709677419
481112.679012345679-1.67901234567901
49912.679012345679-3.67901234567901
50912.679012345679-3.67901234567901
511214.5483870967742-2.54838709677419
521014.5483870967742-4.54838709677419
53914.5483870967742-5.54838709677419
541412.6790123456791.32098765432099
55812.679012345679-4.67901234567901
56914.5483870967742-5.54838709677419
571414.5483870967742-0.548387096774194
58812.679012345679-4.67901234567901
591612.6790123456793.32098765432099
601412.6790123456791.32098765432099
611414.5483870967742-0.548387096774194
62812.679012345679-4.67901234567901
631112.679012345679-1.67901234567901
641114.5483870967742-3.54838709677419
651312.6790123456790.320987654320987
661212.679012345679-0.679012345679013
67912.679012345679-3.67901234567901
681014.5483870967742-4.54838709677419
691212.679012345679-0.679012345679013
701112.679012345679-1.67901234567901
711514.54838709677420.451612903225806
721412.6790123456791.32098765432099
731612.6790123456793.32098765432099
741612.6790123456793.32098765432099
75912.679012345679-3.67901234567901
761012.679012345679-2.67901234567901
771412.6790123456791.32098765432099
781412.6790123456791.32098765432099
792114.54838709677426.45161290322581
801414.5483870967742-0.548387096774194
811712.6790123456794.32098765432099
821814.54838709677423.45161290322581
831612.6790123456793.32098765432099
841412.6790123456791.32098765432099
851314.5483870967742-1.54838709677419
861712.6790123456794.32098765432099
871012.679012345679-2.67901234567901
881714.54838709677422.45161290322581
891312.6790123456790.320987654320987
901812.6790123456795.32098765432099
911414.5483870967742-0.548387096774194
921412.6790123456791.32098765432099
931514.54838709677420.451612903225806
941212.679012345679-0.679012345679013
951712.6790123456794.32098765432099
961512.6790123456792.32098765432099
971214.5483870967742-2.54838709677419
981312.6790123456790.320987654320987
991414.5483870967742-0.548387096774194
1001812.6790123456795.32098765432099
1011612.6790123456793.32098765432099
1022114.54838709677426.45161290322581
1032012.6790123456797.32098765432099
1041014.5483870967742-4.54838709677419
1051614.54838709677421.45161290322581
1061914.54838709677424.45161290322581
1071212.679012345679-0.679012345679013
1081312.6790123456790.320987654320987
1092014.54838709677425.45161290322581
1101414.5483870967742-0.548387096774194
1111012.679012345679-2.67901234567901
1121314.5483870967742-1.54838709677419
1131114.5483870967742-3.54838709677419
1141312.6790123456790.320987654320987
1151312.6790123456790.320987654320987
1161112.679012345679-1.67901234567901
1171514.54838709677420.451612903225806
1181414.5483870967742-0.548387096774194
1191014.5483870967742-4.54838709677419
1202414.54838709677429.45161290322581
1212312.67901234567910.320987654321
1221914.54838709677424.45161290322581
1231914.54838709677424.45161290322581
1242212.6790123456799.32098765432099
1251612.6790123456793.32098765432099
1261614.54838709677421.45161290322581
1272012.6790123456797.32098765432099
1281114.5483870967742-3.54838709677419
1292012.6790123456797.32098765432099
1301514.54838709677420.451612903225806
1312114.54838709677426.45161290322581
1321714.54838709677422.45161290322581
1332514.548387096774210.4516129032258
1341712.6790123456794.32098765432099
1351614.54838709677421.45161290322581
1361714.54838709677422.45161290322581
1371514.54838709677420.451612903225806
1381514.54838709677420.451612903225806
1392614.548387096774211.4516129032258
1402514.548387096774210.4516129032258
1412014.54838709677425.45161290322581
1422012.6790123456797.32098765432099
1432614.548387096774211.4516129032258

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 13 & 14.5483870967742 & -1.54838709677419 \tabularnewline
2 & 12 & 14.5483870967742 & -2.54838709677419 \tabularnewline
3 & 11 & 14.5483870967742 & -3.54838709677419 \tabularnewline
4 & 10 & 12.679012345679 & -2.67901234567901 \tabularnewline
5 & 8 & 12.679012345679 & -4.67901234567901 \tabularnewline
6 & 7 & 14.5483870967742 & -7.54838709677419 \tabularnewline
7 & 10 & 12.679012345679 & -2.67901234567901 \tabularnewline
8 & 8 & 12.679012345679 & -4.67901234567901 \tabularnewline
9 & 13 & 12.679012345679 & 0.320987654320987 \tabularnewline
10 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
11 & 8 & 12.679012345679 & -4.67901234567901 \tabularnewline
12 & 9 & 14.5483870967742 & -5.54838709677419 \tabularnewline
13 & 12 & 14.5483870967742 & -2.54838709677419 \tabularnewline
14 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
15 & 9 & 14.5483870967742 & -5.54838709677419 \tabularnewline
16 & 8 & 12.679012345679 & -4.67901234567901 \tabularnewline
17 & 9 & 12.679012345679 & -3.67901234567901 \tabularnewline
18 & 8 & 14.5483870967742 & -6.54838709677419 \tabularnewline
19 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
20 & 10 & 14.5483870967742 & -4.54838709677419 \tabularnewline
21 & 15 & 14.5483870967742 & 0.451612903225806 \tabularnewline
22 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
23 & 16 & 12.679012345679 & 3.32098765432099 \tabularnewline
24 & 12 & 12.679012345679 & -0.679012345679013 \tabularnewline
25 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
26 & 11 & 14.5483870967742 & -3.54838709677419 \tabularnewline
27 & 10 & 12.679012345679 & -2.67901234567901 \tabularnewline
28 & 8 & 12.679012345679 & -4.67901234567901 \tabularnewline
29 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
30 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
31 & 13 & 12.679012345679 & 0.320987654320987 \tabularnewline
32 & 15 & 12.679012345679 & 2.32098765432099 \tabularnewline
33 & 12 & 14.5483870967742 & -2.54838709677419 \tabularnewline
34 & 14 & 12.679012345679 & 1.32098765432099 \tabularnewline
35 & 12 & 12.679012345679 & -0.679012345679013 \tabularnewline
36 & 7 & 12.679012345679 & -5.67901234567901 \tabularnewline
37 & 8 & 12.679012345679 & -4.67901234567901 \tabularnewline
38 & 12 & 14.5483870967742 & -2.54838709677419 \tabularnewline
39 & 10 & 12.679012345679 & -2.67901234567901 \tabularnewline
40 & 9 & 12.679012345679 & -3.67901234567901 \tabularnewline
41 & 12 & 12.679012345679 & -0.679012345679013 \tabularnewline
42 & 10 & 14.5483870967742 & -4.54838709677419 \tabularnewline
43 & 9 & 12.679012345679 & -3.67901234567901 \tabularnewline
44 & 10 & 12.679012345679 & -2.67901234567901 \tabularnewline
45 & 13 & 12.679012345679 & 0.320987654320987 \tabularnewline
46 & 8 & 14.5483870967742 & -6.54838709677419 \tabularnewline
47 & 11 & 14.5483870967742 & -3.54838709677419 \tabularnewline
48 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
49 & 9 & 12.679012345679 & -3.67901234567901 \tabularnewline
50 & 9 & 12.679012345679 & -3.67901234567901 \tabularnewline
51 & 12 & 14.5483870967742 & -2.54838709677419 \tabularnewline
52 & 10 & 14.5483870967742 & -4.54838709677419 \tabularnewline
53 & 9 & 14.5483870967742 & -5.54838709677419 \tabularnewline
54 & 14 & 12.679012345679 & 1.32098765432099 \tabularnewline
55 & 8 & 12.679012345679 & -4.67901234567901 \tabularnewline
56 & 9 & 14.5483870967742 & -5.54838709677419 \tabularnewline
57 & 14 & 14.5483870967742 & -0.548387096774194 \tabularnewline
58 & 8 & 12.679012345679 & -4.67901234567901 \tabularnewline
59 & 16 & 12.679012345679 & 3.32098765432099 \tabularnewline
60 & 14 & 12.679012345679 & 1.32098765432099 \tabularnewline
61 & 14 & 14.5483870967742 & -0.548387096774194 \tabularnewline
62 & 8 & 12.679012345679 & -4.67901234567901 \tabularnewline
63 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
64 & 11 & 14.5483870967742 & -3.54838709677419 \tabularnewline
65 & 13 & 12.679012345679 & 0.320987654320987 \tabularnewline
66 & 12 & 12.679012345679 & -0.679012345679013 \tabularnewline
67 & 9 & 12.679012345679 & -3.67901234567901 \tabularnewline
68 & 10 & 14.5483870967742 & -4.54838709677419 \tabularnewline
69 & 12 & 12.679012345679 & -0.679012345679013 \tabularnewline
70 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
71 & 15 & 14.5483870967742 & 0.451612903225806 \tabularnewline
72 & 14 & 12.679012345679 & 1.32098765432099 \tabularnewline
73 & 16 & 12.679012345679 & 3.32098765432099 \tabularnewline
74 & 16 & 12.679012345679 & 3.32098765432099 \tabularnewline
75 & 9 & 12.679012345679 & -3.67901234567901 \tabularnewline
76 & 10 & 12.679012345679 & -2.67901234567901 \tabularnewline
77 & 14 & 12.679012345679 & 1.32098765432099 \tabularnewline
78 & 14 & 12.679012345679 & 1.32098765432099 \tabularnewline
79 & 21 & 14.5483870967742 & 6.45161290322581 \tabularnewline
80 & 14 & 14.5483870967742 & -0.548387096774194 \tabularnewline
81 & 17 & 12.679012345679 & 4.32098765432099 \tabularnewline
82 & 18 & 14.5483870967742 & 3.45161290322581 \tabularnewline
83 & 16 & 12.679012345679 & 3.32098765432099 \tabularnewline
84 & 14 & 12.679012345679 & 1.32098765432099 \tabularnewline
85 & 13 & 14.5483870967742 & -1.54838709677419 \tabularnewline
86 & 17 & 12.679012345679 & 4.32098765432099 \tabularnewline
87 & 10 & 12.679012345679 & -2.67901234567901 \tabularnewline
88 & 17 & 14.5483870967742 & 2.45161290322581 \tabularnewline
89 & 13 & 12.679012345679 & 0.320987654320987 \tabularnewline
90 & 18 & 12.679012345679 & 5.32098765432099 \tabularnewline
91 & 14 & 14.5483870967742 & -0.548387096774194 \tabularnewline
92 & 14 & 12.679012345679 & 1.32098765432099 \tabularnewline
93 & 15 & 14.5483870967742 & 0.451612903225806 \tabularnewline
94 & 12 & 12.679012345679 & -0.679012345679013 \tabularnewline
95 & 17 & 12.679012345679 & 4.32098765432099 \tabularnewline
96 & 15 & 12.679012345679 & 2.32098765432099 \tabularnewline
97 & 12 & 14.5483870967742 & -2.54838709677419 \tabularnewline
98 & 13 & 12.679012345679 & 0.320987654320987 \tabularnewline
99 & 14 & 14.5483870967742 & -0.548387096774194 \tabularnewline
100 & 18 & 12.679012345679 & 5.32098765432099 \tabularnewline
101 & 16 & 12.679012345679 & 3.32098765432099 \tabularnewline
102 & 21 & 14.5483870967742 & 6.45161290322581 \tabularnewline
103 & 20 & 12.679012345679 & 7.32098765432099 \tabularnewline
104 & 10 & 14.5483870967742 & -4.54838709677419 \tabularnewline
105 & 16 & 14.5483870967742 & 1.45161290322581 \tabularnewline
106 & 19 & 14.5483870967742 & 4.45161290322581 \tabularnewline
107 & 12 & 12.679012345679 & -0.679012345679013 \tabularnewline
108 & 13 & 12.679012345679 & 0.320987654320987 \tabularnewline
109 & 20 & 14.5483870967742 & 5.45161290322581 \tabularnewline
110 & 14 & 14.5483870967742 & -0.548387096774194 \tabularnewline
111 & 10 & 12.679012345679 & -2.67901234567901 \tabularnewline
112 & 13 & 14.5483870967742 & -1.54838709677419 \tabularnewline
113 & 11 & 14.5483870967742 & -3.54838709677419 \tabularnewline
114 & 13 & 12.679012345679 & 0.320987654320987 \tabularnewline
115 & 13 & 12.679012345679 & 0.320987654320987 \tabularnewline
116 & 11 & 12.679012345679 & -1.67901234567901 \tabularnewline
117 & 15 & 14.5483870967742 & 0.451612903225806 \tabularnewline
118 & 14 & 14.5483870967742 & -0.548387096774194 \tabularnewline
119 & 10 & 14.5483870967742 & -4.54838709677419 \tabularnewline
120 & 24 & 14.5483870967742 & 9.45161290322581 \tabularnewline
121 & 23 & 12.679012345679 & 10.320987654321 \tabularnewline
122 & 19 & 14.5483870967742 & 4.45161290322581 \tabularnewline
123 & 19 & 14.5483870967742 & 4.45161290322581 \tabularnewline
124 & 22 & 12.679012345679 & 9.32098765432099 \tabularnewline
125 & 16 & 12.679012345679 & 3.32098765432099 \tabularnewline
126 & 16 & 14.5483870967742 & 1.45161290322581 \tabularnewline
127 & 20 & 12.679012345679 & 7.32098765432099 \tabularnewline
128 & 11 & 14.5483870967742 & -3.54838709677419 \tabularnewline
129 & 20 & 12.679012345679 & 7.32098765432099 \tabularnewline
130 & 15 & 14.5483870967742 & 0.451612903225806 \tabularnewline
131 & 21 & 14.5483870967742 & 6.45161290322581 \tabularnewline
132 & 17 & 14.5483870967742 & 2.45161290322581 \tabularnewline
133 & 25 & 14.5483870967742 & 10.4516129032258 \tabularnewline
134 & 17 & 12.679012345679 & 4.32098765432099 \tabularnewline
135 & 16 & 14.5483870967742 & 1.45161290322581 \tabularnewline
136 & 17 & 14.5483870967742 & 2.45161290322581 \tabularnewline
137 & 15 & 14.5483870967742 & 0.451612903225806 \tabularnewline
138 & 15 & 14.5483870967742 & 0.451612903225806 \tabularnewline
139 & 26 & 14.5483870967742 & 11.4516129032258 \tabularnewline
140 & 25 & 14.5483870967742 & 10.4516129032258 \tabularnewline
141 & 20 & 14.5483870967742 & 5.45161290322581 \tabularnewline
142 & 20 & 12.679012345679 & 7.32098765432099 \tabularnewline
143 & 26 & 14.5483870967742 & 11.4516129032258 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=156843&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]13[/C][C]14.5483870967742[/C][C]-1.54838709677419[/C][/ROW]
[ROW][C]2[/C][C]12[/C][C]14.5483870967742[/C][C]-2.54838709677419[/C][/ROW]
[ROW][C]3[/C][C]11[/C][C]14.5483870967742[/C][C]-3.54838709677419[/C][/ROW]
[ROW][C]4[/C][C]10[/C][C]12.679012345679[/C][C]-2.67901234567901[/C][/ROW]
[ROW][C]5[/C][C]8[/C][C]12.679012345679[/C][C]-4.67901234567901[/C][/ROW]
[ROW][C]6[/C][C]7[/C][C]14.5483870967742[/C][C]-7.54838709677419[/C][/ROW]
[ROW][C]7[/C][C]10[/C][C]12.679012345679[/C][C]-2.67901234567901[/C][/ROW]
[ROW][C]8[/C][C]8[/C][C]12.679012345679[/C][C]-4.67901234567901[/C][/ROW]
[ROW][C]9[/C][C]13[/C][C]12.679012345679[/C][C]0.320987654320987[/C][/ROW]
[ROW][C]10[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]11[/C][C]8[/C][C]12.679012345679[/C][C]-4.67901234567901[/C][/ROW]
[ROW][C]12[/C][C]9[/C][C]14.5483870967742[/C][C]-5.54838709677419[/C][/ROW]
[ROW][C]13[/C][C]12[/C][C]14.5483870967742[/C][C]-2.54838709677419[/C][/ROW]
[ROW][C]14[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]15[/C][C]9[/C][C]14.5483870967742[/C][C]-5.54838709677419[/C][/ROW]
[ROW][C]16[/C][C]8[/C][C]12.679012345679[/C][C]-4.67901234567901[/C][/ROW]
[ROW][C]17[/C][C]9[/C][C]12.679012345679[/C][C]-3.67901234567901[/C][/ROW]
[ROW][C]18[/C][C]8[/C][C]14.5483870967742[/C][C]-6.54838709677419[/C][/ROW]
[ROW][C]19[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]20[/C][C]10[/C][C]14.5483870967742[/C][C]-4.54838709677419[/C][/ROW]
[ROW][C]21[/C][C]15[/C][C]14.5483870967742[/C][C]0.451612903225806[/C][/ROW]
[ROW][C]22[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]23[/C][C]16[/C][C]12.679012345679[/C][C]3.32098765432099[/C][/ROW]
[ROW][C]24[/C][C]12[/C][C]12.679012345679[/C][C]-0.679012345679013[/C][/ROW]
[ROW][C]25[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]26[/C][C]11[/C][C]14.5483870967742[/C][C]-3.54838709677419[/C][/ROW]
[ROW][C]27[/C][C]10[/C][C]12.679012345679[/C][C]-2.67901234567901[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]12.679012345679[/C][C]-4.67901234567901[/C][/ROW]
[ROW][C]29[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]30[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]31[/C][C]13[/C][C]12.679012345679[/C][C]0.320987654320987[/C][/ROW]
[ROW][C]32[/C][C]15[/C][C]12.679012345679[/C][C]2.32098765432099[/C][/ROW]
[ROW][C]33[/C][C]12[/C][C]14.5483870967742[/C][C]-2.54838709677419[/C][/ROW]
[ROW][C]34[/C][C]14[/C][C]12.679012345679[/C][C]1.32098765432099[/C][/ROW]
[ROW][C]35[/C][C]12[/C][C]12.679012345679[/C][C]-0.679012345679013[/C][/ROW]
[ROW][C]36[/C][C]7[/C][C]12.679012345679[/C][C]-5.67901234567901[/C][/ROW]
[ROW][C]37[/C][C]8[/C][C]12.679012345679[/C][C]-4.67901234567901[/C][/ROW]
[ROW][C]38[/C][C]12[/C][C]14.5483870967742[/C][C]-2.54838709677419[/C][/ROW]
[ROW][C]39[/C][C]10[/C][C]12.679012345679[/C][C]-2.67901234567901[/C][/ROW]
[ROW][C]40[/C][C]9[/C][C]12.679012345679[/C][C]-3.67901234567901[/C][/ROW]
[ROW][C]41[/C][C]12[/C][C]12.679012345679[/C][C]-0.679012345679013[/C][/ROW]
[ROW][C]42[/C][C]10[/C][C]14.5483870967742[/C][C]-4.54838709677419[/C][/ROW]
[ROW][C]43[/C][C]9[/C][C]12.679012345679[/C][C]-3.67901234567901[/C][/ROW]
[ROW][C]44[/C][C]10[/C][C]12.679012345679[/C][C]-2.67901234567901[/C][/ROW]
[ROW][C]45[/C][C]13[/C][C]12.679012345679[/C][C]0.320987654320987[/C][/ROW]
[ROW][C]46[/C][C]8[/C][C]14.5483870967742[/C][C]-6.54838709677419[/C][/ROW]
[ROW][C]47[/C][C]11[/C][C]14.5483870967742[/C][C]-3.54838709677419[/C][/ROW]
[ROW][C]48[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]49[/C][C]9[/C][C]12.679012345679[/C][C]-3.67901234567901[/C][/ROW]
[ROW][C]50[/C][C]9[/C][C]12.679012345679[/C][C]-3.67901234567901[/C][/ROW]
[ROW][C]51[/C][C]12[/C][C]14.5483870967742[/C][C]-2.54838709677419[/C][/ROW]
[ROW][C]52[/C][C]10[/C][C]14.5483870967742[/C][C]-4.54838709677419[/C][/ROW]
[ROW][C]53[/C][C]9[/C][C]14.5483870967742[/C][C]-5.54838709677419[/C][/ROW]
[ROW][C]54[/C][C]14[/C][C]12.679012345679[/C][C]1.32098765432099[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]12.679012345679[/C][C]-4.67901234567901[/C][/ROW]
[ROW][C]56[/C][C]9[/C][C]14.5483870967742[/C][C]-5.54838709677419[/C][/ROW]
[ROW][C]57[/C][C]14[/C][C]14.5483870967742[/C][C]-0.548387096774194[/C][/ROW]
[ROW][C]58[/C][C]8[/C][C]12.679012345679[/C][C]-4.67901234567901[/C][/ROW]
[ROW][C]59[/C][C]16[/C][C]12.679012345679[/C][C]3.32098765432099[/C][/ROW]
[ROW][C]60[/C][C]14[/C][C]12.679012345679[/C][C]1.32098765432099[/C][/ROW]
[ROW][C]61[/C][C]14[/C][C]14.5483870967742[/C][C]-0.548387096774194[/C][/ROW]
[ROW][C]62[/C][C]8[/C][C]12.679012345679[/C][C]-4.67901234567901[/C][/ROW]
[ROW][C]63[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]64[/C][C]11[/C][C]14.5483870967742[/C][C]-3.54838709677419[/C][/ROW]
[ROW][C]65[/C][C]13[/C][C]12.679012345679[/C][C]0.320987654320987[/C][/ROW]
[ROW][C]66[/C][C]12[/C][C]12.679012345679[/C][C]-0.679012345679013[/C][/ROW]
[ROW][C]67[/C][C]9[/C][C]12.679012345679[/C][C]-3.67901234567901[/C][/ROW]
[ROW][C]68[/C][C]10[/C][C]14.5483870967742[/C][C]-4.54838709677419[/C][/ROW]
[ROW][C]69[/C][C]12[/C][C]12.679012345679[/C][C]-0.679012345679013[/C][/ROW]
[ROW][C]70[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]71[/C][C]15[/C][C]14.5483870967742[/C][C]0.451612903225806[/C][/ROW]
[ROW][C]72[/C][C]14[/C][C]12.679012345679[/C][C]1.32098765432099[/C][/ROW]
[ROW][C]73[/C][C]16[/C][C]12.679012345679[/C][C]3.32098765432099[/C][/ROW]
[ROW][C]74[/C][C]16[/C][C]12.679012345679[/C][C]3.32098765432099[/C][/ROW]
[ROW][C]75[/C][C]9[/C][C]12.679012345679[/C][C]-3.67901234567901[/C][/ROW]
[ROW][C]76[/C][C]10[/C][C]12.679012345679[/C][C]-2.67901234567901[/C][/ROW]
[ROW][C]77[/C][C]14[/C][C]12.679012345679[/C][C]1.32098765432099[/C][/ROW]
[ROW][C]78[/C][C]14[/C][C]12.679012345679[/C][C]1.32098765432099[/C][/ROW]
[ROW][C]79[/C][C]21[/C][C]14.5483870967742[/C][C]6.45161290322581[/C][/ROW]
[ROW][C]80[/C][C]14[/C][C]14.5483870967742[/C][C]-0.548387096774194[/C][/ROW]
[ROW][C]81[/C][C]17[/C][C]12.679012345679[/C][C]4.32098765432099[/C][/ROW]
[ROW][C]82[/C][C]18[/C][C]14.5483870967742[/C][C]3.45161290322581[/C][/ROW]
[ROW][C]83[/C][C]16[/C][C]12.679012345679[/C][C]3.32098765432099[/C][/ROW]
[ROW][C]84[/C][C]14[/C][C]12.679012345679[/C][C]1.32098765432099[/C][/ROW]
[ROW][C]85[/C][C]13[/C][C]14.5483870967742[/C][C]-1.54838709677419[/C][/ROW]
[ROW][C]86[/C][C]17[/C][C]12.679012345679[/C][C]4.32098765432099[/C][/ROW]
[ROW][C]87[/C][C]10[/C][C]12.679012345679[/C][C]-2.67901234567901[/C][/ROW]
[ROW][C]88[/C][C]17[/C][C]14.5483870967742[/C][C]2.45161290322581[/C][/ROW]
[ROW][C]89[/C][C]13[/C][C]12.679012345679[/C][C]0.320987654320987[/C][/ROW]
[ROW][C]90[/C][C]18[/C][C]12.679012345679[/C][C]5.32098765432099[/C][/ROW]
[ROW][C]91[/C][C]14[/C][C]14.5483870967742[/C][C]-0.548387096774194[/C][/ROW]
[ROW][C]92[/C][C]14[/C][C]12.679012345679[/C][C]1.32098765432099[/C][/ROW]
[ROW][C]93[/C][C]15[/C][C]14.5483870967742[/C][C]0.451612903225806[/C][/ROW]
[ROW][C]94[/C][C]12[/C][C]12.679012345679[/C][C]-0.679012345679013[/C][/ROW]
[ROW][C]95[/C][C]17[/C][C]12.679012345679[/C][C]4.32098765432099[/C][/ROW]
[ROW][C]96[/C][C]15[/C][C]12.679012345679[/C][C]2.32098765432099[/C][/ROW]
[ROW][C]97[/C][C]12[/C][C]14.5483870967742[/C][C]-2.54838709677419[/C][/ROW]
[ROW][C]98[/C][C]13[/C][C]12.679012345679[/C][C]0.320987654320987[/C][/ROW]
[ROW][C]99[/C][C]14[/C][C]14.5483870967742[/C][C]-0.548387096774194[/C][/ROW]
[ROW][C]100[/C][C]18[/C][C]12.679012345679[/C][C]5.32098765432099[/C][/ROW]
[ROW][C]101[/C][C]16[/C][C]12.679012345679[/C][C]3.32098765432099[/C][/ROW]
[ROW][C]102[/C][C]21[/C][C]14.5483870967742[/C][C]6.45161290322581[/C][/ROW]
[ROW][C]103[/C][C]20[/C][C]12.679012345679[/C][C]7.32098765432099[/C][/ROW]
[ROW][C]104[/C][C]10[/C][C]14.5483870967742[/C][C]-4.54838709677419[/C][/ROW]
[ROW][C]105[/C][C]16[/C][C]14.5483870967742[/C][C]1.45161290322581[/C][/ROW]
[ROW][C]106[/C][C]19[/C][C]14.5483870967742[/C][C]4.45161290322581[/C][/ROW]
[ROW][C]107[/C][C]12[/C][C]12.679012345679[/C][C]-0.679012345679013[/C][/ROW]
[ROW][C]108[/C][C]13[/C][C]12.679012345679[/C][C]0.320987654320987[/C][/ROW]
[ROW][C]109[/C][C]20[/C][C]14.5483870967742[/C][C]5.45161290322581[/C][/ROW]
[ROW][C]110[/C][C]14[/C][C]14.5483870967742[/C][C]-0.548387096774194[/C][/ROW]
[ROW][C]111[/C][C]10[/C][C]12.679012345679[/C][C]-2.67901234567901[/C][/ROW]
[ROW][C]112[/C][C]13[/C][C]14.5483870967742[/C][C]-1.54838709677419[/C][/ROW]
[ROW][C]113[/C][C]11[/C][C]14.5483870967742[/C][C]-3.54838709677419[/C][/ROW]
[ROW][C]114[/C][C]13[/C][C]12.679012345679[/C][C]0.320987654320987[/C][/ROW]
[ROW][C]115[/C][C]13[/C][C]12.679012345679[/C][C]0.320987654320987[/C][/ROW]
[ROW][C]116[/C][C]11[/C][C]12.679012345679[/C][C]-1.67901234567901[/C][/ROW]
[ROW][C]117[/C][C]15[/C][C]14.5483870967742[/C][C]0.451612903225806[/C][/ROW]
[ROW][C]118[/C][C]14[/C][C]14.5483870967742[/C][C]-0.548387096774194[/C][/ROW]
[ROW][C]119[/C][C]10[/C][C]14.5483870967742[/C][C]-4.54838709677419[/C][/ROW]
[ROW][C]120[/C][C]24[/C][C]14.5483870967742[/C][C]9.45161290322581[/C][/ROW]
[ROW][C]121[/C][C]23[/C][C]12.679012345679[/C][C]10.320987654321[/C][/ROW]
[ROW][C]122[/C][C]19[/C][C]14.5483870967742[/C][C]4.45161290322581[/C][/ROW]
[ROW][C]123[/C][C]19[/C][C]14.5483870967742[/C][C]4.45161290322581[/C][/ROW]
[ROW][C]124[/C][C]22[/C][C]12.679012345679[/C][C]9.32098765432099[/C][/ROW]
[ROW][C]125[/C][C]16[/C][C]12.679012345679[/C][C]3.32098765432099[/C][/ROW]
[ROW][C]126[/C][C]16[/C][C]14.5483870967742[/C][C]1.45161290322581[/C][/ROW]
[ROW][C]127[/C][C]20[/C][C]12.679012345679[/C][C]7.32098765432099[/C][/ROW]
[ROW][C]128[/C][C]11[/C][C]14.5483870967742[/C][C]-3.54838709677419[/C][/ROW]
[ROW][C]129[/C][C]20[/C][C]12.679012345679[/C][C]7.32098765432099[/C][/ROW]
[ROW][C]130[/C][C]15[/C][C]14.5483870967742[/C][C]0.451612903225806[/C][/ROW]
[ROW][C]131[/C][C]21[/C][C]14.5483870967742[/C][C]6.45161290322581[/C][/ROW]
[ROW][C]132[/C][C]17[/C][C]14.5483870967742[/C][C]2.45161290322581[/C][/ROW]
[ROW][C]133[/C][C]25[/C][C]14.5483870967742[/C][C]10.4516129032258[/C][/ROW]
[ROW][C]134[/C][C]17[/C][C]12.679012345679[/C][C]4.32098765432099[/C][/ROW]
[ROW][C]135[/C][C]16[/C][C]14.5483870967742[/C][C]1.45161290322581[/C][/ROW]
[ROW][C]136[/C][C]17[/C][C]14.5483870967742[/C][C]2.45161290322581[/C][/ROW]
[ROW][C]137[/C][C]15[/C][C]14.5483870967742[/C][C]0.451612903225806[/C][/ROW]
[ROW][C]138[/C][C]15[/C][C]14.5483870967742[/C][C]0.451612903225806[/C][/ROW]
[ROW][C]139[/C][C]26[/C][C]14.5483870967742[/C][C]11.4516129032258[/C][/ROW]
[ROW][C]140[/C][C]25[/C][C]14.5483870967742[/C][C]10.4516129032258[/C][/ROW]
[ROW][C]141[/C][C]20[/C][C]14.5483870967742[/C][C]5.45161290322581[/C][/ROW]
[ROW][C]142[/C][C]20[/C][C]12.679012345679[/C][C]7.32098765432099[/C][/ROW]
[ROW][C]143[/C][C]26[/C][C]14.5483870967742[/C][C]11.4516129032258[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=156843&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=156843&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
11314.5483870967742-1.54838709677419
21214.5483870967742-2.54838709677419
31114.5483870967742-3.54838709677419
41012.679012345679-2.67901234567901
5812.679012345679-4.67901234567901
6714.5483870967742-7.54838709677419
71012.679012345679-2.67901234567901
8812.679012345679-4.67901234567901
91312.6790123456790.320987654320987
101112.679012345679-1.67901234567901
11812.679012345679-4.67901234567901
12914.5483870967742-5.54838709677419
131214.5483870967742-2.54838709677419
141112.679012345679-1.67901234567901
15914.5483870967742-5.54838709677419
16812.679012345679-4.67901234567901
17912.679012345679-3.67901234567901
18814.5483870967742-6.54838709677419
191112.679012345679-1.67901234567901
201014.5483870967742-4.54838709677419
211514.54838709677420.451612903225806
221112.679012345679-1.67901234567901
231612.6790123456793.32098765432099
241212.679012345679-0.679012345679013
251112.679012345679-1.67901234567901
261114.5483870967742-3.54838709677419
271012.679012345679-2.67901234567901
28812.679012345679-4.67901234567901
291112.679012345679-1.67901234567901
301112.679012345679-1.67901234567901
311312.6790123456790.320987654320987
321512.6790123456792.32098765432099
331214.5483870967742-2.54838709677419
341412.6790123456791.32098765432099
351212.679012345679-0.679012345679013
36712.679012345679-5.67901234567901
37812.679012345679-4.67901234567901
381214.5483870967742-2.54838709677419
391012.679012345679-2.67901234567901
40912.679012345679-3.67901234567901
411212.679012345679-0.679012345679013
421014.5483870967742-4.54838709677419
43912.679012345679-3.67901234567901
441012.679012345679-2.67901234567901
451312.6790123456790.320987654320987
46814.5483870967742-6.54838709677419
471114.5483870967742-3.54838709677419
481112.679012345679-1.67901234567901
49912.679012345679-3.67901234567901
50912.679012345679-3.67901234567901
511214.5483870967742-2.54838709677419
521014.5483870967742-4.54838709677419
53914.5483870967742-5.54838709677419
541412.6790123456791.32098765432099
55812.679012345679-4.67901234567901
56914.5483870967742-5.54838709677419
571414.5483870967742-0.548387096774194
58812.679012345679-4.67901234567901
591612.6790123456793.32098765432099
601412.6790123456791.32098765432099
611414.5483870967742-0.548387096774194
62812.679012345679-4.67901234567901
631112.679012345679-1.67901234567901
641114.5483870967742-3.54838709677419
651312.6790123456790.320987654320987
661212.679012345679-0.679012345679013
67912.679012345679-3.67901234567901
681014.5483870967742-4.54838709677419
691212.679012345679-0.679012345679013
701112.679012345679-1.67901234567901
711514.54838709677420.451612903225806
721412.6790123456791.32098765432099
731612.6790123456793.32098765432099
741612.6790123456793.32098765432099
75912.679012345679-3.67901234567901
761012.679012345679-2.67901234567901
771412.6790123456791.32098765432099
781412.6790123456791.32098765432099
792114.54838709677426.45161290322581
801414.5483870967742-0.548387096774194
811712.6790123456794.32098765432099
821814.54838709677423.45161290322581
831612.6790123456793.32098765432099
841412.6790123456791.32098765432099
851314.5483870967742-1.54838709677419
861712.6790123456794.32098765432099
871012.679012345679-2.67901234567901
881714.54838709677422.45161290322581
891312.6790123456790.320987654320987
901812.6790123456795.32098765432099
911414.5483870967742-0.548387096774194
921412.6790123456791.32098765432099
931514.54838709677420.451612903225806
941212.679012345679-0.679012345679013
951712.6790123456794.32098765432099
961512.6790123456792.32098765432099
971214.5483870967742-2.54838709677419
981312.6790123456790.320987654320987
991414.5483870967742-0.548387096774194
1001812.6790123456795.32098765432099
1011612.6790123456793.32098765432099
1022114.54838709677426.45161290322581
1032012.6790123456797.32098765432099
1041014.5483870967742-4.54838709677419
1051614.54838709677421.45161290322581
1061914.54838709677424.45161290322581
1071212.679012345679-0.679012345679013
1081312.6790123456790.320987654320987
1092014.54838709677425.45161290322581
1101414.5483870967742-0.548387096774194
1111012.679012345679-2.67901234567901
1121314.5483870967742-1.54838709677419
1131114.5483870967742-3.54838709677419
1141312.6790123456790.320987654320987
1151312.6790123456790.320987654320987
1161112.679012345679-1.67901234567901
1171514.54838709677420.451612903225806
1181414.5483870967742-0.548387096774194
1191014.5483870967742-4.54838709677419
1202414.54838709677429.45161290322581
1212312.67901234567910.320987654321
1221914.54838709677424.45161290322581
1231914.54838709677424.45161290322581
1242212.6790123456799.32098765432099
1251612.6790123456793.32098765432099
1261614.54838709677421.45161290322581
1272012.6790123456797.32098765432099
1281114.5483870967742-3.54838709677419
1292012.6790123456797.32098765432099
1301514.54838709677420.451612903225806
1312114.54838709677426.45161290322581
1321714.54838709677422.45161290322581
1332514.548387096774210.4516129032258
1341712.6790123456794.32098765432099
1351614.54838709677421.45161290322581
1361714.54838709677422.45161290322581
1371514.54838709677420.451612903225806
1381514.54838709677420.451612903225806
1392614.548387096774211.4516129032258
1402514.548387096774210.4516129032258
1412014.54838709677425.45161290322581
1422012.6790123456797.32098765432099
1432614.548387096774211.4516129032258



Parameters (Session):
par1 = 1 ; par2 = none ; par3 = 3 ; par4 = no ;
Parameters (R input):
par1 = 1 ; par2 = none ; par3 = 3 ; par4 = no ;
R code (references can be found in the software module):
library(party)
library(Hmisc)
par1 <- as.numeric(par1)
par3 <- as.numeric(par3)
x <- data.frame(t(y))
is.data.frame(x)
x <- x[!is.na(x[,par1]),]
k <- length(x[1,])
n <- length(x[,1])
colnames(x)[par1]
x[,par1]
if (par2 == 'kmeans') {
cl <- kmeans(x[,par1], par3)
print(cl)
clm <- matrix(cbind(cl$centers,1:par3),ncol=2)
clm <- clm[sort.list(clm[,1]),]
for (i in 1:par3) {
cl$cluster[cl$cluster==clm[i,2]] <- paste('C',i,sep='')
}
cl$cluster <- as.factor(cl$cluster)
print(cl$cluster)
x[,par1] <- cl$cluster
}
if (par2 == 'quantiles') {
x[,par1] <- cut2(x[,par1],g=par3)
}
if (par2 == 'hclust') {
hc <- hclust(dist(x[,par1])^2, 'cen')
print(hc)
memb <- cutree(hc, k = par3)
dum <- c(mean(x[memb==1,par1]))
for (i in 2:par3) {
dum <- c(dum, mean(x[memb==i,par1]))
}
hcm <- matrix(cbind(dum,1:par3),ncol=2)
hcm <- hcm[sort.list(hcm[,1]),]
for (i in 1:par3) {
memb[memb==hcm[i,2]] <- paste('C',i,sep='')
}
memb <- as.factor(memb)
print(memb)
x[,par1] <- memb
}
if (par2=='equal') {
ed <- cut(as.numeric(x[,par1]),par3,labels=paste('C',1:par3,sep=''))
x[,par1] <- as.factor(ed)
}
table(x[,par1])
colnames(x)
colnames(x)[par1]
x[,par1]
if (par2 == 'none') {
m <- ctree(as.formula(paste(colnames(x)[par1],' ~ .',sep='')),data = x)
}
load(file='createtable')
if (par2 != 'none') {
m <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data = x)
if (par4=='yes') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'10-Fold Cross Validation',3+2*par3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
a<-table.element(a,'Prediction (training)',par3+1,TRUE)
a<-table.element(a,'Prediction (testing)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Actual',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
a<-table.row.end(a)
for (i in 1:10) {
ind <- sample(2, nrow(x), replace=T, prob=c(0.9,0.1))
m.ct <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data =x[ind==1,])
if (i==1) {
m.ct.i.pred <- predict(m.ct, newdata=x[ind==1,])
m.ct.i.actu <- x[ind==1,par1]
m.ct.x.pred <- predict(m.ct, newdata=x[ind==2,])
m.ct.x.actu <- x[ind==2,par1]
} else {
m.ct.i.pred <- c(m.ct.i.pred,predict(m.ct, newdata=x[ind==1,]))
m.ct.i.actu <- c(m.ct.i.actu,x[ind==1,par1])
m.ct.x.pred <- c(m.ct.x.pred,predict(m.ct, newdata=x[ind==2,]))
m.ct.x.actu <- c(m.ct.x.actu,x[ind==2,par1])
}
}
print(m.ct.i.tab <- table(m.ct.i.actu,m.ct.i.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.i.tab[i,i] / sum(m.ct.i.tab[i,]))
numer <- numer + m.ct.i.tab[i,i]
}
print(m.ct.i.cp <- numer / sum(m.ct.i.tab))
print(m.ct.x.tab <- table(m.ct.x.actu,m.ct.x.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.x.tab[i,i] / sum(m.ct.x.tab[i,]))
numer <- numer + m.ct.x.tab[i,i]
}
print(m.ct.x.cp <- numer / sum(m.ct.x.tab))
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (jjj in 1:par3) a<-table.element(a,m.ct.i.tab[i,jjj])
a<-table.element(a,round(m.ct.i.tab[i,i]/sum(m.ct.i.tab[i,]),4))
for (jjj in 1:par3) a<-table.element(a,m.ct.x.tab[i,jjj])
a<-table.element(a,round(m.ct.x.tab[i,i]/sum(m.ct.x.tab[i,]),4))
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a,'Overall',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.i.cp,4))
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.x.cp,4))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
}
}
m
bitmap(file='test1.png')
plot(m)
dev.off()
bitmap(file='test1a.png')
plot(x[,par1] ~ as.factor(where(m)),main='Response by Terminal Node',xlab='Terminal Node',ylab='Response')
dev.off()
if (par2 == 'none') {
forec <- predict(m)
result <- as.data.frame(cbind(x[,par1],forec,x[,par1]-forec))
colnames(result) <- c('Actuals','Forecasts','Residuals')
print(result)
}
if (par2 != 'none') {
print(cbind(as.factor(x[,par1]),predict(m)))
myt <- table(as.factor(x[,par1]),predict(m))
print(myt)
}
bitmap(file='test2.png')
if(par2=='none') {
op <- par(mfrow=c(2,2))
plot(density(result$Actuals),main='Kernel Density Plot of Actuals')
plot(density(result$Residuals),main='Kernel Density Plot of Residuals')
plot(result$Forecasts,result$Actuals,main='Actuals versus Predictions',xlab='Predictions',ylab='Actuals')
plot(density(result$Forecasts),main='Kernel Density Plot of Predictions')
par(op)
}
if(par2!='none') {
plot(myt,main='Confusion Matrix',xlab='Actual',ylab='Predicted')
}
dev.off()
if (par2 == 'none') {
detcoef <- cor(result$Forecasts,result$Actuals)
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goodness of Fit',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Correlation',1,TRUE)
a<-table.element(a,round(detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'R-squared',1,TRUE)
a<-table.element(a,round(detcoef*detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'RMSE',1,TRUE)
a<-table.element(a,round(sqrt(mean((result$Residuals)^2)),4))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Actuals, Predictions, and Residuals',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'#',header=TRUE)
a<-table.element(a,'Actuals',header=TRUE)
a<-table.element(a,'Forecasts',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(result$Actuals)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,result$Actuals[i])
a<-table.element(a,result$Forecasts[i])
a<-table.element(a,result$Residuals[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
}
if (par2 != 'none') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Confusion Matrix (predicted in columns / actuals in rows)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
for (i in 1:par3) {
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
}
a<-table.row.end(a)
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (j in 1:par3) {
a<-table.element(a,myt[i,j])
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
}