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 computationThu, 22 Dec 2011 10:24:22 -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/22/t1324567605l5oo88cv7l3adf4.htm/, Retrieved Fri, 03 May 2024 03:52:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=159603, Retrieved Fri, 03 May 2024 03:52:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact101
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Kendall tau Correlation Matrix] [] [2011-12-15 20:26:31] [456cd98d071701b5f4c3a71c54fae48b]
-    D  [Kendall tau Correlation Matrix] [3.3.1 Pearson Cor...] [2011-12-21 21:29:58] [456cd98d071701b5f4c3a71c54fae48b]
- RMP       [Recursive Partitioning (Regression Trees)] [3.3.4 Recursive P...] [2011-12-22 15:24:22] [3449e2fa27dd268b99e5e23334e3fafb] [Current]
Feedback Forum

Post a new message
Dataseries X:
7	37	20	1826	93
24	43	20	1738	61
1	0	0	192	18
10	54	27	2295	95
20	86	31	3509	137
53	181	36	6861	263
17	42	23	1801	57
19	59	30	1681	59
11	46	30	1897	44
28	77	26	2974	96
12	49	24	1946	75
21	79	30	2363	71
9	37	22	1850	101
17	92	28	3189	120
13	31	18	1486	61
14	28	22	1567	88
18	103	33	1759	58
1	2	15	1247	61
13	48	34	2779	87
4	25	18	727	25
5	16	15	1117	61
27	106	30	2809	101
5	35	25	1760	72
9	33	34	2279	56
15	45	21	1937	87
12	64	21	1800	33
16	73	25	2146	166
28	78	31	1453	95
33	63	31	2741	118
22	69	20	2112	44
12	36	28	1684	44
18	41	22	1617	46
11	59	17	2233	106
8	33	25	3122	125
26	76	24	2551	55
0	0	0	1	1
11	27	31	2137	64
9	44	14	1801	52
11	43	35	2137	49
37	104	34	2176	67
17	120	22	2390	71
11	44	34	1783	60
13	71	23	1049	33
16	78	24	2161	78
11	106	26	1364	51
15	61	23	1236	97
11	53	35	745	32
14	51	24	2410	104
22	46	31	2289	89
12	55	26	2639	59
4	14	22	658	28
11	44	21	1917	69
29	113	27	2583	75
15	55	30	2026	79
17	46	33	1911	59
15	39	11	1751	57
14	51	26	1913	68
7	31	26	1044	25
17	36	23	1177	66
7	47	38	2878	99
12	53	32	1830	63
11	38	20	2191	82
13	52	22	1331	61
14	37	26	1307	38
12	11	26	1256	35
14	45	33	1378	42
31	59	36	2311	71
15	82	25	2897	65
15	49	24	1103	38
1	6	21	340	15
16	81	19	2900	113
13	56	12	1367	74
11	105	30	1441	68
4	46	21	1681	72
15	46	34	2655	68
3	2	32	1499	44
15	51	28	2302	60
25	95	28	2540	97
6	18	21	1053	33
8	55	31	1234	71
10	48	26	927	68
16	48	29	2176	64
8	39	23	984	29
11	40	25	1551	40
3	36	22	1204	47
14	60	26	1858	58
22	114	33	2716	237
7	39	24	1207	114
7	45	24	1392	63
14	59	21	1525	53
17	59	28	1829	41
18	93	28	2383	82
15	35	25	1233	57
12	47	15	1366	59
7	36	13	953	41
25	59	36	2319	117
17	79	24	1857	70
3	14	1	223	12
13	42	24	2505	108
13	41	31	2055	83
1	8	4	747	30
8	41	21	1144	25
7	24	27	1422	57
10	22	23	1319	64
7	18	12	823	40
1	1	16	596	22
15	53	29	1644	49
2	6	26	1130	37
0	0	0	0	0
10	49	25	1082	32
5	33	21	1135	67
14	50	23	1367	45
11	64	21	1506	63
8	53	21	925	62
0	0	0	78	5
0	0	0	0	0
17	48	23	1130	44
18	90	33	1635	90
10	46	30	2122	101
10	29	23	970	39
0	1	1	778	19
17	64	29	1752	73
9	29	20	1050	43
6	27	33	2180	56
1	4	12	731	40
3	10	2	285	12
15	47	21	1834	56
8	44	28	1167	34
10	51	29	1646	54
0	0	2	256	9
0	0	0	98	9
14	38	18	1409	58
0	0	1	41	3
13	57	21	1824	63
0	0	0	42	3
2	6	4	528	16
0	0	0	0	0
8	22	29	1114	50
13	34	26	1305	38
0	0	0	81	4
0	10	4	261	14
3	16	17	1062	26
15	93	21	1279	53
12	22	22	1148	20




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159603&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.8275
R-squared0.6848
RMSE4.6194

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8275[/C][/ROW]
[ROW][C]R-squared[/C][C]0.6848[/C][/ROW]
[ROW][C]RMSE[/C][C]4.6194[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159603&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159603&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.8275
R-squared0.6848
RMSE4.6194







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
179.70967741935484-2.70967741935484
22412.652173913043511.3478260869565
310.08333333333333330.916666666666667
41012.6521739130435-2.65217391304348
52024.7894736842105-4.78947368421053
65324.789473684210528.2105263157895
71712.65217391304354.34782608695652
819163
91112.6521739130435-1.65217391304348
102824.78947368421053.21052631578947
111212.6521739130435-0.652173913043478
122124.7894736842105-3.78947368421053
1399.70967741935484-0.709677419354838
141724.7894736842105-7.78947368421053
15139.709677419354843.29032258064516
16149.709677419354844.29032258064516
1718162
1811.5-0.5
191312.65217391304350.347826086956522
2049.70967741935484-5.70967741935484
2155.71428571428571-0.714285714285714
222724.78947368421052.21052631578947
2359.70967741935484-4.70967741935484
2499.70967741935484-0.709677419354838
251512.65217391304352.34782608695652
261216-4
2716160
28281612
293324.78947368421058.21052631578947
3022166
31129.709677419354842.29032258064516
321812.65217391304355.34782608695652
331124.7894736842105-13.7894736842105
3489.70967741935484-1.70967741935484
352624.78947368421051.21052631578947
3600.0833333333333333-0.0833333333333333
37119.709677419354841.29032258064516
38912.6521739130435-3.65217391304348
391112.6521739130435-1.65217391304348
403724.789473684210512.2105263157895
411724.7894736842105-7.78947368421053
421112.6521739130435-1.65217391304348
431316-3
4416160
451116-5
461516-1
471112.6521739130435-1.65217391304348
481412.65217391304351.34782608695652
492212.65217391304359.34782608695652
501212.6521739130435-0.652173913043478
5145.71428571428571-1.71428571428571
521112.6521739130435-1.65217391304348
532924.78947368421054.21052631578947
541512.65217391304352.34782608695652
551712.65217391304354.34782608695652
56159.709677419354845.29032258064516
571412.65217391304351.34782608695652
5879.70967741935484-2.70967741935484
59179.709677419354847.29032258064516
60712.6521739130435-5.65217391304348
611212.6521739130435-0.652173913043478
62119.709677419354841.29032258064516
631312.65217391304350.347826086956522
64149.709677419354844.29032258064516
65125.714285714285716.28571428571429
661412.65217391304351.34782608695652
673124.78947368421056.21052631578947
681524.7894736842105-9.78947368421053
691512.65217391304352.34782608695652
7011.5-0.5
711624.7894736842105-8.78947368421053
721312.65217391304350.347826086956522
731116-5
74412.6521739130435-8.65217391304348
751512.65217391304352.34782608695652
7631.51.5
771512.65217391304352.34782608695652
782524.78947368421050.210526315789473
7965.714285714285710.285714285714286
80812.6521739130435-4.65217391304348
811012.6521739130435-2.65217391304348
821612.65217391304353.34782608695652
8389.70967741935484-1.70967741935484
84119.709677419354841.29032258064516
8539.70967741935484-6.70967741935484
861416-2
872224.7894736842105-2.78947368421053
8879.70967741935484-2.70967741935484
89712.6521739130435-5.65217391304348
901416-2
9117161
921824.7894736842105-6.78947368421053
93159.709677419354845.29032258064516
941212.6521739130435-0.652173913043478
9579.70967741935484-2.70967741935484
962524.78947368421050.210526315789473
9717161
9835.71428571428571-2.71428571428571
991312.65217391304350.347826086956522
1001312.65217391304350.347826086956522
10111.5-0.5
102812.6521739130435-4.65217391304348
10379.70967741935484-2.70967741935484
104109.709677419354840.290322580645162
10575.714285714285711.28571428571429
10611.5-0.5
1071512.65217391304352.34782608695652
10821.50.5
10900.0833333333333333-0.0833333333333333
1101012.6521739130435-2.65217391304348
11159.70967741935484-4.70967741935484
1121412.65217391304351.34782608695652
1131116-5
114812.6521739130435-4.65217391304348
11500.0833333333333333-0.0833333333333333
11600.0833333333333333-0.0833333333333333
1171712.65217391304354.34782608695652
11818162
1191012.6521739130435-2.65217391304348
120109.709677419354840.290322580645162
12101.5-1.5
12217161
12399.70967741935484-0.709677419354838
12469.70967741935484-3.70967741935484
12511.5-0.5
12631.51.5
1271512.65217391304352.34782608695652
128812.6521739130435-4.65217391304348
1291012.6521739130435-2.65217391304348
13000.0833333333333333-0.0833333333333333
13100.0833333333333333-0.0833333333333333
132149.709677419354844.29032258064516
13300.0833333333333333-0.0833333333333333
1341312.65217391304350.347826086956522
13500.0833333333333333-0.0833333333333333
13621.50.5
13700.0833333333333333-0.0833333333333333
13889.70967741935484-1.70967741935484
139139.709677419354843.29032258064516
14000.0833333333333333-0.0833333333333333
14100.0833333333333333-0.0833333333333333
14235.71428571428571-2.71428571428571
1431516-1
144129.709677419354842.29032258064516

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 7 & 9.70967741935484 & -2.70967741935484 \tabularnewline
2 & 24 & 12.6521739130435 & 11.3478260869565 \tabularnewline
3 & 1 & 0.0833333333333333 & 0.916666666666667 \tabularnewline
4 & 10 & 12.6521739130435 & -2.65217391304348 \tabularnewline
5 & 20 & 24.7894736842105 & -4.78947368421053 \tabularnewline
6 & 53 & 24.7894736842105 & 28.2105263157895 \tabularnewline
7 & 17 & 12.6521739130435 & 4.34782608695652 \tabularnewline
8 & 19 & 16 & 3 \tabularnewline
9 & 11 & 12.6521739130435 & -1.65217391304348 \tabularnewline
10 & 28 & 24.7894736842105 & 3.21052631578947 \tabularnewline
11 & 12 & 12.6521739130435 & -0.652173913043478 \tabularnewline
12 & 21 & 24.7894736842105 & -3.78947368421053 \tabularnewline
13 & 9 & 9.70967741935484 & -0.709677419354838 \tabularnewline
14 & 17 & 24.7894736842105 & -7.78947368421053 \tabularnewline
15 & 13 & 9.70967741935484 & 3.29032258064516 \tabularnewline
16 & 14 & 9.70967741935484 & 4.29032258064516 \tabularnewline
17 & 18 & 16 & 2 \tabularnewline
18 & 1 & 1.5 & -0.5 \tabularnewline
19 & 13 & 12.6521739130435 & 0.347826086956522 \tabularnewline
20 & 4 & 9.70967741935484 & -5.70967741935484 \tabularnewline
21 & 5 & 5.71428571428571 & -0.714285714285714 \tabularnewline
22 & 27 & 24.7894736842105 & 2.21052631578947 \tabularnewline
23 & 5 & 9.70967741935484 & -4.70967741935484 \tabularnewline
24 & 9 & 9.70967741935484 & -0.709677419354838 \tabularnewline
25 & 15 & 12.6521739130435 & 2.34782608695652 \tabularnewline
26 & 12 & 16 & -4 \tabularnewline
27 & 16 & 16 & 0 \tabularnewline
28 & 28 & 16 & 12 \tabularnewline
29 & 33 & 24.7894736842105 & 8.21052631578947 \tabularnewline
30 & 22 & 16 & 6 \tabularnewline
31 & 12 & 9.70967741935484 & 2.29032258064516 \tabularnewline
32 & 18 & 12.6521739130435 & 5.34782608695652 \tabularnewline
33 & 11 & 24.7894736842105 & -13.7894736842105 \tabularnewline
34 & 8 & 9.70967741935484 & -1.70967741935484 \tabularnewline
35 & 26 & 24.7894736842105 & 1.21052631578947 \tabularnewline
36 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
37 & 11 & 9.70967741935484 & 1.29032258064516 \tabularnewline
38 & 9 & 12.6521739130435 & -3.65217391304348 \tabularnewline
39 & 11 & 12.6521739130435 & -1.65217391304348 \tabularnewline
40 & 37 & 24.7894736842105 & 12.2105263157895 \tabularnewline
41 & 17 & 24.7894736842105 & -7.78947368421053 \tabularnewline
42 & 11 & 12.6521739130435 & -1.65217391304348 \tabularnewline
43 & 13 & 16 & -3 \tabularnewline
44 & 16 & 16 & 0 \tabularnewline
45 & 11 & 16 & -5 \tabularnewline
46 & 15 & 16 & -1 \tabularnewline
47 & 11 & 12.6521739130435 & -1.65217391304348 \tabularnewline
48 & 14 & 12.6521739130435 & 1.34782608695652 \tabularnewline
49 & 22 & 12.6521739130435 & 9.34782608695652 \tabularnewline
50 & 12 & 12.6521739130435 & -0.652173913043478 \tabularnewline
51 & 4 & 5.71428571428571 & -1.71428571428571 \tabularnewline
52 & 11 & 12.6521739130435 & -1.65217391304348 \tabularnewline
53 & 29 & 24.7894736842105 & 4.21052631578947 \tabularnewline
54 & 15 & 12.6521739130435 & 2.34782608695652 \tabularnewline
55 & 17 & 12.6521739130435 & 4.34782608695652 \tabularnewline
56 & 15 & 9.70967741935484 & 5.29032258064516 \tabularnewline
57 & 14 & 12.6521739130435 & 1.34782608695652 \tabularnewline
58 & 7 & 9.70967741935484 & -2.70967741935484 \tabularnewline
59 & 17 & 9.70967741935484 & 7.29032258064516 \tabularnewline
60 & 7 & 12.6521739130435 & -5.65217391304348 \tabularnewline
61 & 12 & 12.6521739130435 & -0.652173913043478 \tabularnewline
62 & 11 & 9.70967741935484 & 1.29032258064516 \tabularnewline
63 & 13 & 12.6521739130435 & 0.347826086956522 \tabularnewline
64 & 14 & 9.70967741935484 & 4.29032258064516 \tabularnewline
65 & 12 & 5.71428571428571 & 6.28571428571429 \tabularnewline
66 & 14 & 12.6521739130435 & 1.34782608695652 \tabularnewline
67 & 31 & 24.7894736842105 & 6.21052631578947 \tabularnewline
68 & 15 & 24.7894736842105 & -9.78947368421053 \tabularnewline
69 & 15 & 12.6521739130435 & 2.34782608695652 \tabularnewline
70 & 1 & 1.5 & -0.5 \tabularnewline
71 & 16 & 24.7894736842105 & -8.78947368421053 \tabularnewline
72 & 13 & 12.6521739130435 & 0.347826086956522 \tabularnewline
73 & 11 & 16 & -5 \tabularnewline
74 & 4 & 12.6521739130435 & -8.65217391304348 \tabularnewline
75 & 15 & 12.6521739130435 & 2.34782608695652 \tabularnewline
76 & 3 & 1.5 & 1.5 \tabularnewline
77 & 15 & 12.6521739130435 & 2.34782608695652 \tabularnewline
78 & 25 & 24.7894736842105 & 0.210526315789473 \tabularnewline
79 & 6 & 5.71428571428571 & 0.285714285714286 \tabularnewline
80 & 8 & 12.6521739130435 & -4.65217391304348 \tabularnewline
81 & 10 & 12.6521739130435 & -2.65217391304348 \tabularnewline
82 & 16 & 12.6521739130435 & 3.34782608695652 \tabularnewline
83 & 8 & 9.70967741935484 & -1.70967741935484 \tabularnewline
84 & 11 & 9.70967741935484 & 1.29032258064516 \tabularnewline
85 & 3 & 9.70967741935484 & -6.70967741935484 \tabularnewline
86 & 14 & 16 & -2 \tabularnewline
87 & 22 & 24.7894736842105 & -2.78947368421053 \tabularnewline
88 & 7 & 9.70967741935484 & -2.70967741935484 \tabularnewline
89 & 7 & 12.6521739130435 & -5.65217391304348 \tabularnewline
90 & 14 & 16 & -2 \tabularnewline
91 & 17 & 16 & 1 \tabularnewline
92 & 18 & 24.7894736842105 & -6.78947368421053 \tabularnewline
93 & 15 & 9.70967741935484 & 5.29032258064516 \tabularnewline
94 & 12 & 12.6521739130435 & -0.652173913043478 \tabularnewline
95 & 7 & 9.70967741935484 & -2.70967741935484 \tabularnewline
96 & 25 & 24.7894736842105 & 0.210526315789473 \tabularnewline
97 & 17 & 16 & 1 \tabularnewline
98 & 3 & 5.71428571428571 & -2.71428571428571 \tabularnewline
99 & 13 & 12.6521739130435 & 0.347826086956522 \tabularnewline
100 & 13 & 12.6521739130435 & 0.347826086956522 \tabularnewline
101 & 1 & 1.5 & -0.5 \tabularnewline
102 & 8 & 12.6521739130435 & -4.65217391304348 \tabularnewline
103 & 7 & 9.70967741935484 & -2.70967741935484 \tabularnewline
104 & 10 & 9.70967741935484 & 0.290322580645162 \tabularnewline
105 & 7 & 5.71428571428571 & 1.28571428571429 \tabularnewline
106 & 1 & 1.5 & -0.5 \tabularnewline
107 & 15 & 12.6521739130435 & 2.34782608695652 \tabularnewline
108 & 2 & 1.5 & 0.5 \tabularnewline
109 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
110 & 10 & 12.6521739130435 & -2.65217391304348 \tabularnewline
111 & 5 & 9.70967741935484 & -4.70967741935484 \tabularnewline
112 & 14 & 12.6521739130435 & 1.34782608695652 \tabularnewline
113 & 11 & 16 & -5 \tabularnewline
114 & 8 & 12.6521739130435 & -4.65217391304348 \tabularnewline
115 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
116 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
117 & 17 & 12.6521739130435 & 4.34782608695652 \tabularnewline
118 & 18 & 16 & 2 \tabularnewline
119 & 10 & 12.6521739130435 & -2.65217391304348 \tabularnewline
120 & 10 & 9.70967741935484 & 0.290322580645162 \tabularnewline
121 & 0 & 1.5 & -1.5 \tabularnewline
122 & 17 & 16 & 1 \tabularnewline
123 & 9 & 9.70967741935484 & -0.709677419354838 \tabularnewline
124 & 6 & 9.70967741935484 & -3.70967741935484 \tabularnewline
125 & 1 & 1.5 & -0.5 \tabularnewline
126 & 3 & 1.5 & 1.5 \tabularnewline
127 & 15 & 12.6521739130435 & 2.34782608695652 \tabularnewline
128 & 8 & 12.6521739130435 & -4.65217391304348 \tabularnewline
129 & 10 & 12.6521739130435 & -2.65217391304348 \tabularnewline
130 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
131 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
132 & 14 & 9.70967741935484 & 4.29032258064516 \tabularnewline
133 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
134 & 13 & 12.6521739130435 & 0.347826086956522 \tabularnewline
135 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
136 & 2 & 1.5 & 0.5 \tabularnewline
137 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
138 & 8 & 9.70967741935484 & -1.70967741935484 \tabularnewline
139 & 13 & 9.70967741935484 & 3.29032258064516 \tabularnewline
140 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
141 & 0 & 0.0833333333333333 & -0.0833333333333333 \tabularnewline
142 & 3 & 5.71428571428571 & -2.71428571428571 \tabularnewline
143 & 15 & 16 & -1 \tabularnewline
144 & 12 & 9.70967741935484 & 2.29032258064516 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159603&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]7[/C][C]9.70967741935484[/C][C]-2.70967741935484[/C][/ROW]
[ROW][C]2[/C][C]24[/C][C]12.6521739130435[/C][C]11.3478260869565[/C][/ROW]
[ROW][C]3[/C][C]1[/C][C]0.0833333333333333[/C][C]0.916666666666667[/C][/ROW]
[ROW][C]4[/C][C]10[/C][C]12.6521739130435[/C][C]-2.65217391304348[/C][/ROW]
[ROW][C]5[/C][C]20[/C][C]24.7894736842105[/C][C]-4.78947368421053[/C][/ROW]
[ROW][C]6[/C][C]53[/C][C]24.7894736842105[/C][C]28.2105263157895[/C][/ROW]
[ROW][C]7[/C][C]17[/C][C]12.6521739130435[/C][C]4.34782608695652[/C][/ROW]
[ROW][C]8[/C][C]19[/C][C]16[/C][C]3[/C][/ROW]
[ROW][C]9[/C][C]11[/C][C]12.6521739130435[/C][C]-1.65217391304348[/C][/ROW]
[ROW][C]10[/C][C]28[/C][C]24.7894736842105[/C][C]3.21052631578947[/C][/ROW]
[ROW][C]11[/C][C]12[/C][C]12.6521739130435[/C][C]-0.652173913043478[/C][/ROW]
[ROW][C]12[/C][C]21[/C][C]24.7894736842105[/C][C]-3.78947368421053[/C][/ROW]
[ROW][C]13[/C][C]9[/C][C]9.70967741935484[/C][C]-0.709677419354838[/C][/ROW]
[ROW][C]14[/C][C]17[/C][C]24.7894736842105[/C][C]-7.78947368421053[/C][/ROW]
[ROW][C]15[/C][C]13[/C][C]9.70967741935484[/C][C]3.29032258064516[/C][/ROW]
[ROW][C]16[/C][C]14[/C][C]9.70967741935484[/C][C]4.29032258064516[/C][/ROW]
[ROW][C]17[/C][C]18[/C][C]16[/C][C]2[/C][/ROW]
[ROW][C]18[/C][C]1[/C][C]1.5[/C][C]-0.5[/C][/ROW]
[ROW][C]19[/C][C]13[/C][C]12.6521739130435[/C][C]0.347826086956522[/C][/ROW]
[ROW][C]20[/C][C]4[/C][C]9.70967741935484[/C][C]-5.70967741935484[/C][/ROW]
[ROW][C]21[/C][C]5[/C][C]5.71428571428571[/C][C]-0.714285714285714[/C][/ROW]
[ROW][C]22[/C][C]27[/C][C]24.7894736842105[/C][C]2.21052631578947[/C][/ROW]
[ROW][C]23[/C][C]5[/C][C]9.70967741935484[/C][C]-4.70967741935484[/C][/ROW]
[ROW][C]24[/C][C]9[/C][C]9.70967741935484[/C][C]-0.709677419354838[/C][/ROW]
[ROW][C]25[/C][C]15[/C][C]12.6521739130435[/C][C]2.34782608695652[/C][/ROW]
[ROW][C]26[/C][C]12[/C][C]16[/C][C]-4[/C][/ROW]
[ROW][C]27[/C][C]16[/C][C]16[/C][C]0[/C][/ROW]
[ROW][C]28[/C][C]28[/C][C]16[/C][C]12[/C][/ROW]
[ROW][C]29[/C][C]33[/C][C]24.7894736842105[/C][C]8.21052631578947[/C][/ROW]
[ROW][C]30[/C][C]22[/C][C]16[/C][C]6[/C][/ROW]
[ROW][C]31[/C][C]12[/C][C]9.70967741935484[/C][C]2.29032258064516[/C][/ROW]
[ROW][C]32[/C][C]18[/C][C]12.6521739130435[/C][C]5.34782608695652[/C][/ROW]
[ROW][C]33[/C][C]11[/C][C]24.7894736842105[/C][C]-13.7894736842105[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]9.70967741935484[/C][C]-1.70967741935484[/C][/ROW]
[ROW][C]35[/C][C]26[/C][C]24.7894736842105[/C][C]1.21052631578947[/C][/ROW]
[ROW][C]36[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]37[/C][C]11[/C][C]9.70967741935484[/C][C]1.29032258064516[/C][/ROW]
[ROW][C]38[/C][C]9[/C][C]12.6521739130435[/C][C]-3.65217391304348[/C][/ROW]
[ROW][C]39[/C][C]11[/C][C]12.6521739130435[/C][C]-1.65217391304348[/C][/ROW]
[ROW][C]40[/C][C]37[/C][C]24.7894736842105[/C][C]12.2105263157895[/C][/ROW]
[ROW][C]41[/C][C]17[/C][C]24.7894736842105[/C][C]-7.78947368421053[/C][/ROW]
[ROW][C]42[/C][C]11[/C][C]12.6521739130435[/C][C]-1.65217391304348[/C][/ROW]
[ROW][C]43[/C][C]13[/C][C]16[/C][C]-3[/C][/ROW]
[ROW][C]44[/C][C]16[/C][C]16[/C][C]0[/C][/ROW]
[ROW][C]45[/C][C]11[/C][C]16[/C][C]-5[/C][/ROW]
[ROW][C]46[/C][C]15[/C][C]16[/C][C]-1[/C][/ROW]
[ROW][C]47[/C][C]11[/C][C]12.6521739130435[/C][C]-1.65217391304348[/C][/ROW]
[ROW][C]48[/C][C]14[/C][C]12.6521739130435[/C][C]1.34782608695652[/C][/ROW]
[ROW][C]49[/C][C]22[/C][C]12.6521739130435[/C][C]9.34782608695652[/C][/ROW]
[ROW][C]50[/C][C]12[/C][C]12.6521739130435[/C][C]-0.652173913043478[/C][/ROW]
[ROW][C]51[/C][C]4[/C][C]5.71428571428571[/C][C]-1.71428571428571[/C][/ROW]
[ROW][C]52[/C][C]11[/C][C]12.6521739130435[/C][C]-1.65217391304348[/C][/ROW]
[ROW][C]53[/C][C]29[/C][C]24.7894736842105[/C][C]4.21052631578947[/C][/ROW]
[ROW][C]54[/C][C]15[/C][C]12.6521739130435[/C][C]2.34782608695652[/C][/ROW]
[ROW][C]55[/C][C]17[/C][C]12.6521739130435[/C][C]4.34782608695652[/C][/ROW]
[ROW][C]56[/C][C]15[/C][C]9.70967741935484[/C][C]5.29032258064516[/C][/ROW]
[ROW][C]57[/C][C]14[/C][C]12.6521739130435[/C][C]1.34782608695652[/C][/ROW]
[ROW][C]58[/C][C]7[/C][C]9.70967741935484[/C][C]-2.70967741935484[/C][/ROW]
[ROW][C]59[/C][C]17[/C][C]9.70967741935484[/C][C]7.29032258064516[/C][/ROW]
[ROW][C]60[/C][C]7[/C][C]12.6521739130435[/C][C]-5.65217391304348[/C][/ROW]
[ROW][C]61[/C][C]12[/C][C]12.6521739130435[/C][C]-0.652173913043478[/C][/ROW]
[ROW][C]62[/C][C]11[/C][C]9.70967741935484[/C][C]1.29032258064516[/C][/ROW]
[ROW][C]63[/C][C]13[/C][C]12.6521739130435[/C][C]0.347826086956522[/C][/ROW]
[ROW][C]64[/C][C]14[/C][C]9.70967741935484[/C][C]4.29032258064516[/C][/ROW]
[ROW][C]65[/C][C]12[/C][C]5.71428571428571[/C][C]6.28571428571429[/C][/ROW]
[ROW][C]66[/C][C]14[/C][C]12.6521739130435[/C][C]1.34782608695652[/C][/ROW]
[ROW][C]67[/C][C]31[/C][C]24.7894736842105[/C][C]6.21052631578947[/C][/ROW]
[ROW][C]68[/C][C]15[/C][C]24.7894736842105[/C][C]-9.78947368421053[/C][/ROW]
[ROW][C]69[/C][C]15[/C][C]12.6521739130435[/C][C]2.34782608695652[/C][/ROW]
[ROW][C]70[/C][C]1[/C][C]1.5[/C][C]-0.5[/C][/ROW]
[ROW][C]71[/C][C]16[/C][C]24.7894736842105[/C][C]-8.78947368421053[/C][/ROW]
[ROW][C]72[/C][C]13[/C][C]12.6521739130435[/C][C]0.347826086956522[/C][/ROW]
[ROW][C]73[/C][C]11[/C][C]16[/C][C]-5[/C][/ROW]
[ROW][C]74[/C][C]4[/C][C]12.6521739130435[/C][C]-8.65217391304348[/C][/ROW]
[ROW][C]75[/C][C]15[/C][C]12.6521739130435[/C][C]2.34782608695652[/C][/ROW]
[ROW][C]76[/C][C]3[/C][C]1.5[/C][C]1.5[/C][/ROW]
[ROW][C]77[/C][C]15[/C][C]12.6521739130435[/C][C]2.34782608695652[/C][/ROW]
[ROW][C]78[/C][C]25[/C][C]24.7894736842105[/C][C]0.210526315789473[/C][/ROW]
[ROW][C]79[/C][C]6[/C][C]5.71428571428571[/C][C]0.285714285714286[/C][/ROW]
[ROW][C]80[/C][C]8[/C][C]12.6521739130435[/C][C]-4.65217391304348[/C][/ROW]
[ROW][C]81[/C][C]10[/C][C]12.6521739130435[/C][C]-2.65217391304348[/C][/ROW]
[ROW][C]82[/C][C]16[/C][C]12.6521739130435[/C][C]3.34782608695652[/C][/ROW]
[ROW][C]83[/C][C]8[/C][C]9.70967741935484[/C][C]-1.70967741935484[/C][/ROW]
[ROW][C]84[/C][C]11[/C][C]9.70967741935484[/C][C]1.29032258064516[/C][/ROW]
[ROW][C]85[/C][C]3[/C][C]9.70967741935484[/C][C]-6.70967741935484[/C][/ROW]
[ROW][C]86[/C][C]14[/C][C]16[/C][C]-2[/C][/ROW]
[ROW][C]87[/C][C]22[/C][C]24.7894736842105[/C][C]-2.78947368421053[/C][/ROW]
[ROW][C]88[/C][C]7[/C][C]9.70967741935484[/C][C]-2.70967741935484[/C][/ROW]
[ROW][C]89[/C][C]7[/C][C]12.6521739130435[/C][C]-5.65217391304348[/C][/ROW]
[ROW][C]90[/C][C]14[/C][C]16[/C][C]-2[/C][/ROW]
[ROW][C]91[/C][C]17[/C][C]16[/C][C]1[/C][/ROW]
[ROW][C]92[/C][C]18[/C][C]24.7894736842105[/C][C]-6.78947368421053[/C][/ROW]
[ROW][C]93[/C][C]15[/C][C]9.70967741935484[/C][C]5.29032258064516[/C][/ROW]
[ROW][C]94[/C][C]12[/C][C]12.6521739130435[/C][C]-0.652173913043478[/C][/ROW]
[ROW][C]95[/C][C]7[/C][C]9.70967741935484[/C][C]-2.70967741935484[/C][/ROW]
[ROW][C]96[/C][C]25[/C][C]24.7894736842105[/C][C]0.210526315789473[/C][/ROW]
[ROW][C]97[/C][C]17[/C][C]16[/C][C]1[/C][/ROW]
[ROW][C]98[/C][C]3[/C][C]5.71428571428571[/C][C]-2.71428571428571[/C][/ROW]
[ROW][C]99[/C][C]13[/C][C]12.6521739130435[/C][C]0.347826086956522[/C][/ROW]
[ROW][C]100[/C][C]13[/C][C]12.6521739130435[/C][C]0.347826086956522[/C][/ROW]
[ROW][C]101[/C][C]1[/C][C]1.5[/C][C]-0.5[/C][/ROW]
[ROW][C]102[/C][C]8[/C][C]12.6521739130435[/C][C]-4.65217391304348[/C][/ROW]
[ROW][C]103[/C][C]7[/C][C]9.70967741935484[/C][C]-2.70967741935484[/C][/ROW]
[ROW][C]104[/C][C]10[/C][C]9.70967741935484[/C][C]0.290322580645162[/C][/ROW]
[ROW][C]105[/C][C]7[/C][C]5.71428571428571[/C][C]1.28571428571429[/C][/ROW]
[ROW][C]106[/C][C]1[/C][C]1.5[/C][C]-0.5[/C][/ROW]
[ROW][C]107[/C][C]15[/C][C]12.6521739130435[/C][C]2.34782608695652[/C][/ROW]
[ROW][C]108[/C][C]2[/C][C]1.5[/C][C]0.5[/C][/ROW]
[ROW][C]109[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]110[/C][C]10[/C][C]12.6521739130435[/C][C]-2.65217391304348[/C][/ROW]
[ROW][C]111[/C][C]5[/C][C]9.70967741935484[/C][C]-4.70967741935484[/C][/ROW]
[ROW][C]112[/C][C]14[/C][C]12.6521739130435[/C][C]1.34782608695652[/C][/ROW]
[ROW][C]113[/C][C]11[/C][C]16[/C][C]-5[/C][/ROW]
[ROW][C]114[/C][C]8[/C][C]12.6521739130435[/C][C]-4.65217391304348[/C][/ROW]
[ROW][C]115[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]116[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]117[/C][C]17[/C][C]12.6521739130435[/C][C]4.34782608695652[/C][/ROW]
[ROW][C]118[/C][C]18[/C][C]16[/C][C]2[/C][/ROW]
[ROW][C]119[/C][C]10[/C][C]12.6521739130435[/C][C]-2.65217391304348[/C][/ROW]
[ROW][C]120[/C][C]10[/C][C]9.70967741935484[/C][C]0.290322580645162[/C][/ROW]
[ROW][C]121[/C][C]0[/C][C]1.5[/C][C]-1.5[/C][/ROW]
[ROW][C]122[/C][C]17[/C][C]16[/C][C]1[/C][/ROW]
[ROW][C]123[/C][C]9[/C][C]9.70967741935484[/C][C]-0.709677419354838[/C][/ROW]
[ROW][C]124[/C][C]6[/C][C]9.70967741935484[/C][C]-3.70967741935484[/C][/ROW]
[ROW][C]125[/C][C]1[/C][C]1.5[/C][C]-0.5[/C][/ROW]
[ROW][C]126[/C][C]3[/C][C]1.5[/C][C]1.5[/C][/ROW]
[ROW][C]127[/C][C]15[/C][C]12.6521739130435[/C][C]2.34782608695652[/C][/ROW]
[ROW][C]128[/C][C]8[/C][C]12.6521739130435[/C][C]-4.65217391304348[/C][/ROW]
[ROW][C]129[/C][C]10[/C][C]12.6521739130435[/C][C]-2.65217391304348[/C][/ROW]
[ROW][C]130[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]131[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]132[/C][C]14[/C][C]9.70967741935484[/C][C]4.29032258064516[/C][/ROW]
[ROW][C]133[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]134[/C][C]13[/C][C]12.6521739130435[/C][C]0.347826086956522[/C][/ROW]
[ROW][C]135[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]136[/C][C]2[/C][C]1.5[/C][C]0.5[/C][/ROW]
[ROW][C]137[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]138[/C][C]8[/C][C]9.70967741935484[/C][C]-1.70967741935484[/C][/ROW]
[ROW][C]139[/C][C]13[/C][C]9.70967741935484[/C][C]3.29032258064516[/C][/ROW]
[ROW][C]140[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]141[/C][C]0[/C][C]0.0833333333333333[/C][C]-0.0833333333333333[/C][/ROW]
[ROW][C]142[/C][C]3[/C][C]5.71428571428571[/C][C]-2.71428571428571[/C][/ROW]
[ROW][C]143[/C][C]15[/C][C]16[/C][C]-1[/C][/ROW]
[ROW][C]144[/C][C]12[/C][C]9.70967741935484[/C][C]2.29032258064516[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159603&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159603&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
179.70967741935484-2.70967741935484
22412.652173913043511.3478260869565
310.08333333333333330.916666666666667
41012.6521739130435-2.65217391304348
52024.7894736842105-4.78947368421053
65324.789473684210528.2105263157895
71712.65217391304354.34782608695652
819163
91112.6521739130435-1.65217391304348
102824.78947368421053.21052631578947
111212.6521739130435-0.652173913043478
122124.7894736842105-3.78947368421053
1399.70967741935484-0.709677419354838
141724.7894736842105-7.78947368421053
15139.709677419354843.29032258064516
16149.709677419354844.29032258064516
1718162
1811.5-0.5
191312.65217391304350.347826086956522
2049.70967741935484-5.70967741935484
2155.71428571428571-0.714285714285714
222724.78947368421052.21052631578947
2359.70967741935484-4.70967741935484
2499.70967741935484-0.709677419354838
251512.65217391304352.34782608695652
261216-4
2716160
28281612
293324.78947368421058.21052631578947
3022166
31129.709677419354842.29032258064516
321812.65217391304355.34782608695652
331124.7894736842105-13.7894736842105
3489.70967741935484-1.70967741935484
352624.78947368421051.21052631578947
3600.0833333333333333-0.0833333333333333
37119.709677419354841.29032258064516
38912.6521739130435-3.65217391304348
391112.6521739130435-1.65217391304348
403724.789473684210512.2105263157895
411724.7894736842105-7.78947368421053
421112.6521739130435-1.65217391304348
431316-3
4416160
451116-5
461516-1
471112.6521739130435-1.65217391304348
481412.65217391304351.34782608695652
492212.65217391304359.34782608695652
501212.6521739130435-0.652173913043478
5145.71428571428571-1.71428571428571
521112.6521739130435-1.65217391304348
532924.78947368421054.21052631578947
541512.65217391304352.34782608695652
551712.65217391304354.34782608695652
56159.709677419354845.29032258064516
571412.65217391304351.34782608695652
5879.70967741935484-2.70967741935484
59179.709677419354847.29032258064516
60712.6521739130435-5.65217391304348
611212.6521739130435-0.652173913043478
62119.709677419354841.29032258064516
631312.65217391304350.347826086956522
64149.709677419354844.29032258064516
65125.714285714285716.28571428571429
661412.65217391304351.34782608695652
673124.78947368421056.21052631578947
681524.7894736842105-9.78947368421053
691512.65217391304352.34782608695652
7011.5-0.5
711624.7894736842105-8.78947368421053
721312.65217391304350.347826086956522
731116-5
74412.6521739130435-8.65217391304348
751512.65217391304352.34782608695652
7631.51.5
771512.65217391304352.34782608695652
782524.78947368421050.210526315789473
7965.714285714285710.285714285714286
80812.6521739130435-4.65217391304348
811012.6521739130435-2.65217391304348
821612.65217391304353.34782608695652
8389.70967741935484-1.70967741935484
84119.709677419354841.29032258064516
8539.70967741935484-6.70967741935484
861416-2
872224.7894736842105-2.78947368421053
8879.70967741935484-2.70967741935484
89712.6521739130435-5.65217391304348
901416-2
9117161
921824.7894736842105-6.78947368421053
93159.709677419354845.29032258064516
941212.6521739130435-0.652173913043478
9579.70967741935484-2.70967741935484
962524.78947368421050.210526315789473
9717161
9835.71428571428571-2.71428571428571
991312.65217391304350.347826086956522
1001312.65217391304350.347826086956522
10111.5-0.5
102812.6521739130435-4.65217391304348
10379.70967741935484-2.70967741935484
104109.709677419354840.290322580645162
10575.714285714285711.28571428571429
10611.5-0.5
1071512.65217391304352.34782608695652
10821.50.5
10900.0833333333333333-0.0833333333333333
1101012.6521739130435-2.65217391304348
11159.70967741935484-4.70967741935484
1121412.65217391304351.34782608695652
1131116-5
114812.6521739130435-4.65217391304348
11500.0833333333333333-0.0833333333333333
11600.0833333333333333-0.0833333333333333
1171712.65217391304354.34782608695652
11818162
1191012.6521739130435-2.65217391304348
120109.709677419354840.290322580645162
12101.5-1.5
12217161
12399.70967741935484-0.709677419354838
12469.70967741935484-3.70967741935484
12511.5-0.5
12631.51.5
1271512.65217391304352.34782608695652
128812.6521739130435-4.65217391304348
1291012.6521739130435-2.65217391304348
13000.0833333333333333-0.0833333333333333
13100.0833333333333333-0.0833333333333333
132149.709677419354844.29032258064516
13300.0833333333333333-0.0833333333333333
1341312.65217391304350.347826086956522
13500.0833333333333333-0.0833333333333333
13621.50.5
13700.0833333333333333-0.0833333333333333
13889.70967741935484-1.70967741935484
139139.709677419354843.29032258064516
14000.0833333333333333-0.0833333333333333
14100.0833333333333333-0.0833333333333333
14235.71428571428571-2.71428571428571
1431516-1
144129.709677419354842.29032258064516



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')
}