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 16:14:19 -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/t1324588534hwpdw7985qlz011.htm/, Retrieved Fri, 03 May 2024 13:18:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=159986, Retrieved Fri, 03 May 2024 13:18:45 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact95
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Recursive Partitioning (Regression Trees)] [recursive partiti...] [2011-12-22 21:14:19] [e8e105c2e7d07131df1852088351b05f] [Current]
Feedback Forum

Post a new message
Dataseries X:
1801	159261	91	48	19
1717	189672	59	53	20
192	7215	18	0	0
2295	129098	95	51	27
3450	230632	136	76	31
6861	515038	263	136	36
1795	180745	56	62	23
1681	185559	59	83	30
1897	154581	44	55	30
2974	298001	96	67	26
1946	121844	75	50	24
2330	200907	70	87	30
1839	101647	100	46	22
3183	220269	119	79	28
1486	170952	61	56	18
1567	154647	88	54	22
1756	142018	57	81	33
1247	79030	61	6	15
2779	167047	87	74	34
726	27997	24	13	18
1048	73019	59	22	15
2805	241082	100	99	30
1760	195820	72	38	25
2266	142001	54	59	34
1848	145433	86	50	21
1665	183744	32	50	21
2114	206521	164	63	25
1448	201385	94	90	31
2741	354924	118	60	31
2112	192399	44	52	20
1684	182286	44	61	28
1616	181590	45	60	22
2227	133801	105	53	17
3088	233686	123	76	25
2389	219428	53	63	24
1	0	1	0	0
2099	223044	63	54	28
1669	100129	51	44	14
2137	145864	49	42	35
2153	249965	64	83	34
2390	242379	71	105	22
1701	145794	59	37	34
1049	103623	33	25	23
2161	195891	78	64	24
1276	117156	50	55	26
1190	157787	95	41	22
745	81293	32	23	35
2374	243273	103	77	24
2289	233155	89	59	31
2639	160344	59	68	26
658	48188	28	12	22
1917	161922	69	99	21
2557	307432	74	78	27
2026	235223	79	56	30
1911	195583	59	67	33
1716	146061	56	40	11
1852	208834	67	53	26
981	93764	24	26	26
1177	151985	66	67	23
2849	195506	97	36	38
1688	148922	60	50	31
2162	142670	81	51	20
1331	129561	61	46	22
1307	122204	38	57	26
1256	160930	35	27	26
1294	99184	41	38	33
2311	192811	71	72	36
2897	138708	65	93	25
1103	114408	38	59	24
340	31970	15	5	21
2791	225558	112	53	19
1338	139220	72	40	12
1441	113612	68	72	30
1681	119537	72	53	21
2650	162203	67	81	34
1499	100098	44	27	32
2302	174768	60	94	28
2540	158459	97	71	28
1000	80934	30	20	21
1234	84971	71	34	31
927	80545	68	54	26
2176	287191	64	49	29
957	62974	28	26	23
1551	134091	40	48	25
1014	75555	46	35	22
1772	162154	55	32	26
2630	227638	229	55	33
1205	115367	112	58	24
1392	115603	63	44	24
1524	155537	52	45	21
1829	153133	41	49	28
2229	165618	78	72	27
1233	151517	57	39	25
1365	133686	58	28	15
950	61342	40	24	13
2319	245196	117	52	36
1857	195576	70	96	24
223	19349	12	13	1
2390	225371	105	38	24
1985	153213	78	41	31
700	59117	29	24	4
1062	91762	24	54	21
1311	136769	54	68	23
1157	114798	61	28	23
823	85338	40	36	12
596	27676	22	2	16
1545	153535	48	91	29
1130	122417	37	29	26
0	0	0	0	0
1082	91529	32	46	25
1135	107205	67	25	21
1367	144664	45	51	23
1506	146445	63	60	21
870	76656	60	36	21
78	3616	5	0	0
0	0	0	0	0
1130	183088	44	40	23
1582	144677	84	68	33
2034	159104	98	28	30
970	128944	39	41	23
778	43410	19	7	1
1752	175774	73	70	29
957	95401	42	30	18
2098	134837	55	69	33
731	60493	40	3	12
285	19764	12	10	2
1834	164062	56	46	21
1148	132696	33	34	28
1646	155367	54	54	29
256	11796	9	1	2
98	10674	9	0	0
1404	142261	57	39	18
41	6836	3	0	1
1824	162563	63	48	21
42	5118	3	5	0
528	40248	16	8	4
0	0	0	0	0
1073	122641	47	38	25
1305	88837	38	21	26
81	7131	4	0	0
261	9056	14	0	4
934	76611	24	15	17
1180	132697	51	50	21
1148	100681	20	17	22




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

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







