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 computationFri, 23 Dec 2011 07:33:40 -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/23/t1324643635x5p19piwjit9ehi.htm/, Retrieved Mon, 29 Apr 2024 20:09:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=160351, Retrieved Mon, 29 Apr 2024 20:09:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact77
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [multip reg paper ...] [2011-12-20 09:29:41] [63813c3109753b730d344072266dee79]
- RMP   [Recursive Partitioning (Regression Trees)] [paper ba 2 multip...] [2011-12-23 12:09:56] [63813c3109753b730d344072266dee79]
-   P       [Recursive Partitioning (Regression Trees)] [] [2011-12-23 12:33:40] [0e2c18186cab982e7ba7b89fbe242e59] [Current]
Feedback Forum

Post a new message
Dataseries X:
18	1760	89	20465	70
20	1609	56	33629	80
0	192	18	1423	0
26	2182	92	25629	81
31	3367	131	54002	124
36	6727	257	151036	140
23	1619	55	33287	88
30	1507	56	31172	115
30	1682	42	28113	109
26	2812	92	57803	104
24	1943	74	49830	63
30	2017	66	52143	118
21	1702	96	21055	68
25	3034	110	47007	100
18	1379	55	28735	63
19	1517	79	59147	74
33	1637	53	78950	132
15	1169	54	13497	54
34	2384	84	46154	134
18	726	24	53249	57
15	993	55	10726	59
30	2683	96	83700	113
25	1713	70	40400	96
34	2027	50	33797	96
21	1818	81	36205	78
21	1393	28	30165	80
25	2000	154	58534	93
31	1346	85	44663	109
31	2676	115	92556	115
20	2106	43	40078	79
28	1591	43	34711	103
20	1519	43	31076	65
17	2171	101	74608	66
25	3003	121	58092	100
24	2364	52	42009	96
0	1	1	0	0
27	2017	60	36022	105
14	1564	50	23333	51
32	2072	47	53349	108
31	2106	63	92596	124
21	2270	69	49598	81
34	1643	56	44093	136
23	957	29	84205	84
24	2025	77	63369	92
26	1236	46	60132	103
22	1178	91	37403	82
35	744	31	24460	106
21	1976	92	46456	84
31	2224	85	66616	124
26	2561	56	41554	97
22	658	28	22346	82
21	1779	65	30874	79
27	2355	71	68701	97
30	2017	77	35728	107
33	1758	59	29010	126
11	1675	54	23110	40
26	1760	62	38844	96
26	875	23	27084	100
23	1169	65	35139	91
38	2789	93	57476	136
29	1606	56	33277	116
19	2020	76	31141	76
19	1300	58	61281	65
26	1235	35	25820	96
26	1215	32	23284	97
29	1230	38	35378	107
36	2226	67	74990	144
25	2897	65	29653	90
24	1071	38	64622	93
21	340	15	4157	78
19	2704	110	29245	72
12	1247	64	50008	45
30	1422	64	52338	120
21	1535	68	13310	59
34	2593	66	92901	133
32	1397	42	10956	117
28	2162	58	34241	123
28	2513	94	75043	110
21	917	26	21152	75
31	1234	71	42249	114
26	917	66	42005	94
29	1924	59	41152	116
23	853	27	14399	86
25	1398	34	28263	90
22	986	44	17215	87
26	1608	47	48140	99
33	2577	220	62897	132
24	1201	108	22883	96
24	1189	56	41622	91
21	1431	50	40715	77
28	1698	40	65897	104
27	2185	74	76542	97
25	1228	56	37477	94
15	1266	58	53216	60
13	830	36	40911	46
36	2238	111	57021	135
24	1787	68	73116	90
1	223	12	3895	2
24	2254	100	46609	96
31	1952	75	29351	109
4	665	28	2325	15
20	804	22	31747	64
23	1211	49	32665	88
23	1143	57	19249	84
12	710	38	15292	46
16	596	22	5842	59
29	1353	44	33994	116
10	971	32	13018	29
0	0	0	0	0
25	1030	31	98177	91
21	1130	66	37941	76
23	1284	44	31032	83
21	1438	61	32683	84
21	849	57	34545	65
0	78	5	0	0
0	0	0	0	0
23	925	39	27525	84
29	1518	78	66856	99
28	1946	95	28549	112
23	914	37	38610	92
1	778	19	2781	3
29	1713	71	41211	109
17	895	40	22698	71
29	1756	52	41194	106
12	701	40	32689	48
2	285	12	5752	8
21	1774	55	26757	80
25	1071	29	22527	95
29	1582	46	44810	116
2	256	9	0	8
0	98	9	0	0
18	1358	55	100674	56
1	41	3	0	4
21	1771	58	57786	70
0	42	3	0	0
4	528	16	5444	14
0	0	0	0	0
25	1026	45	28470	91
26	1296	38	61849	89
0	81	4	0	0
4	257	13	2179	12
17	914	23	8019	60
21	1178	50	39644	80
22	1080	19	23494	88




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net

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

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







