Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_regression_trees1.wasp
Title produced by softwareRecursive Partitioning (Regression Trees)
Date of computationTue, 20 Dec 2011 04:41:38 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/20/t132437411497882v4882t64l9.htm/, Retrieved Sat, 27 Apr 2024 18:03:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=157843, Retrieved Sat, 27 Apr 2024 18:03:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact121
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Kendall tau Correlation Matrix] [] [2011-11-24 12:37:04] [be8fee7ddc6548b264a38e197c691443]
-    D  [Kendall tau Correlation Matrix] [] [2011-12-20 08:56:34] [be8fee7ddc6548b264a38e197c691443]
- RMP       [Recursive Partitioning (Regression Trees)] [] [2011-12-20 09:41:38] [05300ca098a536dd63793e3fbb62faf1] [Current]
Feedback Forum

Post a new message
Dataseries X:
18	89	48	63	1760
20	56	52	56	1609
0	18	0	0	192
26	92	49	60	2182
31	131	76	116	3367
36	257	125	138	6727
23	55	46	71	1619
30	56	68	107	1507
30	42	52	50	1682
26	92	67	79	2812
24	74	50	58	1943
30	66	71	91	2017
21	96	41	40	1702
25	110	79	91	3034
18	55	49	61	1379
19	79	54	65	1517
33	53	75	131	1637
15	54	1	45	1169
34	84	54	110	2384
18	24	13	41	726
15	55	17	37	993
30	96	89	84	2683
25	70	37	67	1713
34	50	44	69	2027
21	81	50	58	1818
21	28	39	60	1393
25	154	59	88	2000
31	85	79	75	1346
31	115	60	98	2676
20	43	52	67	2106
28	43	50	84	1591
20	43	54	58	1519
17	101	53	35	2171
25	121	76	74	3003
24	52	60	89	2364
0	1	0	0	1
27	60	53	75	2017
14	50	44	39	1564
32	47	36	93	2072
31	63	83	123	2106
21	69	100	73	2270
34	56	37	118	1643
23	29	25	76	957
24	77	59	65	2025
26	46	55	97	1236
22	91	41	67	1178
35	31	23	63	744
21	92	63	84	1976
31	85	54	112	2224
26	56	67	75	2561
22	28	12	39	658
21	65	84	63	1779
27	71	64	93	2355
30	77	56	76	2017
33	59	54	117	1758
11	54	35	30	1675
26	62	52	65	1760
26	23	25	78	875
23	65	67	87	1169
38	93	36	85	2789
29	56	50	107	1606
19	76	48	60	2020
19	58	46	53	1300
26	35	53	67	1235
26	32	27	90	1215
29	38	38	89	1230
36	67	68	135	2226
25	65	93	71	2897
24	38	56	75	1071
21	15	5	42	340
19	110	53	42	2704
12	64	36	8	1247
30	64	72	86	1422
21	68	46	41	1535
34	66	73	118	2593
32	42	12	91	1397
28	58	76	102	2162
28	94	71	89	2513
21	26	17	46	917
31	71	34	60	1234
26	66	54	69	917
29	59	39	95	1924
23	27	26	17	853
25	34	40	61	1398
22	44	35	55	986
26	47	32	55	1608
33	220	55	124	2577
24	108	58	73	1201
24	56	39	73	1189
21	50	39	67	1431
28	40	48	66	1698
27	74	72	75	2185
25	56	39	83	1228
15	58	27	55	1266
13	36	22	27	830
36	111	48	115	2238
24	68	95	76	1787
1	12	13	0	223
24	100	32	83	2254
31	75	41	90	1952
4	28	22	4	665
20	22	41	56	804
23	49	55	63	1211
23	57	28	52	1143
12	38	30	24	710
16	22	2	17	596
29	44	79	105	1353
10	32	18	20	971
0	0	0	0	0
25	31	46	51	1030
21	66	25	76	1130
23	44	50	59	1284
21	61	59	70	1438
21	57	36	38	849
0	5	0	0	78
0	0	0	0	0
23	39	35	81	925
29	78	68	64	1518
28	95	26	67	1946
23	37	36	89	914
1	19	7	3	778
29	71	67	87	1713
17	40	30	48	895
29	52	55	62	1756
12	40	3	32	701
2	12	10	4	285
21	55	46	70	1774
25	29	34	90	1071
29	46	49	91	1582
2	9	1	1	256
0	9	0	0	98
18	55	33	39	1358
1	3	0	0	41
21	58	48	45	1771
0	3	5	0	42
4	16	8	7	528
0	0	0	0	0
25	45	35	75	1026
26	38	21	52	1296
0	4	0	0	81
4	13	0	1	257
17	23	15	49	914
21	50	50	69	1178
22	19	17	56	1080




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157843&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 time3 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Goodness of Fit
Correlation0.9364
R-squared0.8768
RMSE3.2826

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.9364[/C][/ROW]
[ROW][C]R-squared[/C][C]0.8768[/C][/ROW]
[ROW][C]RMSE[/C][C]3.2826[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157843&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157843&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.9364
R-squared0.8768
RMSE3.2826







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
11824.1818181818182-6.18181818181818
22024.1818181818182-4.18181818181818
301.11764705882353-1.11764705882353
42624.18181818181821.81818181818182
53133.5-2.5
63633.52.5
72324.1818181818182-1.18181818181818
83028.321.68
93024.18181818181825.81818181818182
102624.18181818181821.81818181818182
112424.1818181818182-0.181818181818183
123028.321.68
132118.6252.375
142528.32-3.32
151824.1818181818182-6.18181818181818
161924.1818181818182-5.18181818181818
173333.5-0.5
181518.625-3.625
193433.50.5
201818.625-0.625
211518.625-3.625
223024.18181818181825.81818181818182
232524.18181818181820.818181818181817
243424.18181818181829.81818181818182
252124.1818181818182-3.18181818181818
262124.1818181818182-3.18181818181818
272528.32-3.32
283124.18181818181826.81818181818182
293128.322.68
302024.1818181818182-4.18181818181818
312824.18181818181823.81818181818182
322024.1818181818182-4.18181818181818
331718.625-1.625
342524.18181818181820.818181818181817
352428.32-4.32
3601.11764705882353-1.11764705882353
372724.18181818181822.81818181818182
381418.625-4.625
393228.323.68
403133.5-2.5
412124.1818181818182-3.18181818181818
423433.50.5
432324.1818181818182-1.18181818181818
442424.1818181818182-0.181818181818183
452628.32-2.32
462224.1818181818182-2.18181818181818
473524.181818181818210.8181818181818
482124.1818181818182-3.18181818181818
493133.5-2.5
502624.18181818181821.81818181818182
512218.6253.375
522124.1818181818182-3.18181818181818
532728.32-1.32
543024.18181818181825.81818181818182
553333.5-0.5
561113.625-2.625
572624.18181818181821.81818181818182
582624.18181818181821.81818181818182
592328.32-5.32
603828.329.68
612928.320.68
621924.1818181818182-5.18181818181818
631924.1818181818182-5.18181818181818
642624.18181818181821.81818181818182
652628.32-2.32
662928.320.68
673633.52.5
682524.18181818181820.818181818181817
692424.1818181818182-0.181818181818183
702118.6252.375
711918.6250.375
721213.625-1.625
733028.321.68
742118.6252.375
753433.50.5
763228.323.68
772828.32-0.32
782828.32-0.32
792118.6252.375
803124.18181818181826.81818181818182
812624.18181818181821.81818181818182
822928.320.68
832313.6259.375
842524.18181818181820.818181818181817
852224.1818181818182-2.18181818181818
862624.18181818181821.81818181818182
873333.5-0.5
882424.1818181818182-0.181818181818183
892424.1818181818182-0.181818181818183
902124.1818181818182-3.18181818181818
912824.18181818181823.81818181818182
922724.18181818181822.81818181818182
932524.18181818181820.818181818181817
941524.1818181818182-9.18181818181818
951313.625-0.625
963633.52.5
972424.1818181818182-0.181818181818183
9811.11764705882353-0.117647058823529
992424.1818181818182-0.181818181818183
1003128.322.68
10141.117647058823532.88235294117647
1022024.1818181818182-4.18181818181818
1032324.1818181818182-1.18181818181818
1042324.1818181818182-1.18181818181818
1051213.625-1.625
1061613.6252.375
1072928.320.68
1081013.625-3.625
10901.11764705882353-1.11764705882353
1102524.18181818181820.818181818181817
1112124.1818181818182-3.18181818181818
1122324.1818181818182-1.18181818181818
1132124.1818181818182-3.18181818181818
1142118.6252.375
11501.11764705882353-1.11764705882353
11601.11764705882353-1.11764705882353
1172324.1818181818182-1.18181818181818
1182924.18181818181824.81818181818182
1192824.18181818181823.81818181818182
1202328.32-5.32
12111.11764705882353-0.117647058823529
1222928.320.68
1231718.625-1.625
1242924.18181818181824.81818181818182
1251213.625-1.625
12621.117647058823530.882352941176471
1272124.1818181818182-3.18181818181818
1282528.32-3.32
1292928.320.68
13021.117647058823530.882352941176471
13101.11764705882353-1.11764705882353
1321818.625-0.625
13311.11764705882353-0.117647058823529
1342118.6252.375
13501.11764705882353-1.11764705882353
13641.117647058823532.88235294117647
13701.11764705882353-1.11764705882353
1382524.18181818181820.818181818181817
1392624.18181818181821.81818181818182
14001.11764705882353-1.11764705882353
14141.117647058823532.88235294117647
1421718.625-1.625
1432124.1818181818182-3.18181818181818
1442224.1818181818182-2.18181818181818

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 18 & 24.1818181818182 & -6.18181818181818 \tabularnewline
2 & 20 & 24.1818181818182 & -4.18181818181818 \tabularnewline
3 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
4 & 26 & 24.1818181818182 & 1.81818181818182 \tabularnewline
5 & 31 & 33.5 & -2.5 \tabularnewline
6 & 36 & 33.5 & 2.5 \tabularnewline
7 & 23 & 24.1818181818182 & -1.18181818181818 \tabularnewline
8 & 30 & 28.32 & 1.68 \tabularnewline
9 & 30 & 24.1818181818182 & 5.81818181818182 \tabularnewline
10 & 26 & 24.1818181818182 & 1.81818181818182 \tabularnewline
11 & 24 & 24.1818181818182 & -0.181818181818183 \tabularnewline
12 & 30 & 28.32 & 1.68 \tabularnewline
13 & 21 & 18.625 & 2.375 \tabularnewline
14 & 25 & 28.32 & -3.32 \tabularnewline
15 & 18 & 24.1818181818182 & -6.18181818181818 \tabularnewline
16 & 19 & 24.1818181818182 & -5.18181818181818 \tabularnewline
17 & 33 & 33.5 & -0.5 \tabularnewline
18 & 15 & 18.625 & -3.625 \tabularnewline
19 & 34 & 33.5 & 0.5 \tabularnewline
20 & 18 & 18.625 & -0.625 \tabularnewline
21 & 15 & 18.625 & -3.625 \tabularnewline
22 & 30 & 24.1818181818182 & 5.81818181818182 \tabularnewline
23 & 25 & 24.1818181818182 & 0.818181818181817 \tabularnewline
24 & 34 & 24.1818181818182 & 9.81818181818182 \tabularnewline
25 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
26 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
27 & 25 & 28.32 & -3.32 \tabularnewline
28 & 31 & 24.1818181818182 & 6.81818181818182 \tabularnewline
29 & 31 & 28.32 & 2.68 \tabularnewline
30 & 20 & 24.1818181818182 & -4.18181818181818 \tabularnewline
31 & 28 & 24.1818181818182 & 3.81818181818182 \tabularnewline
32 & 20 & 24.1818181818182 & -4.18181818181818 \tabularnewline
33 & 17 & 18.625 & -1.625 \tabularnewline
34 & 25 & 24.1818181818182 & 0.818181818181817 \tabularnewline
35 & 24 & 28.32 & -4.32 \tabularnewline
36 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
37 & 27 & 24.1818181818182 & 2.81818181818182 \tabularnewline
38 & 14 & 18.625 & -4.625 \tabularnewline
39 & 32 & 28.32 & 3.68 \tabularnewline
40 & 31 & 33.5 & -2.5 \tabularnewline
41 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
42 & 34 & 33.5 & 0.5 \tabularnewline
43 & 23 & 24.1818181818182 & -1.18181818181818 \tabularnewline
44 & 24 & 24.1818181818182 & -0.181818181818183 \tabularnewline
45 & 26 & 28.32 & -2.32 \tabularnewline
46 & 22 & 24.1818181818182 & -2.18181818181818 \tabularnewline
47 & 35 & 24.1818181818182 & 10.8181818181818 \tabularnewline
48 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
49 & 31 & 33.5 & -2.5 \tabularnewline
50 & 26 & 24.1818181818182 & 1.81818181818182 \tabularnewline
51 & 22 & 18.625 & 3.375 \tabularnewline
52 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
53 & 27 & 28.32 & -1.32 \tabularnewline
54 & 30 & 24.1818181818182 & 5.81818181818182 \tabularnewline
55 & 33 & 33.5 & -0.5 \tabularnewline
56 & 11 & 13.625 & -2.625 \tabularnewline
57 & 26 & 24.1818181818182 & 1.81818181818182 \tabularnewline
58 & 26 & 24.1818181818182 & 1.81818181818182 \tabularnewline
59 & 23 & 28.32 & -5.32 \tabularnewline
60 & 38 & 28.32 & 9.68 \tabularnewline
61 & 29 & 28.32 & 0.68 \tabularnewline
62 & 19 & 24.1818181818182 & -5.18181818181818 \tabularnewline
63 & 19 & 24.1818181818182 & -5.18181818181818 \tabularnewline
64 & 26 & 24.1818181818182 & 1.81818181818182 \tabularnewline
65 & 26 & 28.32 & -2.32 \tabularnewline
66 & 29 & 28.32 & 0.68 \tabularnewline
67 & 36 & 33.5 & 2.5 \tabularnewline
68 & 25 & 24.1818181818182 & 0.818181818181817 \tabularnewline
69 & 24 & 24.1818181818182 & -0.181818181818183 \tabularnewline
70 & 21 & 18.625 & 2.375 \tabularnewline
71 & 19 & 18.625 & 0.375 \tabularnewline
72 & 12 & 13.625 & -1.625 \tabularnewline
73 & 30 & 28.32 & 1.68 \tabularnewline
74 & 21 & 18.625 & 2.375 \tabularnewline
75 & 34 & 33.5 & 0.5 \tabularnewline
76 & 32 & 28.32 & 3.68 \tabularnewline
77 & 28 & 28.32 & -0.32 \tabularnewline
78 & 28 & 28.32 & -0.32 \tabularnewline
79 & 21 & 18.625 & 2.375 \tabularnewline
80 & 31 & 24.1818181818182 & 6.81818181818182 \tabularnewline
81 & 26 & 24.1818181818182 & 1.81818181818182 \tabularnewline
82 & 29 & 28.32 & 0.68 \tabularnewline
83 & 23 & 13.625 & 9.375 \tabularnewline
84 & 25 & 24.1818181818182 & 0.818181818181817 \tabularnewline
85 & 22 & 24.1818181818182 & -2.18181818181818 \tabularnewline
86 & 26 & 24.1818181818182 & 1.81818181818182 \tabularnewline
87 & 33 & 33.5 & -0.5 \tabularnewline
88 & 24 & 24.1818181818182 & -0.181818181818183 \tabularnewline
89 & 24 & 24.1818181818182 & -0.181818181818183 \tabularnewline
90 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
91 & 28 & 24.1818181818182 & 3.81818181818182 \tabularnewline
92 & 27 & 24.1818181818182 & 2.81818181818182 \tabularnewline
93 & 25 & 24.1818181818182 & 0.818181818181817 \tabularnewline
94 & 15 & 24.1818181818182 & -9.18181818181818 \tabularnewline
95 & 13 & 13.625 & -0.625 \tabularnewline
96 & 36 & 33.5 & 2.5 \tabularnewline
97 & 24 & 24.1818181818182 & -0.181818181818183 \tabularnewline
98 & 1 & 1.11764705882353 & -0.117647058823529 \tabularnewline
99 & 24 & 24.1818181818182 & -0.181818181818183 \tabularnewline
100 & 31 & 28.32 & 2.68 \tabularnewline
101 & 4 & 1.11764705882353 & 2.88235294117647 \tabularnewline
102 & 20 & 24.1818181818182 & -4.18181818181818 \tabularnewline
103 & 23 & 24.1818181818182 & -1.18181818181818 \tabularnewline
104 & 23 & 24.1818181818182 & -1.18181818181818 \tabularnewline
105 & 12 & 13.625 & -1.625 \tabularnewline
106 & 16 & 13.625 & 2.375 \tabularnewline
107 & 29 & 28.32 & 0.68 \tabularnewline
108 & 10 & 13.625 & -3.625 \tabularnewline
109 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
110 & 25 & 24.1818181818182 & 0.818181818181817 \tabularnewline
111 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
112 & 23 & 24.1818181818182 & -1.18181818181818 \tabularnewline
113 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
114 & 21 & 18.625 & 2.375 \tabularnewline
115 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
116 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
117 & 23 & 24.1818181818182 & -1.18181818181818 \tabularnewline
118 & 29 & 24.1818181818182 & 4.81818181818182 \tabularnewline
119 & 28 & 24.1818181818182 & 3.81818181818182 \tabularnewline
120 & 23 & 28.32 & -5.32 \tabularnewline
121 & 1 & 1.11764705882353 & -0.117647058823529 \tabularnewline
122 & 29 & 28.32 & 0.68 \tabularnewline
123 & 17 & 18.625 & -1.625 \tabularnewline
124 & 29 & 24.1818181818182 & 4.81818181818182 \tabularnewline
125 & 12 & 13.625 & -1.625 \tabularnewline
126 & 2 & 1.11764705882353 & 0.882352941176471 \tabularnewline
127 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
128 & 25 & 28.32 & -3.32 \tabularnewline
129 & 29 & 28.32 & 0.68 \tabularnewline
130 & 2 & 1.11764705882353 & 0.882352941176471 \tabularnewline
131 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
132 & 18 & 18.625 & -0.625 \tabularnewline
133 & 1 & 1.11764705882353 & -0.117647058823529 \tabularnewline
134 & 21 & 18.625 & 2.375 \tabularnewline
135 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
136 & 4 & 1.11764705882353 & 2.88235294117647 \tabularnewline
137 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
138 & 25 & 24.1818181818182 & 0.818181818181817 \tabularnewline
139 & 26 & 24.1818181818182 & 1.81818181818182 \tabularnewline
140 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
141 & 4 & 1.11764705882353 & 2.88235294117647 \tabularnewline
142 & 17 & 18.625 & -1.625 \tabularnewline
143 & 21 & 24.1818181818182 & -3.18181818181818 \tabularnewline
144 & 22 & 24.1818181818182 & -2.18181818181818 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=157843&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]18[/C][C]24.1818181818182[/C][C]-6.18181818181818[/C][/ROW]
[ROW][C]2[/C][C]20[/C][C]24.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]3[/C][C]0[/C][C]1.11764705882353[/C][C]-1.11764705882353[/C][/ROW]
[ROW][C]4[/C][C]26[/C][C]24.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]5[/C][C]31[/C][C]33.5[/C][C]-2.5[/C][/ROW]
[ROW][C]6[/C][C]36[/C][C]33.5[/C][C]2.5[/C][/ROW]
[ROW][C]7[/C][C]23[/C][C]24.1818181818182[/C][C]-1.18181818181818[/C][/ROW]
[ROW][C]8[/C][C]30[/C][C]28.32[/C][C]1.68[/C][/ROW]
[ROW][C]9[/C][C]30[/C][C]24.1818181818182[/C][C]5.81818181818182[/C][/ROW]
[ROW][C]10[/C][C]26[/C][C]24.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]11[/C][C]24[/C][C]24.1818181818182[/C][C]-0.181818181818183[/C][/ROW]
[ROW][C]12[/C][C]30[/C][C]28.32[/C][C]1.68[/C][/ROW]
[ROW][C]13[/C][C]21[/C][C]18.625[/C][C]2.375[/C][/ROW]
[ROW][C]14[/C][C]25[/C][C]28.32[/C][C]-3.32[/C][/ROW]
[ROW][C]15[/C][C]18[/C][C]24.1818181818182[/C][C]-6.18181818181818[/C][/ROW]
[ROW][C]16[/C][C]19[/C][C]24.1818181818182[/C][C]-5.18181818181818[/C][/ROW]
[ROW][C]17[/C][C]33[/C][C]33.5[/C][C]-0.5[/C][/ROW]
[ROW][C]18[/C][C]15[/C][C]18.625[/C][C]-3.625[/C][/ROW]
[ROW][C]19[/C][C]34[/C][C]33.5[/C][C]0.5[/C][/ROW]
[ROW][C]20[/C][C]18[/C][C]18.625[/C][C]-0.625[/C][/ROW]
[ROW][C]21[/C][C]15[/C][C]18.625[/C][C]-3.625[/C][/ROW]
[ROW][C]22[/C][C]30[/C][C]24.1818181818182[/C][C]5.81818181818182[/C][/ROW]
[ROW][C]23[/C][C]25[/C][C]24.1818181818182[/C][C]0.818181818181817[/C][/ROW]
[ROW][C]24[/C][C]34[/C][C]24.1818181818182[/C][C]9.81818181818182[/C][/ROW]
[ROW][C]25[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]26[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]27[/C][C]25[/C][C]28.32[/C][C]-3.32[/C][/ROW]
[ROW][C]28[/C][C]31[/C][C]24.1818181818182[/C][C]6.81818181818182[/C][/ROW]
[ROW][C]29[/C][C]31[/C][C]28.32[/C][C]2.68[/C][/ROW]
[ROW][C]30[/C][C]20[/C][C]24.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]31[/C][C]28[/C][C]24.1818181818182[/C][C]3.81818181818182[/C][/ROW]
[ROW][C]32[/C][C]20[/C][C]24.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]33[/C][C]17[/C][C]18.625[/C][C]-1.625[/C][/ROW]
[ROW][C]34[/C][C]25[/C][C]24.1818181818182[/C][C]0.818181818181817[/C][/ROW]
[ROW][C]35[/C][C]24[/C][C]28.32[/C][C]-4.32[/C][/ROW]
[ROW][C]36[/C][C]0[/C][C]1.11764705882353[/C][C]-1.11764705882353[/C][/ROW]
[ROW][C]37[/C][C]27[/C][C]24.1818181818182[/C][C]2.81818181818182[/C][/ROW]
[ROW][C]38[/C][C]14[/C][C]18.625[/C][C]-4.625[/C][/ROW]
[ROW][C]39[/C][C]32[/C][C]28.32[/C][C]3.68[/C][/ROW]
[ROW][C]40[/C][C]31[/C][C]33.5[/C][C]-2.5[/C][/ROW]
[ROW][C]41[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]42[/C][C]34[/C][C]33.5[/C][C]0.5[/C][/ROW]
[ROW][C]43[/C][C]23[/C][C]24.1818181818182[/C][C]-1.18181818181818[/C][/ROW]
[ROW][C]44[/C][C]24[/C][C]24.1818181818182[/C][C]-0.181818181818183[/C][/ROW]
[ROW][C]45[/C][C]26[/C][C]28.32[/C][C]-2.32[/C][/ROW]
[ROW][C]46[/C][C]22[/C][C]24.1818181818182[/C][C]-2.18181818181818[/C][/ROW]
[ROW][C]47[/C][C]35[/C][C]24.1818181818182[/C][C]10.8181818181818[/C][/ROW]
[ROW][C]48[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]49[/C][C]31[/C][C]33.5[/C][C]-2.5[/C][/ROW]
[ROW][C]50[/C][C]26[/C][C]24.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]51[/C][C]22[/C][C]18.625[/C][C]3.375[/C][/ROW]
[ROW][C]52[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]53[/C][C]27[/C][C]28.32[/C][C]-1.32[/C][/ROW]
[ROW][C]54[/C][C]30[/C][C]24.1818181818182[/C][C]5.81818181818182[/C][/ROW]
[ROW][C]55[/C][C]33[/C][C]33.5[/C][C]-0.5[/C][/ROW]
[ROW][C]56[/C][C]11[/C][C]13.625[/C][C]-2.625[/C][/ROW]
[ROW][C]57[/C][C]26[/C][C]24.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]58[/C][C]26[/C][C]24.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]59[/C][C]23[/C][C]28.32[/C][C]-5.32[/C][/ROW]
[ROW][C]60[/C][C]38[/C][C]28.32[/C][C]9.68[/C][/ROW]
[ROW][C]61[/C][C]29[/C][C]28.32[/C][C]0.68[/C][/ROW]
[ROW][C]62[/C][C]19[/C][C]24.1818181818182[/C][C]-5.18181818181818[/C][/ROW]
[ROW][C]63[/C][C]19[/C][C]24.1818181818182[/C][C]-5.18181818181818[/C][/ROW]
[ROW][C]64[/C][C]26[/C][C]24.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]65[/C][C]26[/C][C]28.32[/C][C]-2.32[/C][/ROW]
[ROW][C]66[/C][C]29[/C][C]28.32[/C][C]0.68[/C][/ROW]
[ROW][C]67[/C][C]36[/C][C]33.5[/C][C]2.5[/C][/ROW]
[ROW][C]68[/C][C]25[/C][C]24.1818181818182[/C][C]0.818181818181817[/C][/ROW]
[ROW][C]69[/C][C]24[/C][C]24.1818181818182[/C][C]-0.181818181818183[/C][/ROW]
[ROW][C]70[/C][C]21[/C][C]18.625[/C][C]2.375[/C][/ROW]
[ROW][C]71[/C][C]19[/C][C]18.625[/C][C]0.375[/C][/ROW]
[ROW][C]72[/C][C]12[/C][C]13.625[/C][C]-1.625[/C][/ROW]
[ROW][C]73[/C][C]30[/C][C]28.32[/C][C]1.68[/C][/ROW]
[ROW][C]74[/C][C]21[/C][C]18.625[/C][C]2.375[/C][/ROW]
[ROW][C]75[/C][C]34[/C][C]33.5[/C][C]0.5[/C][/ROW]
[ROW][C]76[/C][C]32[/C][C]28.32[/C][C]3.68[/C][/ROW]
[ROW][C]77[/C][C]28[/C][C]28.32[/C][C]-0.32[/C][/ROW]
[ROW][C]78[/C][C]28[/C][C]28.32[/C][C]-0.32[/C][/ROW]
[ROW][C]79[/C][C]21[/C][C]18.625[/C][C]2.375[/C][/ROW]
[ROW][C]80[/C][C]31[/C][C]24.1818181818182[/C][C]6.81818181818182[/C][/ROW]
[ROW][C]81[/C][C]26[/C][C]24.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]82[/C][C]29[/C][C]28.32[/C][C]0.68[/C][/ROW]
[ROW][C]83[/C][C]23[/C][C]13.625[/C][C]9.375[/C][/ROW]
[ROW][C]84[/C][C]25[/C][C]24.1818181818182[/C][C]0.818181818181817[/C][/ROW]
[ROW][C]85[/C][C]22[/C][C]24.1818181818182[/C][C]-2.18181818181818[/C][/ROW]
[ROW][C]86[/C][C]26[/C][C]24.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]87[/C][C]33[/C][C]33.5[/C][C]-0.5[/C][/ROW]
[ROW][C]88[/C][C]24[/C][C]24.1818181818182[/C][C]-0.181818181818183[/C][/ROW]
[ROW][C]89[/C][C]24[/C][C]24.1818181818182[/C][C]-0.181818181818183[/C][/ROW]
[ROW][C]90[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]91[/C][C]28[/C][C]24.1818181818182[/C][C]3.81818181818182[/C][/ROW]
[ROW][C]92[/C][C]27[/C][C]24.1818181818182[/C][C]2.81818181818182[/C][/ROW]
[ROW][C]93[/C][C]25[/C][C]24.1818181818182[/C][C]0.818181818181817[/C][/ROW]
[ROW][C]94[/C][C]15[/C][C]24.1818181818182[/C][C]-9.18181818181818[/C][/ROW]
[ROW][C]95[/C][C]13[/C][C]13.625[/C][C]-0.625[/C][/ROW]
[ROW][C]96[/C][C]36[/C][C]33.5[/C][C]2.5[/C][/ROW]
[ROW][C]97[/C][C]24[/C][C]24.1818181818182[/C][C]-0.181818181818183[/C][/ROW]
[ROW][C]98[/C][C]1[/C][C]1.11764705882353[/C][C]-0.117647058823529[/C][/ROW]
[ROW][C]99[/C][C]24[/C][C]24.1818181818182[/C][C]-0.181818181818183[/C][/ROW]
[ROW][C]100[/C][C]31[/C][C]28.32[/C][C]2.68[/C][/ROW]
[ROW][C]101[/C][C]4[/C][C]1.11764705882353[/C][C]2.88235294117647[/C][/ROW]
[ROW][C]102[/C][C]20[/C][C]24.1818181818182[/C][C]-4.18181818181818[/C][/ROW]
[ROW][C]103[/C][C]23[/C][C]24.1818181818182[/C][C]-1.18181818181818[/C][/ROW]
[ROW][C]104[/C][C]23[/C][C]24.1818181818182[/C][C]-1.18181818181818[/C][/ROW]
[ROW][C]105[/C][C]12[/C][C]13.625[/C][C]-1.625[/C][/ROW]
[ROW][C]106[/C][C]16[/C][C]13.625[/C][C]2.375[/C][/ROW]
[ROW][C]107[/C][C]29[/C][C]28.32[/C][C]0.68[/C][/ROW]
[ROW][C]108[/C][C]10[/C][C]13.625[/C][C]-3.625[/C][/ROW]
[ROW][C]109[/C][C]0[/C][C]1.11764705882353[/C][C]-1.11764705882353[/C][/ROW]
[ROW][C]110[/C][C]25[/C][C]24.1818181818182[/C][C]0.818181818181817[/C][/ROW]
[ROW][C]111[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]112[/C][C]23[/C][C]24.1818181818182[/C][C]-1.18181818181818[/C][/ROW]
[ROW][C]113[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]114[/C][C]21[/C][C]18.625[/C][C]2.375[/C][/ROW]
[ROW][C]115[/C][C]0[/C][C]1.11764705882353[/C][C]-1.11764705882353[/C][/ROW]
[ROW][C]116[/C][C]0[/C][C]1.11764705882353[/C][C]-1.11764705882353[/C][/ROW]
[ROW][C]117[/C][C]23[/C][C]24.1818181818182[/C][C]-1.18181818181818[/C][/ROW]
[ROW][C]118[/C][C]29[/C][C]24.1818181818182[/C][C]4.81818181818182[/C][/ROW]
[ROW][C]119[/C][C]28[/C][C]24.1818181818182[/C][C]3.81818181818182[/C][/ROW]
[ROW][C]120[/C][C]23[/C][C]28.32[/C][C]-5.32[/C][/ROW]
[ROW][C]121[/C][C]1[/C][C]1.11764705882353[/C][C]-0.117647058823529[/C][/ROW]
[ROW][C]122[/C][C]29[/C][C]28.32[/C][C]0.68[/C][/ROW]
[ROW][C]123[/C][C]17[/C][C]18.625[/C][C]-1.625[/C][/ROW]
[ROW][C]124[/C][C]29[/C][C]24.1818181818182[/C][C]4.81818181818182[/C][/ROW]
[ROW][C]125[/C][C]12[/C][C]13.625[/C][C]-1.625[/C][/ROW]
[ROW][C]126[/C][C]2[/C][C]1.11764705882353[/C][C]0.882352941176471[/C][/ROW]
[ROW][C]127[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]128[/C][C]25[/C][C]28.32[/C][C]-3.32[/C][/ROW]
[ROW][C]129[/C][C]29[/C][C]28.32[/C][C]0.68[/C][/ROW]
[ROW][C]130[/C][C]2[/C][C]1.11764705882353[/C][C]0.882352941176471[/C][/ROW]
[ROW][C]131[/C][C]0[/C][C]1.11764705882353[/C][C]-1.11764705882353[/C][/ROW]
[ROW][C]132[/C][C]18[/C][C]18.625[/C][C]-0.625[/C][/ROW]
[ROW][C]133[/C][C]1[/C][C]1.11764705882353[/C][C]-0.117647058823529[/C][/ROW]
[ROW][C]134[/C][C]21[/C][C]18.625[/C][C]2.375[/C][/ROW]
[ROW][C]135[/C][C]0[/C][C]1.11764705882353[/C][C]-1.11764705882353[/C][/ROW]
[ROW][C]136[/C][C]4[/C][C]1.11764705882353[/C][C]2.88235294117647[/C][/ROW]
[ROW][C]137[/C][C]0[/C][C]1.11764705882353[/C][C]-1.11764705882353[/C][/ROW]
[ROW][C]138[/C][C]25[/C][C]24.1818181818182[/C][C]0.818181818181817[/C][/ROW]
[ROW][C]139[/C][C]26[/C][C]24.1818181818182[/C][C]1.81818181818182[/C][/ROW]
[ROW][C]140[/C][C]0[/C][C]1.11764705882353[/C][C]-1.11764705882353[/C][/ROW]
[ROW][C]141[/C][C]4[/C][C]1.11764705882353[/C][C]2.88235294117647[/C][/ROW]
[ROW][C]142[/C][C]17[/C][C]18.625[/C][C]-1.625[/C][/ROW]
[ROW][C]143[/C][C]21[/C][C]24.1818181818182[/C][C]-3.18181818181818[/C][/ROW]
[ROW][C]144[/C][C]22[/C][C]24.1818181818182[/C][C]-2.18181818181818[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157843&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157843&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
11824.1818181818182-6.18181818181818
22024.1818181818182-4.18181818181818
301.11764705882353-1.11764705882353
42624.18181818181821.81818181818182
53133.5-2.5
63633.52.5
72324.1818181818182-1.18181818181818
83028.321.68
93024.18181818181825.81818181818182
102624.18181818181821.81818181818182
112424.1818181818182-0.181818181818183
123028.321.68
132118.6252.375
142528.32-3.32
151824.1818181818182-6.18181818181818
161924.1818181818182-5.18181818181818
173333.5-0.5
181518.625-3.625
193433.50.5
201818.625-0.625
211518.625-3.625
223024.18181818181825.81818181818182
232524.18181818181820.818181818181817
243424.18181818181829.81818181818182
252124.1818181818182-3.18181818181818
262124.1818181818182-3.18181818181818
272528.32-3.32
283124.18181818181826.81818181818182
293128.322.68
302024.1818181818182-4.18181818181818
312824.18181818181823.81818181818182
322024.1818181818182-4.18181818181818
331718.625-1.625
342524.18181818181820.818181818181817
352428.32-4.32
3601.11764705882353-1.11764705882353
372724.18181818181822.81818181818182
381418.625-4.625
393228.323.68
403133.5-2.5
412124.1818181818182-3.18181818181818
423433.50.5
432324.1818181818182-1.18181818181818
442424.1818181818182-0.181818181818183
452628.32-2.32
462224.1818181818182-2.18181818181818
473524.181818181818210.8181818181818
482124.1818181818182-3.18181818181818
493133.5-2.5
502624.18181818181821.81818181818182
512218.6253.375
522124.1818181818182-3.18181818181818
532728.32-1.32
543024.18181818181825.81818181818182
553333.5-0.5
561113.625-2.625
572624.18181818181821.81818181818182
582624.18181818181821.81818181818182
592328.32-5.32
603828.329.68
612928.320.68
621924.1818181818182-5.18181818181818
631924.1818181818182-5.18181818181818
642624.18181818181821.81818181818182
652628.32-2.32
662928.320.68
673633.52.5
682524.18181818181820.818181818181817
692424.1818181818182-0.181818181818183
702118.6252.375
711918.6250.375
721213.625-1.625
733028.321.68
742118.6252.375
753433.50.5
763228.323.68
772828.32-0.32
782828.32-0.32
792118.6252.375
803124.18181818181826.81818181818182
812624.18181818181821.81818181818182
822928.320.68
832313.6259.375
842524.18181818181820.818181818181817
852224.1818181818182-2.18181818181818
862624.18181818181821.81818181818182
873333.5-0.5
882424.1818181818182-0.181818181818183
892424.1818181818182-0.181818181818183
902124.1818181818182-3.18181818181818
912824.18181818181823.81818181818182
922724.18181818181822.81818181818182
932524.18181818181820.818181818181817
941524.1818181818182-9.18181818181818
951313.625-0.625
963633.52.5
972424.1818181818182-0.181818181818183
9811.11764705882353-0.117647058823529
992424.1818181818182-0.181818181818183
1003128.322.68
10141.117647058823532.88235294117647
1022024.1818181818182-4.18181818181818
1032324.1818181818182-1.18181818181818
1042324.1818181818182-1.18181818181818
1051213.625-1.625
1061613.6252.375
1072928.320.68
1081013.625-3.625
10901.11764705882353-1.11764705882353
1102524.18181818181820.818181818181817
1112124.1818181818182-3.18181818181818
1122324.1818181818182-1.18181818181818
1132124.1818181818182-3.18181818181818
1142118.6252.375
11501.11764705882353-1.11764705882353
11601.11764705882353-1.11764705882353
1172324.1818181818182-1.18181818181818
1182924.18181818181824.81818181818182
1192824.18181818181823.81818181818182
1202328.32-5.32
12111.11764705882353-0.117647058823529
1222928.320.68
1231718.625-1.625
1242924.18181818181824.81818181818182
1251213.625-1.625
12621.117647058823530.882352941176471
1272124.1818181818182-3.18181818181818
1282528.32-3.32
1292928.320.68
13021.117647058823530.882352941176471
13101.11764705882353-1.11764705882353
1321818.625-0.625
13311.11764705882353-0.117647058823529
1342118.6252.375
13501.11764705882353-1.11764705882353
13641.117647058823532.88235294117647
13701.11764705882353-1.11764705882353
1382524.18181818181820.818181818181817
1392624.18181818181821.81818181818182
14001.11764705882353-1.11764705882353
14141.117647058823532.88235294117647
1421718.625-1.625
1432124.1818181818182-3.18181818181818
1442224.1818181818182-2.18181818181818



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