Goodness of Fit
Correlation0.853
R-squared0.7276
RMSE4.9421

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.853[/C][/ROW]
[ROW][C]R-squared[/C][C]0.7276[/C][/ROW]
[ROW][C]RMSE[/C][C]4.9421[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159986&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159986&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.853
R-squared0.7276
RMSE4.9421







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
11922.8955223880597-3.8955223880597
22022.8955223880597-2.8955223880597
3011.1-11.1
42728.4-1.4
53128.42.6
63628.47.6
72322.89552238805970.104477611940297
83029.11111111111110.888888888888889
93028.41.6
102628.4-2.4
112428.4-4.4
123028.41.6
132222.8955223880597-0.895522388059703
142828.4-0.399999999999999
151822.8955223880597-4.8955223880597
162222.8955223880597-0.895522388059703
173329.11111111111113.88888888888889
181522.8955223880597-7.8955223880597
193428.45.6
201811.16.9
211522.8955223880597-7.8955223880597
223028.41.6
232522.89552238805972.1044776119403
243428.45.6
252122.8955223880597-1.8955223880597
262122.8955223880597-1.8955223880597
272528.4-3.4
283129.11111111111111.88888888888889
293128.42.6
302028.4-8.4
312822.89552238805975.1044776119403
322222.8955223880597-0.895522388059703
331728.4-11.4
342528.4-3.4
352428.4-4.4
3600.769230769230769-0.769230769230769
372828.4-0.399999999999999
381422.8955223880597-8.8955223880597
393528.46.6
403428.45.6
412228.4-6.4
423422.895522388059711.1044776119403
432322.89552238805970.104477611940297
442428.4-4.4
452622.89552238805973.1044776119403
462222.8955223880597-0.895522388059703
473522.895522388059712.1044776119403
482428.4-4.4
493128.42.6
502628.4-2.4
512211.110.9
522128.4-7.4
532728.4-1.4
543028.41.6
553328.44.6
561122.8955223880597-11.8955223880597
572622.89552238805973.1044776119403
582622.89552238805973.1044776119403
592322.89552238805970.104477611940297
603828.49.6
613122.89552238805978.1044776119403
622028.4-8.4
632222.8955223880597-0.895522388059703
642622.89552238805973.1044776119403
652622.89552238805973.1044776119403
663322.895522388059710.1044776119403
673628.47.6
682528.4-3.4
692422.89552238805971.1044776119403
702111.19.9
711928.4-9.4
721222.8955223880597-10.8955223880597
733029.11111111111110.888888888888889
742122.8955223880597-1.8955223880597
753428.45.6
763222.89552238805979.1044776119403
772828.4-0.399999999999999
782828.4-0.399999999999999
792122.8955223880597-1.8955223880597
803122.89552238805978.1044776119403
812622.89552238805973.1044776119403
822928.40.600000000000001
832322.89552238805970.104477611940297
842522.89552238805972.1044776119403
852222.8955223880597-0.895522388059703
862622.89552238805973.1044776119403
873328.44.6
882422.89552238805971.1044776119403
892422.89552238805971.1044776119403
902122.8955223880597-1.8955223880597
912822.89552238805975.1044776119403
922728.4-1.4
932522.89552238805972.1044776119403
941522.8955223880597-7.8955223880597
951311.11.9
963628.47.6
972429.1111111111111-5.11111111111111
9810.7692307692307690.230769230769231
992428.4-4.4
1003128.42.6
101411.1-7.1
1022122.8955223880597-1.8955223880597
1032329.1111111111111-6.11111111111111
1042322.89552238805970.104477611940297
1051222.8955223880597-10.8955223880597
1061611.14.9
1072929.1111111111111-0.111111111111111
1082622.89552238805973.1044776119403
10900.769230769230769-0.769230769230769
1102522.89552238805972.1044776119403
1112122.8955223880597-1.8955223880597
1122322.89552238805970.104477611940297
1132122.8955223880597-1.8955223880597
1142122.8955223880597-1.8955223880597
11500.769230769230769-0.769230769230769
11600.769230769230769-0.769230769230769
1172322.89552238805970.104477611940297
1183329.11111111111113.88888888888889
1193028.41.6
1202322.89552238805970.104477611940297
121111.1-10.1
1222929.1111111111111-0.111111111111111
1231822.8955223880597-4.8955223880597
1243328.44.6
1251211.10.9
12620.7692307692307691.23076923076923
1272122.8955223880597-1.8955223880597
1282822.89552238805975.1044776119403
1292922.89552238805976.1044776119403
13020.7692307692307691.23076923076923
13100.769230769230769-0.769230769230769
1321822.8955223880597-4.8955223880597
13310.7692307692307690.230769230769231
1342122.8955223880597-1.8955223880597
13500.769230769230769-0.769230769230769
136411.1-7.1
13700.769230769230769-0.769230769230769
1382522.89552238805972.1044776119403
1392622.89552238805973.1044776119403
14000.769230769230769-0.769230769230769
14140.7692307692307693.23076923076923
1421722.8955223880597-5.8955223880597
1432122.8955223880597-1.8955223880597
1442222.8955223880597-0.895522388059703

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 19 & 22.8955223880597 & -3.8955223880597 \tabularnewline
2 & 20 & 22.8955223880597 & -2.8955223880597 \tabularnewline
3 & 0 & 11.1 & -11.1 \tabularnewline
4 & 27 & 28.4 & -1.4 \tabularnewline
5 & 31 & 28.4 & 2.6 \tabularnewline
6 & 36 & 28.4 & 7.6 \tabularnewline
7 & 23 & 22.8955223880597 & 0.104477611940297 \tabularnewline
8 & 30 & 29.1111111111111 & 0.888888888888889 \tabularnewline
9 & 30 & 28.4 & 1.6 \tabularnewline
10 & 26 & 28.4 & -2.4 \tabularnewline
11 & 24 & 28.4 & -4.4 \tabularnewline
12 & 30 & 28.4 & 1.6 \tabularnewline
13 & 22 & 22.8955223880597 & -0.895522388059703 \tabularnewline
14 & 28 & 28.4 & -0.399999999999999 \tabularnewline
15 & 18 & 22.8955223880597 & -4.8955223880597 \tabularnewline
16 & 22 & 22.8955223880597 & -0.895522388059703 \tabularnewline
17 & 33 & 29.1111111111111 & 3.88888888888889 \tabularnewline
18 & 15 & 22.8955223880597 & -7.8955223880597 \tabularnewline
19 & 34 & 28.4 & 5.6 \tabularnewline
20 & 18 & 11.1 & 6.9 \tabularnewline
21 & 15 & 22.8955223880597 & -7.8955223880597 \tabularnewline
22 & 30 & 28.4 & 1.6 \tabularnewline
23 & 25 & 22.8955223880597 & 2.1044776119403 \tabularnewline
24 & 34 & 28.4 & 5.6 \tabularnewline
25 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
26 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
27 & 25 & 28.4 & -3.4 \tabularnewline
28 & 31 & 29.1111111111111 & 1.88888888888889 \tabularnewline
29 & 31 & 28.4 & 2.6 \tabularnewline
30 & 20 & 28.4 & -8.4 \tabularnewline
31 & 28 & 22.8955223880597 & 5.1044776119403 \tabularnewline
32 & 22 & 22.8955223880597 & -0.895522388059703 \tabularnewline
33 & 17 & 28.4 & -11.4 \tabularnewline
34 & 25 & 28.4 & -3.4 \tabularnewline
35 & 24 & 28.4 & -4.4 \tabularnewline
36 & 0 & 0.769230769230769 & -0.769230769230769 \tabularnewline
37 & 28 & 28.4 & -0.399999999999999 \tabularnewline
38 & 14 & 22.8955223880597 & -8.8955223880597 \tabularnewline
39 & 35 & 28.4 & 6.6 \tabularnewline
40 & 34 & 28.4 & 5.6 \tabularnewline
41 & 22 & 28.4 & -6.4 \tabularnewline
42 & 34 & 22.8955223880597 & 11.1044776119403 \tabularnewline
43 & 23 & 22.8955223880597 & 0.104477611940297 \tabularnewline
44 & 24 & 28.4 & -4.4 \tabularnewline
45 & 26 & 22.8955223880597 & 3.1044776119403 \tabularnewline
46 & 22 & 22.8955223880597 & -0.895522388059703 \tabularnewline
47 & 35 & 22.8955223880597 & 12.1044776119403 \tabularnewline
48 & 24 & 28.4 & -4.4 \tabularnewline
49 & 31 & 28.4 & 2.6 \tabularnewline
50 & 26 & 28.4 & -2.4 \tabularnewline
51 & 22 & 11.1 & 10.9 \tabularnewline
52 & 21 & 28.4 & -7.4 \tabularnewline
53 & 27 & 28.4 & -1.4 \tabularnewline
54 & 30 & 28.4 & 1.6 \tabularnewline
55 & 33 & 28.4 & 4.6 \tabularnewline
56 & 11 & 22.8955223880597 & -11.8955223880597 \tabularnewline
57 & 26 & 22.8955223880597 & 3.1044776119403 \tabularnewline
58 & 26 & 22.8955223880597 & 3.1044776119403 \tabularnewline
59 & 23 & 22.8955223880597 & 0.104477611940297 \tabularnewline
60 & 38 & 28.4 & 9.6 \tabularnewline
61 & 31 & 22.8955223880597 & 8.1044776119403 \tabularnewline
62 & 20 & 28.4 & -8.4 \tabularnewline
63 & 22 & 22.8955223880597 & -0.895522388059703 \tabularnewline
64 & 26 & 22.8955223880597 & 3.1044776119403 \tabularnewline
65 & 26 & 22.8955223880597 & 3.1044776119403 \tabularnewline
66 & 33 & 22.8955223880597 & 10.1044776119403 \tabularnewline
67 & 36 & 28.4 & 7.6 \tabularnewline
68 & 25 & 28.4 & -3.4 \tabularnewline
69 & 24 & 22.8955223880597 & 1.1044776119403 \tabularnewline
70 & 21 & 11.1 & 9.9 \tabularnewline
71 & 19 & 28.4 & -9.4 \tabularnewline
72 & 12 & 22.8955223880597 & -10.8955223880597 \tabularnewline
73 & 30 & 29.1111111111111 & 0.888888888888889 \tabularnewline
74 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
75 & 34 & 28.4 & 5.6 \tabularnewline
76 & 32 & 22.8955223880597 & 9.1044776119403 \tabularnewline
77 & 28 & 28.4 & -0.399999999999999 \tabularnewline
78 & 28 & 28.4 & -0.399999999999999 \tabularnewline
79 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
80 & 31 & 22.8955223880597 & 8.1044776119403 \tabularnewline
81 & 26 & 22.8955223880597 & 3.1044776119403 \tabularnewline
82 & 29 & 28.4 & 0.600000000000001 \tabularnewline
83 & 23 & 22.8955223880597 & 0.104477611940297 \tabularnewline
84 & 25 & 22.8955223880597 & 2.1044776119403 \tabularnewline
85 & 22 & 22.8955223880597 & -0.895522388059703 \tabularnewline
86 & 26 & 22.8955223880597 & 3.1044776119403 \tabularnewline
87 & 33 & 28.4 & 4.6 \tabularnewline
88 & 24 & 22.8955223880597 & 1.1044776119403 \tabularnewline
89 & 24 & 22.8955223880597 & 1.1044776119403 \tabularnewline
90 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
91 & 28 & 22.8955223880597 & 5.1044776119403 \tabularnewline
92 & 27 & 28.4 & -1.4 \tabularnewline
93 & 25 & 22.8955223880597 & 2.1044776119403 \tabularnewline
94 & 15 & 22.8955223880597 & -7.8955223880597 \tabularnewline
95 & 13 & 11.1 & 1.9 \tabularnewline
96 & 36 & 28.4 & 7.6 \tabularnewline
97 & 24 & 29.1111111111111 & -5.11111111111111 \tabularnewline
98 & 1 & 0.769230769230769 & 0.230769230769231 \tabularnewline
99 & 24 & 28.4 & -4.4 \tabularnewline
100 & 31 & 28.4 & 2.6 \tabularnewline
101 & 4 & 11.1 & -7.1 \tabularnewline
102 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
103 & 23 & 29.1111111111111 & -6.11111111111111 \tabularnewline
104 & 23 & 22.8955223880597 & 0.104477611940297 \tabularnewline
105 & 12 & 22.8955223880597 & -10.8955223880597 \tabularnewline
106 & 16 & 11.1 & 4.9 \tabularnewline
107 & 29 & 29.1111111111111 & -0.111111111111111 \tabularnewline
108 & 26 & 22.8955223880597 & 3.1044776119403 \tabularnewline
109 & 0 & 0.769230769230769 & -0.769230769230769 \tabularnewline
110 & 25 & 22.8955223880597 & 2.1044776119403 \tabularnewline
111 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
112 & 23 & 22.8955223880597 & 0.104477611940297 \tabularnewline
113 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
114 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
115 & 0 & 0.769230769230769 & -0.769230769230769 \tabularnewline
116 & 0 & 0.769230769230769 & -0.769230769230769 \tabularnewline
117 & 23 & 22.8955223880597 & 0.104477611940297 \tabularnewline
118 & 33 & 29.1111111111111 & 3.88888888888889 \tabularnewline
119 & 30 & 28.4 & 1.6 \tabularnewline
120 & 23 & 22.8955223880597 & 0.104477611940297 \tabularnewline
121 & 1 & 11.1 & -10.1 \tabularnewline
122 & 29 & 29.1111111111111 & -0.111111111111111 \tabularnewline
123 & 18 & 22.8955223880597 & -4.8955223880597 \tabularnewline
124 & 33 & 28.4 & 4.6 \tabularnewline
125 & 12 & 11.1 & 0.9 \tabularnewline
126 & 2 & 0.769230769230769 & 1.23076923076923 \tabularnewline
127 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
128 & 28 & 22.8955223880597 & 5.1044776119403 \tabularnewline
129 & 29 & 22.8955223880597 & 6.1044776119403 \tabularnewline
130 & 2 & 0.769230769230769 & 1.23076923076923 \tabularnewline
131 & 0 & 0.769230769230769 & -0.769230769230769 \tabularnewline
132 & 18 & 22.8955223880597 & -4.8955223880597 \tabularnewline
133 & 1 & 0.769230769230769 & 0.230769230769231 \tabularnewline
134 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
135 & 0 & 0.769230769230769 & -0.769230769230769 \tabularnewline
136 & 4 & 11.1 & -7.1 \tabularnewline
137 & 0 & 0.769230769230769 & -0.769230769230769 \tabularnewline
138 & 25 & 22.8955223880597 & 2.1044776119403 \tabularnewline
139 & 26 & 22.8955223880597 & 3.1044776119403 \tabularnewline
140 & 0 & 0.769230769230769 & -0.769230769230769 \tabularnewline
141 & 4 & 0.769230769230769 & 3.23076923076923 \tabularnewline
142 & 17 & 22.8955223880597 & -5.8955223880597 \tabularnewline
143 & 21 & 22.8955223880597 & -1.8955223880597 \tabularnewline
144 & 22 & 22.8955223880597 & -0.895522388059703 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159986&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]19[/C][C]22.8955223880597[/C][C]-3.8955223880597[/C][/ROW]
[ROW][C]2[/C][C]20[/C][C]22.8955223880597[/C][C]-2.8955223880597[/C][/ROW]
[ROW][C]3[/C][C]0[/C][C]11.1[/C][C]-11.1[/C][/ROW]
[ROW][C]4[/C][C]27[/C][C]28.4[/C][C]-1.4[/C][/ROW]
[ROW][C]5[/C][C]31[/C][C]28.4[/C][C]2.6[/C][/ROW]
[ROW][C]6[/C][C]36[/C][C]28.4[/C][C]7.6[/C][/ROW]
[ROW][C]7[/C][C]23[/C][C]22.8955223880597[/C][C]0.104477611940297[/C][/ROW]
[ROW][C]8[/C][C]30[/C][C]29.1111111111111[/C][C]0.888888888888889[/C][/ROW]
[ROW][C]9[/C][C]30[/C][C]28.4[/C][C]1.6[/C][/ROW]
[ROW][C]10[/C][C]26[/C][C]28.4[/C][C]-2.4[/C][/ROW]
[ROW][C]11[/C][C]24[/C][C]28.4[/C][C]-4.4[/C][/ROW]
[ROW][C]12[/C][C]30[/C][C]28.4[/C][C]1.6[/C][/ROW]
[ROW][C]13[/C][C]22[/C][C]22.8955223880597[/C][C]-0.895522388059703[/C][/ROW]
[ROW][C]14[/C][C]28[/C][C]28.4[/C][C]-0.399999999999999[/C][/ROW]
[ROW][C]15[/C][C]18[/C][C]22.8955223880597[/C][C]-4.8955223880597[/C][/ROW]
[ROW][C]16[/C][C]22[/C][C]22.8955223880597[/C][C]-0.895522388059703[/C][/ROW]
[ROW][C]17[/C][C]33[/C][C]29.1111111111111[/C][C]3.88888888888889[/C][/ROW]
[ROW][C]18[/C][C]15[/C][C]22.8955223880597[/C][C]-7.8955223880597[/C][/ROW]
[ROW][C]19[/C][C]34[/C][C]28.4[/C][C]5.6[/C][/ROW]
[ROW][C]20[/C][C]18[/C][C]11.1[/C][C]6.9[/C][/ROW]
[ROW][C]21[/C][C]15[/C][C]22.8955223880597[/C][C]-7.8955223880597[/C][/ROW]
[ROW][C]22[/C][C]30[/C][C]28.4[/C][C]1.6[/C][/ROW]
[ROW][C]23[/C][C]25[/C][C]22.8955223880597[/C][C]2.1044776119403[/C][/ROW]
[ROW][C]24[/C][C]34[/C][C]28.4[/C][C]5.6[/C][/ROW]
[ROW][C]25[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]26[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]27[/C][C]25[/C][C]28.4[/C][C]-3.4[/C][/ROW]
[ROW][C]28[/C][C]31[/C][C]29.1111111111111[/C][C]1.88888888888889[/C][/ROW]
[ROW][C]29[/C][C]31[/C][C]28.4[/C][C]2.6[/C][/ROW]
[ROW][C]30[/C][C]20[/C][C]28.4[/C][C]-8.4[/C][/ROW]
[ROW][C]31[/C][C]28[/C][C]22.8955223880597[/C][C]5.1044776119403[/C][/ROW]
[ROW][C]32[/C][C]22[/C][C]22.8955223880597[/C][C]-0.895522388059703[/C][/ROW]
[ROW][C]33[/C][C]17[/C][C]28.4[/C][C]-11.4[/C][/ROW]
[ROW][C]34[/C][C]25[/C][C]28.4[/C][C]-3.4[/C][/ROW]
[ROW][C]35[/C][C]24[/C][C]28.4[/C][C]-4.4[/C][/ROW]
[ROW][C]36[/C][C]0[/C][C]0.769230769230769[/C][C]-0.769230769230769[/C][/ROW]
[ROW][C]37[/C][C]28[/C][C]28.4[/C][C]-0.399999999999999[/C][/ROW]
[ROW][C]38[/C][C]14[/C][C]22.8955223880597[/C][C]-8.8955223880597[/C][/ROW]
[ROW][C]39[/C][C]35[/C][C]28.4[/C][C]6.6[/C][/ROW]
[ROW][C]40[/C][C]34[/C][C]28.4[/C][C]5.6[/C][/ROW]
[ROW][C]41[/C][C]22[/C][C]28.4[/C][C]-6.4[/C][/ROW]
[ROW][C]42[/C][C]34[/C][C]22.8955223880597[/C][C]11.1044776119403[/C][/ROW]
[ROW][C]43[/C][C]23[/C][C]22.8955223880597[/C][C]0.104477611940297[/C][/ROW]
[ROW][C]44[/C][C]24[/C][C]28.4[/C][C]-4.4[/C][/ROW]
[ROW][C]45[/C][C]26[/C][C]22.8955223880597[/C][C]3.1044776119403[/C][/ROW]
[ROW][C]46[/C][C]22[/C][C]22.8955223880597[/C][C]-0.895522388059703[/C][/ROW]
[ROW][C]47[/C][C]35[/C][C]22.8955223880597[/C][C]12.1044776119403[/C][/ROW]
[ROW][C]48[/C][C]24[/C][C]28.4[/C][C]-4.4[/C][/ROW]
[ROW][C]49[/C][C]31[/C][C]28.4[/C][C]2.6[/C][/ROW]
[ROW][C]50[/C][C]26[/C][C]28.4[/C][C]-2.4[/C][/ROW]
[ROW][C]51[/C][C]22[/C][C]11.1[/C][C]10.9[/C][/ROW]
[ROW][C]52[/C][C]21[/C][C]28.4[/C][C]-7.4[/C][/ROW]
[ROW][C]53[/C][C]27[/C][C]28.4[/C][C]-1.4[/C][/ROW]
[ROW][C]54[/C][C]30[/C][C]28.4[/C][C]1.6[/C][/ROW]
[ROW][C]55[/C][C]33[/C][C]28.4[/C][C]4.6[/C][/ROW]
[ROW][C]56[/C][C]11[/C][C]22.8955223880597[/C][C]-11.8955223880597[/C][/ROW]
[ROW][C]57[/C][C]26[/C][C]22.8955223880597[/C][C]3.1044776119403[/C][/ROW]
[ROW][C]58[/C][C]26[/C][C]22.8955223880597[/C][C]3.1044776119403[/C][/ROW]
[ROW][C]59[/C][C]23[/C][C]22.8955223880597[/C][C]0.104477611940297[/C][/ROW]
[ROW][C]60[/C][C]38[/C][C]28.4[/C][C]9.6[/C][/ROW]
[ROW][C]61[/C][C]31[/C][C]22.8955223880597[/C][C]8.1044776119403[/C][/ROW]
[ROW][C]62[/C][C]20[/C][C]28.4[/C][C]-8.4[/C][/ROW]
[ROW][C]63[/C][C]22[/C][C]22.8955223880597[/C][C]-0.895522388059703[/C][/ROW]
[ROW][C]64[/C][C]26[/C][C]22.8955223880597[/C][C]3.1044776119403[/C][/ROW]
[ROW][C]65[/C][C]26[/C][C]22.8955223880597[/C][C]3.1044776119403[/C][/ROW]
[ROW][C]66[/C][C]33[/C][C]22.8955223880597[/C][C]10.1044776119403[/C][/ROW]
[ROW][C]67[/C][C]36[/C][C]28.4[/C][C]7.6[/C][/ROW]
[ROW][C]68[/C][C]25[/C][C]28.4[/C][C]-3.4[/C][/ROW]
[ROW][C]69[/C][C]24[/C][C]22.8955223880597[/C][C]1.1044776119403[/C][/ROW]
[ROW][C]70[/C][C]21[/C][C]11.1[/C][C]9.9[/C][/ROW]
[ROW][C]71[/C][C]19[/C][C]28.4[/C][C]-9.4[/C][/ROW]
[ROW][C]72[/C][C]12[/C][C]22.8955223880597[/C][C]-10.8955223880597[/C][/ROW]
[ROW][C]73[/C][C]30[/C][C]29.1111111111111[/C][C]0.888888888888889[/C][/ROW]
[ROW][C]74[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]75[/C][C]34[/C][C]28.4[/C][C]5.6[/C][/ROW]
[ROW][C]76[/C][C]32[/C][C]22.8955223880597[/C][C]9.1044776119403[/C][/ROW]
[ROW][C]77[/C][C]28[/C][C]28.4[/C][C]-0.399999999999999[/C][/ROW]
[ROW][C]78[/C][C]28[/C][C]28.4[/C][C]-0.399999999999999[/C][/ROW]
[ROW][C]79[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]80[/C][C]31[/C][C]22.8955223880597[/C][C]8.1044776119403[/C][/ROW]
[ROW][C]81[/C][C]26[/C][C]22.8955223880597[/C][C]3.1044776119403[/C][/ROW]
[ROW][C]82[/C][C]29[/C][C]28.4[/C][C]0.600000000000001[/C][/ROW]
[ROW][C]83[/C][C]23[/C][C]22.8955223880597[/C][C]0.104477611940297[/C][/ROW]
[ROW][C]84[/C][C]25[/C][C]22.8955223880597[/C][C]2.1044776119403[/C][/ROW]
[ROW][C]85[/C][C]22[/C][C]22.8955223880597[/C][C]-0.895522388059703[/C][/ROW]
[ROW][C]86[/C][C]26[/C][C]22.8955223880597[/C][C]3.1044776119403[/C][/ROW]
[ROW][C]87[/C][C]33[/C][C]28.4[/C][C]4.6[/C][/ROW]
[ROW][C]88[/C][C]24[/C][C]22.8955223880597[/C][C]1.1044776119403[/C][/ROW]
[ROW][C]89[/C][C]24[/C][C]22.8955223880597[/C][C]1.1044776119403[/C][/ROW]
[ROW][C]90[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]91[/C][C]28[/C][C]22.8955223880597[/C][C]5.1044776119403[/C][/ROW]
[ROW][C]92[/C][C]27[/C][C]28.4[/C][C]-1.4[/C][/ROW]
[ROW][C]93[/C][C]25[/C][C]22.8955223880597[/C][C]2.1044776119403[/C][/ROW]
[ROW][C]94[/C][C]15[/C][C]22.8955223880597[/C][C]-7.8955223880597[/C][/ROW]
[ROW][C]95[/C][C]13[/C][C]11.1[/C][C]1.9[/C][/ROW]
[ROW][C]96[/C][C]36[/C][C]28.4[/C][C]7.6[/C][/ROW]
[ROW][C]97[/C][C]24[/C][C]29.1111111111111[/C][C]-5.11111111111111[/C][/ROW]
[ROW][C]98[/C][C]1[/C][C]0.769230769230769[/C][C]0.230769230769231[/C][/ROW]
[ROW][C]99[/C][C]24[/C][C]28.4[/C][C]-4.4[/C][/ROW]
[ROW][C]100[/C][C]31[/C][C]28.4[/C][C]2.6[/C][/ROW]
[ROW][C]101[/C][C]4[/C][C]11.1[/C][C]-7.1[/C][/ROW]
[ROW][C]102[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]103[/C][C]23[/C][C]29.1111111111111[/C][C]-6.11111111111111[/C][/ROW]
[ROW][C]104[/C][C]23[/C][C]22.8955223880597[/C][C]0.104477611940297[/C][/ROW]
[ROW][C]105[/C][C]12[/C][C]22.8955223880597[/C][C]-10.8955223880597[/C][/ROW]
[ROW][C]106[/C][C]16[/C][C]11.1[/C][C]4.9[/C][/ROW]
[ROW][C]107[/C][C]29[/C][C]29.1111111111111[/C][C]-0.111111111111111[/C][/ROW]
[ROW][C]108[/C][C]26[/C][C]22.8955223880597[/C][C]3.1044776119403[/C][/ROW]
[ROW][C]109[/C][C]0[/C][C]0.769230769230769[/C][C]-0.769230769230769[/C][/ROW]
[ROW][C]110[/C][C]25[/C][C]22.8955223880597[/C][C]2.1044776119403[/C][/ROW]
[ROW][C]111[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]112[/C][C]23[/C][C]22.8955223880597[/C][C]0.104477611940297[/C][/ROW]
[ROW][C]113[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]114[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]115[/C][C]0[/C][C]0.769230769230769[/C][C]-0.769230769230769[/C][/ROW]
[ROW][C]116[/C][C]0[/C][C]0.769230769230769[/C][C]-0.769230769230769[/C][/ROW]
[ROW][C]117[/C][C]23[/C][C]22.8955223880597[/C][C]0.104477611940297[/C][/ROW]
[ROW][C]118[/C][C]33[/C][C]29.1111111111111[/C][C]3.88888888888889[/C][/ROW]
[ROW][C]119[/C][C]30[/C][C]28.4[/C][C]1.6[/C][/ROW]
[ROW][C]120[/C][C]23[/C][C]22.8955223880597[/C][C]0.104477611940297[/C][/ROW]
[ROW][C]121[/C][C]1[/C][C]11.1[/C][C]-10.1[/C][/ROW]
[ROW][C]122[/C][C]29[/C][C]29.1111111111111[/C][C]-0.111111111111111[/C][/ROW]
[ROW][C]123[/C][C]18[/C][C]22.8955223880597[/C][C]-4.8955223880597[/C][/ROW]
[ROW][C]124[/C][C]33[/C][C]28.4[/C][C]4.6[/C][/ROW]
[ROW][C]125[/C][C]12[/C][C]11.1[/C][C]0.9[/C][/ROW]
[ROW][C]126[/C][C]2[/C][C]0.769230769230769[/C][C]1.23076923076923[/C][/ROW]
[ROW][C]127[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]128[/C][C]28[/C][C]22.8955223880597[/C][C]5.1044776119403[/C][/ROW]
[ROW][C]129[/C][C]29[/C][C]22.8955223880597[/C][C]6.1044776119403[/C][/ROW]
[ROW][C]130[/C][C]2[/C][C]0.769230769230769[/C][C]1.23076923076923[/C][/ROW]
[ROW][C]131[/C][C]0[/C][C]0.769230769230769[/C][C]-0.769230769230769[/C][/ROW]
[ROW][C]132[/C][C]18[/C][C]22.8955223880597[/C][C]-4.8955223880597[/C][/ROW]
[ROW][C]133[/C][C]1[/C][C]0.769230769230769[/C][C]0.230769230769231[/C][/ROW]
[ROW][C]134[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]135[/C][C]0[/C][C]0.769230769230769[/C][C]-0.769230769230769[/C][/ROW]
[ROW][C]136[/C][C]4[/C][C]11.1[/C][C]-7.1[/C][/ROW]
[ROW][C]137[/C][C]0[/C][C]0.769230769230769[/C][C]-0.769230769230769[/C][/ROW]
[ROW][C]138[/C][C]25[/C][C]22.8955223880597[/C][C]2.1044776119403[/C][/ROW]
[ROW][C]139[/C][C]26[/C][C]22.8955223880597[/C][C]3.1044776119403[/C][/ROW]
[ROW][C]140[/C][C]0[/C][C]0.769230769230769[/C][C]-0.769230769230769[/C][/ROW]
[ROW][C]141[/C][C]4[/C][C]0.769230769230769[/C][C]3.23076923076923[/C][/ROW]
[ROW][C]142[/C][C]17[/C][C]22.8955223880597[/C][C]-5.8955223880597[/C][/ROW]
[ROW][C]143[/C][C]21[/C][C]22.8955223880597[/C][C]-1.8955223880597[/C][/ROW]
[ROW][C]144[/C][C]22[/C][C]22.8955223880597[/C][C]-0.895522388059703[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159986&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159986&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
11922.8955223880597-3.8955223880597
22022.8955223880597-2.8955223880597
3011.1-11.1
42728.4-1.4
53128.42.6
63628.47.6
72322.89552238805970.104477611940297
83029.11111111111110.888888888888889
93028.41.6
102628.4-2.4
112428.4-4.4
123028.41.6
132222.8955223880597-0.895522388059703
142828.4-0.399999999999999
151822.8955223880597-4.8955223880597
162222.8955223880597-0.895522388059703
173329.11111111111113.88888888888889
181522.8955223880597-7.8955223880597
193428.45.6
201811.16.9
211522.8955223880597-7.8955223880597
223028.41.6
232522.89552238805972.1044776119403
243428.45.6
252122.8955223880597-1.8955223880597
262122.8955223880597-1.8955223880597
272528.4-3.4
283129.11111111111111.88888888888889
293128.42.6
302028.4-8.4
312822.89552238805975.1044776119403
322222.8955223880597-0.895522388059703
331728.4-11.4
342528.4-3.4
352428.4-4.4
3600.769230769230769-0.769230769230769
372828.4-0.399999999999999
381422.8955223880597-8.8955223880597
393528.46.6
403428.45.6
412228.4-6.4
423422.895522388059711.1044776119403
432322.89552238805970.104477611940297
442428.4-4.4
452622.89552238805973.1044776119403
462222.8955223880597-0.895522388059703
473522.895522388059712.1044776119403
482428.4-4.4
493128.42.6
502628.4-2.4
512211.110.9
522128.4-7.4
532728.4-1.4
543028.41.6
553328.44.6
561122.8955223880597-11.8955223880597
572622.89552238805973.1044776119403
582622.89552238805973.1044776119403
592322.89552238805970.104477611940297
603828.49.6
613122.89552238805978.1044776119403
622028.4-8.4
632222.8955223880597-0.895522388059703
642622.89552238805973.1044776119403
652622.89552238805973.1044776119403
663322.895522388059710.1044776119403
673628.47.6
682528.4-3.4
692422.89552238805971.1044776119403
702111.19.9
711928.4-9.4
721222.8955223880597-10.8955223880597
733029.11111111111110.888888888888889
742122.8955223880597-1.8955223880597
753428.45.6
763222.89552238805979.1044776119403
772828.4-0.399999999999999
782828.4-0.399999999999999
792122.8955223880597-1.8955223880597
803122.89552238805978.1044776119403
812622.89552238805973.1044776119403
822928.40.600000000000001
832322.89552238805970.104477611940297
842522.89552238805972.1044776119403
852222.8955223880597-0.895522388059703
862622.89552238805973.1044776119403
873328.44.6
882422.89552238805971.1044776119403
892422.89552238805971.1044776119403
902122.8955223880597-1.8955223880597
912822.89552238805975.1044776119403
922728.4-1.4
932522.89552238805972.1044776119403
941522.8955223880597-7.8955223880597
951311.11.9
963628.47.6
972429.1111111111111-5.11111111111111
9810.7692307692307690.230769230769231
992428.4-4.4
1003128.42.6
101411.1-7.1
1022122.8955223880597-1.8955223880597
1032329.1111111111111-6.11111111111111
1042322.89552238805970.104477611940297
1051222.8955223880597-10.8955223880597
1061611.14.9
1072929.1111111111111-0.111111111111111
1082622.89552238805973.1044776119403
10900.769230769230769-0.769230769230769
1102522.89552238805972.1044776119403
1112122.8955223880597-1.8955223880597
1122322.89552238805970.104477611940297
1132122.8955223880597-1.8955223880597
1142122.8955223880597-1.8955223880597
11500.769230769230769-0.769230769230769
11600.769230769230769-0.769230769230769
1172322.89552238805970.104477611940297
1183329.11111111111113.88888888888889
1193028.41.6
1202322.89552238805970.104477611940297
121111.1-10.1
1222929.1111111111111-0.111111111111111
1231822.8955223880597-4.8955223880597
1243328.44.6
1251211.10.9
12620.7692307692307691.23076923076923
1272122.8955223880597-1.8955223880597
1282822.89552238805975.1044776119403
1292922.89552238805976.1044776119403
13020.7692307692307691.23076923076923
13100.769230769230769-0.769230769230769
1321822.8955223880597-4.8955223880597
13310.7692307692307690.230769230769231
1342122.8955223880597-1.8955223880597
13500.769230769230769-0.769230769230769
136411.1-7.1
13700.769230769230769-0.769230769230769
1382522.89552238805972.1044776119403
1392622.89552238805973.1044776119403
14000.769230769230769-0.769230769230769
14140.7692307692307693.23076923076923
1421722.8955223880597-5.8955223880597
1432122.8955223880597-1.8955223880597
1442222.8955223880597-0.895522388059703



Parameters (Session):
par1 = 5 ; par2 = none ; par4 = no ;
Parameters (R input):
par1 = 5 ; par2 = none ; par3 = ; 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')
}