Goodness of Fit
Correlation0.986
R-squared0.9722
RMSE1.5584

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.986[/C][/ROW]
[ROW][C]R-squared[/C][C]0.9722[/C][/ROW]
[ROW][C]RMSE[/C][C]1.5584[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=160351&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160351&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.986
R-squared0.9722
RMSE1.5584







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
11820.08-2.08
22020.08-0.0799999999999983
301.11764705882353-1.11764705882353
42622.53333333333333.46666666666667
53130.11538461538460.884615384615383
63634.71.3
72322.53333333333330.466666666666665
83030.1153846153846-0.115384615384617
93030.1153846153846-0.115384615384617
102626.4285714285714-0.428571428571427
112420.083.92
123030.1153846153846-0.115384615384617
132120.080.920000000000002
142526.4285714285714-1.42857142857143
151820.08-2.08
161920.08-1.08
173334.7-1.7
181516.875-1.875
193434.7-0.700000000000003
201816.8751.125
211516.875-1.875
223030.1153846153846-0.115384615384617
232526.4285714285714-1.42857142857143
243426.42857142857147.57142857142857
252120.080.920000000000002
262120.080.920000000000002
272524.60.399999999999999
283130.11538461538460.884615384615383
293130.11538461538460.884615384615383
302020.08-0.0799999999999983
312826.42857142857141.57142857142857
322020.08-0.0799999999999983
331720.08-3.08
342526.4285714285714-1.42857142857143
352426.4285714285714-2.42857142857143
3601.11764705882353-1.11764705882353
372726.42857142857140.571428571428573
3814122
393230.11538461538461.88461538461538
403130.11538461538460.884615384615383
412122.5333333333333-1.53333333333333
423434.7-0.700000000000003
432322.53333333333330.466666666666665
442424.6-0.600000000000001
452626.4285714285714-0.428571428571427
462222.5333333333333-0.533333333333335
473530.11538461538464.88461538461538
482122.5333333333333-1.53333333333333
493130.11538461538460.884615384615383
502626.4285714285714-0.428571428571427
512222.5333333333333-0.533333333333335
522120.080.920000000000002
532726.42857142857140.571428571428573
543030.1153846153846-0.115384615384617
553334.7-1.7
561112-1
572626.4285714285714-0.428571428571427
582626.4285714285714-0.428571428571427
592324.6-1.6
603834.73.3
612930.1153846153846-1.11538461538462
621920.08-1.08
631920.08-1.08
642626.4285714285714-0.428571428571427
652626.4285714285714-0.428571428571427
662930.1153846153846-1.11538461538462
673634.71.3
682524.60.399999999999999
692424.6-0.600000000000001
702120.080.920000000000002
711920.08-1.08
7212120
733030.1153846153846-0.115384615384617
742116.8754.125
753434.7-0.700000000000003
763230.11538461538461.88461538461538
772830.1153846153846-2.11538461538462
782830.1153846153846-2.11538461538462
792120.080.920000000000002
803130.11538461538460.884615384615383
812624.61.4
822930.1153846153846-1.11538461538462
832322.53333333333330.466666666666665
842524.60.399999999999999
852222.5333333333333-0.533333333333335
862626.4285714285714-0.428571428571427
873334.7-1.7
882426.4285714285714-2.42857142857143
892424.6-0.600000000000001
902120.080.920000000000002
912826.42857142857141.57142857142857
922726.42857142857140.571428571428573
932524.60.399999999999999
941516.875-1.875
9513121
963634.71.3
972424.6-0.600000000000001
9811.11764705882353-0.117647058823529
992426.4285714285714-2.42857142857143
1003130.11538461538460.884615384615383
10141.117647058823532.88235294117647
1022020.08-0.0799999999999983
1032322.53333333333330.466666666666665
1042322.53333333333330.466666666666665
10512120
1061616.875-0.875
1072930.1153846153846-1.11538461538462
1081012-2
10901.11764705882353-1.11764705882353
1102524.60.399999999999999
1112120.080.920000000000002
1122322.53333333333330.466666666666665
1132122.5333333333333-1.53333333333333
1142120.080.920000000000002
11501.11764705882353-1.11764705882353
11601.11764705882353-1.11764705882353
1172322.53333333333330.466666666666665
1182926.42857142857142.57142857142857
1192830.1153846153846-2.11538461538462
1202324.6-1.6
12111.11764705882353-0.117647058823529
1222930.1153846153846-1.11538461538462
1231720.08-3.08
1242930.1153846153846-1.11538461538462
12512120
12621.117647058823530.882352941176471
1272120.080.920000000000002
1282524.60.399999999999999
1292930.1153846153846-1.11538461538462
13021.117647058823530.882352941176471
13101.11764705882353-1.11764705882353
1321816.8751.125
13311.11764705882353-0.117647058823529
1342120.080.920000000000002
13501.11764705882353-1.11764705882353
13641.117647058823532.88235294117647
13701.11764705882353-1.11764705882353
1382524.60.399999999999999
1392624.61.4
14001.11764705882353-1.11764705882353
14141.117647058823532.88235294117647
1421716.8750.125
1432120.080.920000000000002
1442222.5333333333333-0.533333333333335

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 18 & 20.08 & -2.08 \tabularnewline
2 & 20 & 20.08 & -0.0799999999999983 \tabularnewline
3 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
4 & 26 & 22.5333333333333 & 3.46666666666667 \tabularnewline
5 & 31 & 30.1153846153846 & 0.884615384615383 \tabularnewline
6 & 36 & 34.7 & 1.3 \tabularnewline
7 & 23 & 22.5333333333333 & 0.466666666666665 \tabularnewline
8 & 30 & 30.1153846153846 & -0.115384615384617 \tabularnewline
9 & 30 & 30.1153846153846 & -0.115384615384617 \tabularnewline
10 & 26 & 26.4285714285714 & -0.428571428571427 \tabularnewline
11 & 24 & 20.08 & 3.92 \tabularnewline
12 & 30 & 30.1153846153846 & -0.115384615384617 \tabularnewline
13 & 21 & 20.08 & 0.920000000000002 \tabularnewline
14 & 25 & 26.4285714285714 & -1.42857142857143 \tabularnewline
15 & 18 & 20.08 & -2.08 \tabularnewline
16 & 19 & 20.08 & -1.08 \tabularnewline
17 & 33 & 34.7 & -1.7 \tabularnewline
18 & 15 & 16.875 & -1.875 \tabularnewline
19 & 34 & 34.7 & -0.700000000000003 \tabularnewline
20 & 18 & 16.875 & 1.125 \tabularnewline
21 & 15 & 16.875 & -1.875 \tabularnewline
22 & 30 & 30.1153846153846 & -0.115384615384617 \tabularnewline
23 & 25 & 26.4285714285714 & -1.42857142857143 \tabularnewline
24 & 34 & 26.4285714285714 & 7.57142857142857 \tabularnewline
25 & 21 & 20.08 & 0.920000000000002 \tabularnewline
26 & 21 & 20.08 & 0.920000000000002 \tabularnewline
27 & 25 & 24.6 & 0.399999999999999 \tabularnewline
28 & 31 & 30.1153846153846 & 0.884615384615383 \tabularnewline
29 & 31 & 30.1153846153846 & 0.884615384615383 \tabularnewline
30 & 20 & 20.08 & -0.0799999999999983 \tabularnewline
31 & 28 & 26.4285714285714 & 1.57142857142857 \tabularnewline
32 & 20 & 20.08 & -0.0799999999999983 \tabularnewline
33 & 17 & 20.08 & -3.08 \tabularnewline
34 & 25 & 26.4285714285714 & -1.42857142857143 \tabularnewline
35 & 24 & 26.4285714285714 & -2.42857142857143 \tabularnewline
36 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
37 & 27 & 26.4285714285714 & 0.571428571428573 \tabularnewline
38 & 14 & 12 & 2 \tabularnewline
39 & 32 & 30.1153846153846 & 1.88461538461538 \tabularnewline
40 & 31 & 30.1153846153846 & 0.884615384615383 \tabularnewline
41 & 21 & 22.5333333333333 & -1.53333333333333 \tabularnewline
42 & 34 & 34.7 & -0.700000000000003 \tabularnewline
43 & 23 & 22.5333333333333 & 0.466666666666665 \tabularnewline
44 & 24 & 24.6 & -0.600000000000001 \tabularnewline
45 & 26 & 26.4285714285714 & -0.428571428571427 \tabularnewline
46 & 22 & 22.5333333333333 & -0.533333333333335 \tabularnewline
47 & 35 & 30.1153846153846 & 4.88461538461538 \tabularnewline
48 & 21 & 22.5333333333333 & -1.53333333333333 \tabularnewline
49 & 31 & 30.1153846153846 & 0.884615384615383 \tabularnewline
50 & 26 & 26.4285714285714 & -0.428571428571427 \tabularnewline
51 & 22 & 22.5333333333333 & -0.533333333333335 \tabularnewline
52 & 21 & 20.08 & 0.920000000000002 \tabularnewline
53 & 27 & 26.4285714285714 & 0.571428571428573 \tabularnewline
54 & 30 & 30.1153846153846 & -0.115384615384617 \tabularnewline
55 & 33 & 34.7 & -1.7 \tabularnewline
56 & 11 & 12 & -1 \tabularnewline
57 & 26 & 26.4285714285714 & -0.428571428571427 \tabularnewline
58 & 26 & 26.4285714285714 & -0.428571428571427 \tabularnewline
59 & 23 & 24.6 & -1.6 \tabularnewline
60 & 38 & 34.7 & 3.3 \tabularnewline
61 & 29 & 30.1153846153846 & -1.11538461538462 \tabularnewline
62 & 19 & 20.08 & -1.08 \tabularnewline
63 & 19 & 20.08 & -1.08 \tabularnewline
64 & 26 & 26.4285714285714 & -0.428571428571427 \tabularnewline
65 & 26 & 26.4285714285714 & -0.428571428571427 \tabularnewline
66 & 29 & 30.1153846153846 & -1.11538461538462 \tabularnewline
67 & 36 & 34.7 & 1.3 \tabularnewline
68 & 25 & 24.6 & 0.399999999999999 \tabularnewline
69 & 24 & 24.6 & -0.600000000000001 \tabularnewline
70 & 21 & 20.08 & 0.920000000000002 \tabularnewline
71 & 19 & 20.08 & -1.08 \tabularnewline
72 & 12 & 12 & 0 \tabularnewline
73 & 30 & 30.1153846153846 & -0.115384615384617 \tabularnewline
74 & 21 & 16.875 & 4.125 \tabularnewline
75 & 34 & 34.7 & -0.700000000000003 \tabularnewline
76 & 32 & 30.1153846153846 & 1.88461538461538 \tabularnewline
77 & 28 & 30.1153846153846 & -2.11538461538462 \tabularnewline
78 & 28 & 30.1153846153846 & -2.11538461538462 \tabularnewline
79 & 21 & 20.08 & 0.920000000000002 \tabularnewline
80 & 31 & 30.1153846153846 & 0.884615384615383 \tabularnewline
81 & 26 & 24.6 & 1.4 \tabularnewline
82 & 29 & 30.1153846153846 & -1.11538461538462 \tabularnewline
83 & 23 & 22.5333333333333 & 0.466666666666665 \tabularnewline
84 & 25 & 24.6 & 0.399999999999999 \tabularnewline
85 & 22 & 22.5333333333333 & -0.533333333333335 \tabularnewline
86 & 26 & 26.4285714285714 & -0.428571428571427 \tabularnewline
87 & 33 & 34.7 & -1.7 \tabularnewline
88 & 24 & 26.4285714285714 & -2.42857142857143 \tabularnewline
89 & 24 & 24.6 & -0.600000000000001 \tabularnewline
90 & 21 & 20.08 & 0.920000000000002 \tabularnewline
91 & 28 & 26.4285714285714 & 1.57142857142857 \tabularnewline
92 & 27 & 26.4285714285714 & 0.571428571428573 \tabularnewline
93 & 25 & 24.6 & 0.399999999999999 \tabularnewline
94 & 15 & 16.875 & -1.875 \tabularnewline
95 & 13 & 12 & 1 \tabularnewline
96 & 36 & 34.7 & 1.3 \tabularnewline
97 & 24 & 24.6 & -0.600000000000001 \tabularnewline
98 & 1 & 1.11764705882353 & -0.117647058823529 \tabularnewline
99 & 24 & 26.4285714285714 & -2.42857142857143 \tabularnewline
100 & 31 & 30.1153846153846 & 0.884615384615383 \tabularnewline
101 & 4 & 1.11764705882353 & 2.88235294117647 \tabularnewline
102 & 20 & 20.08 & -0.0799999999999983 \tabularnewline
103 & 23 & 22.5333333333333 & 0.466666666666665 \tabularnewline
104 & 23 & 22.5333333333333 & 0.466666666666665 \tabularnewline
105 & 12 & 12 & 0 \tabularnewline
106 & 16 & 16.875 & -0.875 \tabularnewline
107 & 29 & 30.1153846153846 & -1.11538461538462 \tabularnewline
108 & 10 & 12 & -2 \tabularnewline
109 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
110 & 25 & 24.6 & 0.399999999999999 \tabularnewline
111 & 21 & 20.08 & 0.920000000000002 \tabularnewline
112 & 23 & 22.5333333333333 & 0.466666666666665 \tabularnewline
113 & 21 & 22.5333333333333 & -1.53333333333333 \tabularnewline
114 & 21 & 20.08 & 0.920000000000002 \tabularnewline
115 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
116 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
117 & 23 & 22.5333333333333 & 0.466666666666665 \tabularnewline
118 & 29 & 26.4285714285714 & 2.57142857142857 \tabularnewline
119 & 28 & 30.1153846153846 & -2.11538461538462 \tabularnewline
120 & 23 & 24.6 & -1.6 \tabularnewline
121 & 1 & 1.11764705882353 & -0.117647058823529 \tabularnewline
122 & 29 & 30.1153846153846 & -1.11538461538462 \tabularnewline
123 & 17 & 20.08 & -3.08 \tabularnewline
124 & 29 & 30.1153846153846 & -1.11538461538462 \tabularnewline
125 & 12 & 12 & 0 \tabularnewline
126 & 2 & 1.11764705882353 & 0.882352941176471 \tabularnewline
127 & 21 & 20.08 & 0.920000000000002 \tabularnewline
128 & 25 & 24.6 & 0.399999999999999 \tabularnewline
129 & 29 & 30.1153846153846 & -1.11538461538462 \tabularnewline
130 & 2 & 1.11764705882353 & 0.882352941176471 \tabularnewline
131 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
132 & 18 & 16.875 & 1.125 \tabularnewline
133 & 1 & 1.11764705882353 & -0.117647058823529 \tabularnewline
134 & 21 & 20.08 & 0.920000000000002 \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.6 & 0.399999999999999 \tabularnewline
139 & 26 & 24.6 & 1.4 \tabularnewline
140 & 0 & 1.11764705882353 & -1.11764705882353 \tabularnewline
141 & 4 & 1.11764705882353 & 2.88235294117647 \tabularnewline
142 & 17 & 16.875 & 0.125 \tabularnewline
143 & 21 & 20.08 & 0.920000000000002 \tabularnewline
144 & 22 & 22.5333333333333 & -0.533333333333335 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=160351&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]20.08[/C][C]-2.08[/C][/ROW]
[ROW][C]2[/C][C]20[/C][C]20.08[/C][C]-0.0799999999999983[/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]22.5333333333333[/C][C]3.46666666666667[/C][/ROW]
[ROW][C]5[/C][C]31[/C][C]30.1153846153846[/C][C]0.884615384615383[/C][/ROW]
[ROW][C]6[/C][C]36[/C][C]34.7[/C][C]1.3[/C][/ROW]
[ROW][C]7[/C][C]23[/C][C]22.5333333333333[/C][C]0.466666666666665[/C][/ROW]
[ROW][C]8[/C][C]30[/C][C]30.1153846153846[/C][C]-0.115384615384617[/C][/ROW]
[ROW][C]9[/C][C]30[/C][C]30.1153846153846[/C][C]-0.115384615384617[/C][/ROW]
[ROW][C]10[/C][C]26[/C][C]26.4285714285714[/C][C]-0.428571428571427[/C][/ROW]
[ROW][C]11[/C][C]24[/C][C]20.08[/C][C]3.92[/C][/ROW]
[ROW][C]12[/C][C]30[/C][C]30.1153846153846[/C][C]-0.115384615384617[/C][/ROW]
[ROW][C]13[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]14[/C][C]25[/C][C]26.4285714285714[/C][C]-1.42857142857143[/C][/ROW]
[ROW][C]15[/C][C]18[/C][C]20.08[/C][C]-2.08[/C][/ROW]
[ROW][C]16[/C][C]19[/C][C]20.08[/C][C]-1.08[/C][/ROW]
[ROW][C]17[/C][C]33[/C][C]34.7[/C][C]-1.7[/C][/ROW]
[ROW][C]18[/C][C]15[/C][C]16.875[/C][C]-1.875[/C][/ROW]
[ROW][C]19[/C][C]34[/C][C]34.7[/C][C]-0.700000000000003[/C][/ROW]
[ROW][C]20[/C][C]18[/C][C]16.875[/C][C]1.125[/C][/ROW]
[ROW][C]21[/C][C]15[/C][C]16.875[/C][C]-1.875[/C][/ROW]
[ROW][C]22[/C][C]30[/C][C]30.1153846153846[/C][C]-0.115384615384617[/C][/ROW]
[ROW][C]23[/C][C]25[/C][C]26.4285714285714[/C][C]-1.42857142857143[/C][/ROW]
[ROW][C]24[/C][C]34[/C][C]26.4285714285714[/C][C]7.57142857142857[/C][/ROW]
[ROW][C]25[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]26[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]27[/C][C]25[/C][C]24.6[/C][C]0.399999999999999[/C][/ROW]
[ROW][C]28[/C][C]31[/C][C]30.1153846153846[/C][C]0.884615384615383[/C][/ROW]
[ROW][C]29[/C][C]31[/C][C]30.1153846153846[/C][C]0.884615384615383[/C][/ROW]
[ROW][C]30[/C][C]20[/C][C]20.08[/C][C]-0.0799999999999983[/C][/ROW]
[ROW][C]31[/C][C]28[/C][C]26.4285714285714[/C][C]1.57142857142857[/C][/ROW]
[ROW][C]32[/C][C]20[/C][C]20.08[/C][C]-0.0799999999999983[/C][/ROW]
[ROW][C]33[/C][C]17[/C][C]20.08[/C][C]-3.08[/C][/ROW]
[ROW][C]34[/C][C]25[/C][C]26.4285714285714[/C][C]-1.42857142857143[/C][/ROW]
[ROW][C]35[/C][C]24[/C][C]26.4285714285714[/C][C]-2.42857142857143[/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]26.4285714285714[/C][C]0.571428571428573[/C][/ROW]
[ROW][C]38[/C][C]14[/C][C]12[/C][C]2[/C][/ROW]
[ROW][C]39[/C][C]32[/C][C]30.1153846153846[/C][C]1.88461538461538[/C][/ROW]
[ROW][C]40[/C][C]31[/C][C]30.1153846153846[/C][C]0.884615384615383[/C][/ROW]
[ROW][C]41[/C][C]21[/C][C]22.5333333333333[/C][C]-1.53333333333333[/C][/ROW]
[ROW][C]42[/C][C]34[/C][C]34.7[/C][C]-0.700000000000003[/C][/ROW]
[ROW][C]43[/C][C]23[/C][C]22.5333333333333[/C][C]0.466666666666665[/C][/ROW]
[ROW][C]44[/C][C]24[/C][C]24.6[/C][C]-0.600000000000001[/C][/ROW]
[ROW][C]45[/C][C]26[/C][C]26.4285714285714[/C][C]-0.428571428571427[/C][/ROW]
[ROW][C]46[/C][C]22[/C][C]22.5333333333333[/C][C]-0.533333333333335[/C][/ROW]
[ROW][C]47[/C][C]35[/C][C]30.1153846153846[/C][C]4.88461538461538[/C][/ROW]
[ROW][C]48[/C][C]21[/C][C]22.5333333333333[/C][C]-1.53333333333333[/C][/ROW]
[ROW][C]49[/C][C]31[/C][C]30.1153846153846[/C][C]0.884615384615383[/C][/ROW]
[ROW][C]50[/C][C]26[/C][C]26.4285714285714[/C][C]-0.428571428571427[/C][/ROW]
[ROW][C]51[/C][C]22[/C][C]22.5333333333333[/C][C]-0.533333333333335[/C][/ROW]
[ROW][C]52[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]53[/C][C]27[/C][C]26.4285714285714[/C][C]0.571428571428573[/C][/ROW]
[ROW][C]54[/C][C]30[/C][C]30.1153846153846[/C][C]-0.115384615384617[/C][/ROW]
[ROW][C]55[/C][C]33[/C][C]34.7[/C][C]-1.7[/C][/ROW]
[ROW][C]56[/C][C]11[/C][C]12[/C][C]-1[/C][/ROW]
[ROW][C]57[/C][C]26[/C][C]26.4285714285714[/C][C]-0.428571428571427[/C][/ROW]
[ROW][C]58[/C][C]26[/C][C]26.4285714285714[/C][C]-0.428571428571427[/C][/ROW]
[ROW][C]59[/C][C]23[/C][C]24.6[/C][C]-1.6[/C][/ROW]
[ROW][C]60[/C][C]38[/C][C]34.7[/C][C]3.3[/C][/ROW]
[ROW][C]61[/C][C]29[/C][C]30.1153846153846[/C][C]-1.11538461538462[/C][/ROW]
[ROW][C]62[/C][C]19[/C][C]20.08[/C][C]-1.08[/C][/ROW]
[ROW][C]63[/C][C]19[/C][C]20.08[/C][C]-1.08[/C][/ROW]
[ROW][C]64[/C][C]26[/C][C]26.4285714285714[/C][C]-0.428571428571427[/C][/ROW]
[ROW][C]65[/C][C]26[/C][C]26.4285714285714[/C][C]-0.428571428571427[/C][/ROW]
[ROW][C]66[/C][C]29[/C][C]30.1153846153846[/C][C]-1.11538461538462[/C][/ROW]
[ROW][C]67[/C][C]36[/C][C]34.7[/C][C]1.3[/C][/ROW]
[ROW][C]68[/C][C]25[/C][C]24.6[/C][C]0.399999999999999[/C][/ROW]
[ROW][C]69[/C][C]24[/C][C]24.6[/C][C]-0.600000000000001[/C][/ROW]
[ROW][C]70[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]71[/C][C]19[/C][C]20.08[/C][C]-1.08[/C][/ROW]
[ROW][C]72[/C][C]12[/C][C]12[/C][C]0[/C][/ROW]
[ROW][C]73[/C][C]30[/C][C]30.1153846153846[/C][C]-0.115384615384617[/C][/ROW]
[ROW][C]74[/C][C]21[/C][C]16.875[/C][C]4.125[/C][/ROW]
[ROW][C]75[/C][C]34[/C][C]34.7[/C][C]-0.700000000000003[/C][/ROW]
[ROW][C]76[/C][C]32[/C][C]30.1153846153846[/C][C]1.88461538461538[/C][/ROW]
[ROW][C]77[/C][C]28[/C][C]30.1153846153846[/C][C]-2.11538461538462[/C][/ROW]
[ROW][C]78[/C][C]28[/C][C]30.1153846153846[/C][C]-2.11538461538462[/C][/ROW]
[ROW][C]79[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]80[/C][C]31[/C][C]30.1153846153846[/C][C]0.884615384615383[/C][/ROW]
[ROW][C]81[/C][C]26[/C][C]24.6[/C][C]1.4[/C][/ROW]
[ROW][C]82[/C][C]29[/C][C]30.1153846153846[/C][C]-1.11538461538462[/C][/ROW]
[ROW][C]83[/C][C]23[/C][C]22.5333333333333[/C][C]0.466666666666665[/C][/ROW]
[ROW][C]84[/C][C]25[/C][C]24.6[/C][C]0.399999999999999[/C][/ROW]
[ROW][C]85[/C][C]22[/C][C]22.5333333333333[/C][C]-0.533333333333335[/C][/ROW]
[ROW][C]86[/C][C]26[/C][C]26.4285714285714[/C][C]-0.428571428571427[/C][/ROW]
[ROW][C]87[/C][C]33[/C][C]34.7[/C][C]-1.7[/C][/ROW]
[ROW][C]88[/C][C]24[/C][C]26.4285714285714[/C][C]-2.42857142857143[/C][/ROW]
[ROW][C]89[/C][C]24[/C][C]24.6[/C][C]-0.600000000000001[/C][/ROW]
[ROW][C]90[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]91[/C][C]28[/C][C]26.4285714285714[/C][C]1.57142857142857[/C][/ROW]
[ROW][C]92[/C][C]27[/C][C]26.4285714285714[/C][C]0.571428571428573[/C][/ROW]
[ROW][C]93[/C][C]25[/C][C]24.6[/C][C]0.399999999999999[/C][/ROW]
[ROW][C]94[/C][C]15[/C][C]16.875[/C][C]-1.875[/C][/ROW]
[ROW][C]95[/C][C]13[/C][C]12[/C][C]1[/C][/ROW]
[ROW][C]96[/C][C]36[/C][C]34.7[/C][C]1.3[/C][/ROW]
[ROW][C]97[/C][C]24[/C][C]24.6[/C][C]-0.600000000000001[/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]26.4285714285714[/C][C]-2.42857142857143[/C][/ROW]
[ROW][C]100[/C][C]31[/C][C]30.1153846153846[/C][C]0.884615384615383[/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]20.08[/C][C]-0.0799999999999983[/C][/ROW]
[ROW][C]103[/C][C]23[/C][C]22.5333333333333[/C][C]0.466666666666665[/C][/ROW]
[ROW][C]104[/C][C]23[/C][C]22.5333333333333[/C][C]0.466666666666665[/C][/ROW]
[ROW][C]105[/C][C]12[/C][C]12[/C][C]0[/C][/ROW]
[ROW][C]106[/C][C]16[/C][C]16.875[/C][C]-0.875[/C][/ROW]
[ROW][C]107[/C][C]29[/C][C]30.1153846153846[/C][C]-1.11538461538462[/C][/ROW]
[ROW][C]108[/C][C]10[/C][C]12[/C][C]-2[/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.6[/C][C]0.399999999999999[/C][/ROW]
[ROW][C]111[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]112[/C][C]23[/C][C]22.5333333333333[/C][C]0.466666666666665[/C][/ROW]
[ROW][C]113[/C][C]21[/C][C]22.5333333333333[/C][C]-1.53333333333333[/C][/ROW]
[ROW][C]114[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/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]22.5333333333333[/C][C]0.466666666666665[/C][/ROW]
[ROW][C]118[/C][C]29[/C][C]26.4285714285714[/C][C]2.57142857142857[/C][/ROW]
[ROW][C]119[/C][C]28[/C][C]30.1153846153846[/C][C]-2.11538461538462[/C][/ROW]
[ROW][C]120[/C][C]23[/C][C]24.6[/C][C]-1.6[/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]30.1153846153846[/C][C]-1.11538461538462[/C][/ROW]
[ROW][C]123[/C][C]17[/C][C]20.08[/C][C]-3.08[/C][/ROW]
[ROW][C]124[/C][C]29[/C][C]30.1153846153846[/C][C]-1.11538461538462[/C][/ROW]
[ROW][C]125[/C][C]12[/C][C]12[/C][C]0[/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]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]128[/C][C]25[/C][C]24.6[/C][C]0.399999999999999[/C][/ROW]
[ROW][C]129[/C][C]29[/C][C]30.1153846153846[/C][C]-1.11538461538462[/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]16.875[/C][C]1.125[/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]20.08[/C][C]0.920000000000002[/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.6[/C][C]0.399999999999999[/C][/ROW]
[ROW][C]139[/C][C]26[/C][C]24.6[/C][C]1.4[/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]16.875[/C][C]0.125[/C][/ROW]
[ROW][C]143[/C][C]21[/C][C]20.08[/C][C]0.920000000000002[/C][/ROW]
[ROW][C]144[/C][C]22[/C][C]22.5333333333333[/C][C]-0.533333333333335[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=160351&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160351&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
11820.08-2.08
22020.08-0.0799999999999983
301.11764705882353-1.11764705882353
42622.53333333333333.46666666666667
53130.11538461538460.884615384615383
63634.71.3
72322.53333333333330.466666666666665
83030.1153846153846-0.115384615384617
93030.1153846153846-0.115384615384617
102626.4285714285714-0.428571428571427
112420.083.92
123030.1153846153846-0.115384615384617
132120.080.920000000000002
142526.4285714285714-1.42857142857143
151820.08-2.08
161920.08-1.08
173334.7-1.7
181516.875-1.875
193434.7-0.700000000000003
201816.8751.125
211516.875-1.875
223030.1153846153846-0.115384615384617
232526.4285714285714-1.42857142857143
243426.42857142857147.57142857142857
252120.080.920000000000002
262120.080.920000000000002
272524.60.399999999999999
283130.11538461538460.884615384615383
293130.11538461538460.884615384615383
302020.08-0.0799999999999983
312826.42857142857141.57142857142857
322020.08-0.0799999999999983
331720.08-3.08
342526.4285714285714-1.42857142857143
352426.4285714285714-2.42857142857143
3601.11764705882353-1.11764705882353
372726.42857142857140.571428571428573
3814122
393230.11538461538461.88461538461538
403130.11538461538460.884615384615383
412122.5333333333333-1.53333333333333
423434.7-0.700000000000003
432322.53333333333330.466666666666665
442424.6-0.600000000000001
452626.4285714285714-0.428571428571427
462222.5333333333333-0.533333333333335
473530.11538461538464.88461538461538
482122.5333333333333-1.53333333333333
493130.11538461538460.884615384615383
502626.4285714285714-0.428571428571427
512222.5333333333333-0.533333333333335
522120.080.920000000000002
532726.42857142857140.571428571428573
543030.1153846153846-0.115384615384617
553334.7-1.7
561112-1
572626.4285714285714-0.428571428571427
582626.4285714285714-0.428571428571427
592324.6-1.6
603834.73.3
612930.1153846153846-1.11538461538462
621920.08-1.08
631920.08-1.08
642626.4285714285714-0.428571428571427
652626.4285714285714-0.428571428571427
662930.1153846153846-1.11538461538462
673634.71.3
682524.60.399999999999999
692424.6-0.600000000000001
702120.080.920000000000002
711920.08-1.08
7212120
733030.1153846153846-0.115384615384617
742116.8754.125
753434.7-0.700000000000003
763230.11538461538461.88461538461538
772830.1153846153846-2.11538461538462
782830.1153846153846-2.11538461538462
792120.080.920000000000002
803130.11538461538460.884615384615383
812624.61.4
822930.1153846153846-1.11538461538462
832322.53333333333330.466666666666665
842524.60.399999999999999
852222.5333333333333-0.533333333333335
862626.4285714285714-0.428571428571427
873334.7-1.7
882426.4285714285714-2.42857142857143
892424.6-0.600000000000001
902120.080.920000000000002
912826.42857142857141.57142857142857
922726.42857142857140.571428571428573
932524.60.399999999999999
941516.875-1.875
9513121
963634.71.3
972424.6-0.600000000000001
9811.11764705882353-0.117647058823529
992426.4285714285714-2.42857142857143
1003130.11538461538460.884615384615383
10141.117647058823532.88235294117647
1022020.08-0.0799999999999983
1032322.53333333333330.466666666666665
1042322.53333333333330.466666666666665
10512120
1061616.875-0.875
1072930.1153846153846-1.11538461538462
1081012-2
10901.11764705882353-1.11764705882353
1102524.60.399999999999999
1112120.080.920000000000002
1122322.53333333333330.466666666666665
1132122.5333333333333-1.53333333333333
1142120.080.920000000000002
11501.11764705882353-1.11764705882353
11601.11764705882353-1.11764705882353
1172322.53333333333330.466666666666665
1182926.42857142857142.57142857142857
1192830.1153846153846-2.11538461538462
1202324.6-1.6
12111.11764705882353-0.117647058823529
1222930.1153846153846-1.11538461538462
1231720.08-3.08
1242930.1153846153846-1.11538461538462
12512120
12621.117647058823530.882352941176471
1272120.080.920000000000002
1282524.60.399999999999999
1292930.1153846153846-1.11538461538462
13021.117647058823530.882352941176471
13101.11764705882353-1.11764705882353
1321816.8751.125
13311.11764705882353-0.117647058823529
1342120.080.920000000000002
13501.11764705882353-1.11764705882353
13641.117647058823532.88235294117647
13701.11764705882353-1.11764705882353
1382524.60.399999999999999
1392624.61.4
14001.11764705882353-1.11764705882353
14141.117647058823532.88235294117647
1421716.8750.125
1432120.080.920000000000002
1442222.5333333333333-0.533333333333335



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