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 computationWed, 19 Oct 2011 16:21:22 -0400
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/Oct/19/t131905581589942t39ch2ttv8.htm/, Retrieved Wed, 15 May 2024 21:54:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=132843, Retrieved Wed, 15 May 2024 21:54:53 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact74
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Recursive Partitioning (Regression Trees)] [LFM in PR vs. HRS...] [2011-10-19 20:21:22] [d76b387543b13b5e3afd8ff9e5fdc89f] [Current]
Feedback Forum

Post a new message
Dataseries X:
848	33	25	31.72
742	56	25	22.33
714	28	21	16.5
449	16	22	14.74
384	20	35	14.28
461	12	21	13.94
507	18	25	13.78
546	22	25	12.48
999	4	0	11.72
440	13	23	11.1
378	14	29	10.98
659	21	22	10.44
406	15	24	10.23
380	12	19	10.14
374	14	14	10.06
316	18	24	10.01
389	19	25	8.97
341	15	21	8.92
250	11	14	8.76
386	15	24	8.66
439	14	16	8.61
333	12	17	8.57
254	25	24	8.37
349	14	14	8.36
323	15	24	8.35
379	22	20	8.3
280	11	20	8.02
235	11	25	7.93
376	11	25	7.92
326	16	25	7.91
196	20	25	7.87
303	7	25	7.85
311	13	15	7.73
445	13	9	7.7
411	17	29	7.53
351	22	23	7.51
235	11	25	7.5
356	12	24	7.48
330	12	23	7.47
319	27	24	7.47
503	20	10	7.43
327	12	13	7.41
272	13	25	7.36
299	12	20	7.29
586	15	23	7.28
469	18	16	7.18
199	15	0	7.13
209	9	13	7.08
310	15	23	7.03
339	16	24	7
445	26	24	6.98
340	10	25	6.86
290	22	17	6.84
295	20	9	6.83
329	13	25	6.73
264	19	13	6.71
261	19	21	6.67
265	7	17	6.66
237	13	10	6.64
309	18	11	6.62
252	13	25	6.59
230	13	25	6.53
260	18	22	6.48
306	19	17	6.47
185	11	25	6.37
240	18	7	6.34
275	13	19	6.28
302	21	15	6.22
323	13	25	6.11
234	11	11	6.08
240	11	19	6.03
219	7	24	6.02
378	22	26	5.99
320	20	20	5.94
337	11	5	5.89
218	4	17	5.75
194	8	24	5.73
238	18	16	5.67
332	9	25	5.45
243	11	25	5.36
256	11	23	5.32
271	18	23	5.2
201	0	25	5.16
319	17	19	5.01
160	5	10	4.98
278	12	23	4.9
297	15	12	4.89
191	12	3	4.87
212	12	25	4.84
254	10	10	4.79
314	14	7	4.72
230	18	10	4.7
173	14	11	4.66
269	12	28	4.65
265	16	19	4.64
158	10	20	4.63
284	12	19	4.41
165	7	10	4.36
169	12	0	4.35
237	11	0	4.29
185	13	14	4.22
293	9	20	4.19
272	14	24	4.17
289	15	1	4.15
251	11	4	4.13
241	13	14	3.88
218	18	10	3.86
294	16	11	3.8
213	10	25	3.66
245	9	0	3.66
156	11	10	3.38
87	8	20	3.28
166	1	4	3.22
228	14	3	3.2
140	10	25	3.19
110	9	4	3.18
278	15	19	2.84
102	3	0	2.78
172	11	0	2.49
128	8	3	2.37
186	5	4	2.31
84	5	0	2.13
246	0	5	1.86
78	6	0	1.78
40	0	0	0.59
7	0	0	0.01
0	3	0	0
0	0	0	0
0	0	0	0
0	0	0	0
0	0	0	0




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=132843&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.6732
R-squared0.4532
RMSE6.7108

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.6732[/C][/ROW]
[ROW][C]R-squared[/C][C]0.4532[/C][/ROW]
[ROW][C]RMSE[/C][C]6.7108[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=132843&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=132843&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.6732
R-squared0.4532
RMSE6.7108







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
12519.46391752577325.53608247422681
22519.46391752577325.53608247422681
32119.46391752577321.53608247422681
42219.46391752577322.53608247422681
53519.463917525773215.5360824742268
62119.46391752577321.53608247422681
72519.46391752577325.53608247422681
82519.46391752577325.53608247422681
9019.4639175257732-19.4639175257732
102319.46391752577323.53608247422681
112919.46391752577329.53608247422681
122219.46391752577322.53608247422681
132419.46391752577324.53608247422681
141919.4639175257732-0.463917525773194
151419.4639175257732-5.46391752577319
162419.46391752577324.53608247422681
172519.46391752577325.53608247422681
182119.46391752577321.53608247422681
191419.4639175257732-5.46391752577319
202419.46391752577324.53608247422681
211619.4639175257732-3.46391752577319
221719.4639175257732-2.46391752577319
232419.46391752577324.53608247422681
241419.4639175257732-5.46391752577319
252419.46391752577324.53608247422681
262019.46391752577320.536082474226806
272019.46391752577320.536082474226806
282519.46391752577325.53608247422681
292519.46391752577325.53608247422681
302519.46391752577325.53608247422681
312519.46391752577325.53608247422681
322519.46391752577325.53608247422681
331519.4639175257732-4.46391752577319
34919.4639175257732-10.4639175257732
352919.46391752577329.53608247422681
362319.46391752577323.53608247422681
372519.46391752577325.53608247422681
382419.46391752577324.53608247422681
392319.46391752577323.53608247422681
402419.46391752577324.53608247422681
411019.4639175257732-9.46391752577319
421319.4639175257732-6.46391752577319
432519.46391752577325.53608247422681
442019.46391752577320.536082474226806
452319.46391752577323.53608247422681
461619.4639175257732-3.46391752577319
47019.4639175257732-19.4639175257732
481319.4639175257732-6.46391752577319
492319.46391752577323.53608247422681
502419.46391752577324.53608247422681
512419.46391752577324.53608247422681
522519.46391752577325.53608247422681
531719.4639175257732-2.46391752577319
54919.4639175257732-10.4639175257732
552519.46391752577325.53608247422681
561319.4639175257732-6.46391752577319
572119.46391752577321.53608247422681
581719.4639175257732-2.46391752577319
591019.4639175257732-9.46391752577319
601119.4639175257732-8.46391752577319
612519.46391752577325.53608247422681
622519.46391752577325.53608247422681
632219.46391752577322.53608247422681
641719.4639175257732-2.46391752577319
652519.46391752577325.53608247422681
66719.4639175257732-12.4639175257732
671919.4639175257732-0.463917525773194
681519.4639175257732-4.46391752577319
692519.46391752577325.53608247422681
701119.4639175257732-8.46391752577319
711919.4639175257732-0.463917525773194
722419.46391752577324.53608247422681
732619.46391752577326.53608247422681
742019.46391752577320.536082474226806
75519.4639175257732-14.4639175257732
761719.4639175257732-2.46391752577319
772419.46391752577324.53608247422681
781619.4639175257732-3.46391752577319
792519.46391752577325.53608247422681
802519.46391752577325.53608247422681
812319.46391752577323.53608247422681
822319.46391752577323.53608247422681
832519.46391752577325.53608247422681
841919.4639175257732-0.463917525773194
851019.4639175257732-9.46391752577319
862319.46391752577323.53608247422681
871219.4639175257732-7.46391752577319
88319.4639175257732-16.4639175257732
892519.46391752577325.53608247422681
901019.4639175257732-9.46391752577319
91719.4639175257732-12.4639175257732
921019.4639175257732-9.46391752577319
931119.4639175257732-8.46391752577319
942819.46391752577328.53608247422681
951919.4639175257732-0.463917525773194
962019.46391752577320.536082474226806
971919.4639175257732-0.463917525773194
981010.9-0.9
99010.9-10.9
100010.9-10.9
1011410.93.1
1022010.99.1
1032410.913.1
104110.9-9.9
105410.9-6.9
1061410.93.1
1071010.9-0.9
1081110.90.0999999999999996
1092510.914.1
110010.9-10.9
1111010.9-0.9
1122010.99.1
113410.9-6.9
114310.9-7.9
1152510.914.1
116410.9-6.9
1171910.98.1
11800.857142857142857-0.857142857142857
11900.857142857142857-0.857142857142857
12030.8571428571428572.14285714285714
12140.8571428571428573.14285714285714
12200.857142857142857-0.857142857142857
12350.8571428571428574.14285714285714
12400.857142857142857-0.857142857142857
12500.857142857142857-0.857142857142857
12600.857142857142857-0.857142857142857
12700.857142857142857-0.857142857142857
12800.857142857142857-0.857142857142857
12900.857142857142857-0.857142857142857
13000.857142857142857-0.857142857142857
13100.857142857142857-0.857142857142857

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
2 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
3 & 21 & 19.4639175257732 & 1.53608247422681 \tabularnewline
4 & 22 & 19.4639175257732 & 2.53608247422681 \tabularnewline
5 & 35 & 19.4639175257732 & 15.5360824742268 \tabularnewline
6 & 21 & 19.4639175257732 & 1.53608247422681 \tabularnewline
7 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
8 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
9 & 0 & 19.4639175257732 & -19.4639175257732 \tabularnewline
10 & 23 & 19.4639175257732 & 3.53608247422681 \tabularnewline
11 & 29 & 19.4639175257732 & 9.53608247422681 \tabularnewline
12 & 22 & 19.4639175257732 & 2.53608247422681 \tabularnewline
13 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
14 & 19 & 19.4639175257732 & -0.463917525773194 \tabularnewline
15 & 14 & 19.4639175257732 & -5.46391752577319 \tabularnewline
16 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
17 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
18 & 21 & 19.4639175257732 & 1.53608247422681 \tabularnewline
19 & 14 & 19.4639175257732 & -5.46391752577319 \tabularnewline
20 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
21 & 16 & 19.4639175257732 & -3.46391752577319 \tabularnewline
22 & 17 & 19.4639175257732 & -2.46391752577319 \tabularnewline
23 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
24 & 14 & 19.4639175257732 & -5.46391752577319 \tabularnewline
25 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
26 & 20 & 19.4639175257732 & 0.536082474226806 \tabularnewline
27 & 20 & 19.4639175257732 & 0.536082474226806 \tabularnewline
28 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
29 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
30 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
31 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
32 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
33 & 15 & 19.4639175257732 & -4.46391752577319 \tabularnewline
34 & 9 & 19.4639175257732 & -10.4639175257732 \tabularnewline
35 & 29 & 19.4639175257732 & 9.53608247422681 \tabularnewline
36 & 23 & 19.4639175257732 & 3.53608247422681 \tabularnewline
37 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
38 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
39 & 23 & 19.4639175257732 & 3.53608247422681 \tabularnewline
40 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
41 & 10 & 19.4639175257732 & -9.46391752577319 \tabularnewline
42 & 13 & 19.4639175257732 & -6.46391752577319 \tabularnewline
43 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
44 & 20 & 19.4639175257732 & 0.536082474226806 \tabularnewline
45 & 23 & 19.4639175257732 & 3.53608247422681 \tabularnewline
46 & 16 & 19.4639175257732 & -3.46391752577319 \tabularnewline
47 & 0 & 19.4639175257732 & -19.4639175257732 \tabularnewline
48 & 13 & 19.4639175257732 & -6.46391752577319 \tabularnewline
49 & 23 & 19.4639175257732 & 3.53608247422681 \tabularnewline
50 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
51 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
52 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
53 & 17 & 19.4639175257732 & -2.46391752577319 \tabularnewline
54 & 9 & 19.4639175257732 & -10.4639175257732 \tabularnewline
55 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
56 & 13 & 19.4639175257732 & -6.46391752577319 \tabularnewline
57 & 21 & 19.4639175257732 & 1.53608247422681 \tabularnewline
58 & 17 & 19.4639175257732 & -2.46391752577319 \tabularnewline
59 & 10 & 19.4639175257732 & -9.46391752577319 \tabularnewline
60 & 11 & 19.4639175257732 & -8.46391752577319 \tabularnewline
61 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
62 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
63 & 22 & 19.4639175257732 & 2.53608247422681 \tabularnewline
64 & 17 & 19.4639175257732 & -2.46391752577319 \tabularnewline
65 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
66 & 7 & 19.4639175257732 & -12.4639175257732 \tabularnewline
67 & 19 & 19.4639175257732 & -0.463917525773194 \tabularnewline
68 & 15 & 19.4639175257732 & -4.46391752577319 \tabularnewline
69 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
70 & 11 & 19.4639175257732 & -8.46391752577319 \tabularnewline
71 & 19 & 19.4639175257732 & -0.463917525773194 \tabularnewline
72 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
73 & 26 & 19.4639175257732 & 6.53608247422681 \tabularnewline
74 & 20 & 19.4639175257732 & 0.536082474226806 \tabularnewline
75 & 5 & 19.4639175257732 & -14.4639175257732 \tabularnewline
76 & 17 & 19.4639175257732 & -2.46391752577319 \tabularnewline
77 & 24 & 19.4639175257732 & 4.53608247422681 \tabularnewline
78 & 16 & 19.4639175257732 & -3.46391752577319 \tabularnewline
79 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
80 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
81 & 23 & 19.4639175257732 & 3.53608247422681 \tabularnewline
82 & 23 & 19.4639175257732 & 3.53608247422681 \tabularnewline
83 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
84 & 19 & 19.4639175257732 & -0.463917525773194 \tabularnewline
85 & 10 & 19.4639175257732 & -9.46391752577319 \tabularnewline
86 & 23 & 19.4639175257732 & 3.53608247422681 \tabularnewline
87 & 12 & 19.4639175257732 & -7.46391752577319 \tabularnewline
88 & 3 & 19.4639175257732 & -16.4639175257732 \tabularnewline
89 & 25 & 19.4639175257732 & 5.53608247422681 \tabularnewline
90 & 10 & 19.4639175257732 & -9.46391752577319 \tabularnewline
91 & 7 & 19.4639175257732 & -12.4639175257732 \tabularnewline
92 & 10 & 19.4639175257732 & -9.46391752577319 \tabularnewline
93 & 11 & 19.4639175257732 & -8.46391752577319 \tabularnewline
94 & 28 & 19.4639175257732 & 8.53608247422681 \tabularnewline
95 & 19 & 19.4639175257732 & -0.463917525773194 \tabularnewline
96 & 20 & 19.4639175257732 & 0.536082474226806 \tabularnewline
97 & 19 & 19.4639175257732 & -0.463917525773194 \tabularnewline
98 & 10 & 10.9 & -0.9 \tabularnewline
99 & 0 & 10.9 & -10.9 \tabularnewline
100 & 0 & 10.9 & -10.9 \tabularnewline
101 & 14 & 10.9 & 3.1 \tabularnewline
102 & 20 & 10.9 & 9.1 \tabularnewline
103 & 24 & 10.9 & 13.1 \tabularnewline
104 & 1 & 10.9 & -9.9 \tabularnewline
105 & 4 & 10.9 & -6.9 \tabularnewline
106 & 14 & 10.9 & 3.1 \tabularnewline
107 & 10 & 10.9 & -0.9 \tabularnewline
108 & 11 & 10.9 & 0.0999999999999996 \tabularnewline
109 & 25 & 10.9 & 14.1 \tabularnewline
110 & 0 & 10.9 & -10.9 \tabularnewline
111 & 10 & 10.9 & -0.9 \tabularnewline
112 & 20 & 10.9 & 9.1 \tabularnewline
113 & 4 & 10.9 & -6.9 \tabularnewline
114 & 3 & 10.9 & -7.9 \tabularnewline
115 & 25 & 10.9 & 14.1 \tabularnewline
116 & 4 & 10.9 & -6.9 \tabularnewline
117 & 19 & 10.9 & 8.1 \tabularnewline
118 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
119 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
120 & 3 & 0.857142857142857 & 2.14285714285714 \tabularnewline
121 & 4 & 0.857142857142857 & 3.14285714285714 \tabularnewline
122 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
123 & 5 & 0.857142857142857 & 4.14285714285714 \tabularnewline
124 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
125 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
126 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
127 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
128 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
129 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
130 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
131 & 0 & 0.857142857142857 & -0.857142857142857 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=132843&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]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]2[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]3[/C][C]21[/C][C]19.4639175257732[/C][C]1.53608247422681[/C][/ROW]
[ROW][C]4[/C][C]22[/C][C]19.4639175257732[/C][C]2.53608247422681[/C][/ROW]
[ROW][C]5[/C][C]35[/C][C]19.4639175257732[/C][C]15.5360824742268[/C][/ROW]
[ROW][C]6[/C][C]21[/C][C]19.4639175257732[/C][C]1.53608247422681[/C][/ROW]
[ROW][C]7[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]8[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]9[/C][C]0[/C][C]19.4639175257732[/C][C]-19.4639175257732[/C][/ROW]
[ROW][C]10[/C][C]23[/C][C]19.4639175257732[/C][C]3.53608247422681[/C][/ROW]
[ROW][C]11[/C][C]29[/C][C]19.4639175257732[/C][C]9.53608247422681[/C][/ROW]
[ROW][C]12[/C][C]22[/C][C]19.4639175257732[/C][C]2.53608247422681[/C][/ROW]
[ROW][C]13[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]14[/C][C]19[/C][C]19.4639175257732[/C][C]-0.463917525773194[/C][/ROW]
[ROW][C]15[/C][C]14[/C][C]19.4639175257732[/C][C]-5.46391752577319[/C][/ROW]
[ROW][C]16[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]17[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]18[/C][C]21[/C][C]19.4639175257732[/C][C]1.53608247422681[/C][/ROW]
[ROW][C]19[/C][C]14[/C][C]19.4639175257732[/C][C]-5.46391752577319[/C][/ROW]
[ROW][C]20[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]21[/C][C]16[/C][C]19.4639175257732[/C][C]-3.46391752577319[/C][/ROW]
[ROW][C]22[/C][C]17[/C][C]19.4639175257732[/C][C]-2.46391752577319[/C][/ROW]
[ROW][C]23[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]24[/C][C]14[/C][C]19.4639175257732[/C][C]-5.46391752577319[/C][/ROW]
[ROW][C]25[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]26[/C][C]20[/C][C]19.4639175257732[/C][C]0.536082474226806[/C][/ROW]
[ROW][C]27[/C][C]20[/C][C]19.4639175257732[/C][C]0.536082474226806[/C][/ROW]
[ROW][C]28[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]29[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]30[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]31[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]32[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]33[/C][C]15[/C][C]19.4639175257732[/C][C]-4.46391752577319[/C][/ROW]
[ROW][C]34[/C][C]9[/C][C]19.4639175257732[/C][C]-10.4639175257732[/C][/ROW]
[ROW][C]35[/C][C]29[/C][C]19.4639175257732[/C][C]9.53608247422681[/C][/ROW]
[ROW][C]36[/C][C]23[/C][C]19.4639175257732[/C][C]3.53608247422681[/C][/ROW]
[ROW][C]37[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]38[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]39[/C][C]23[/C][C]19.4639175257732[/C][C]3.53608247422681[/C][/ROW]
[ROW][C]40[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]41[/C][C]10[/C][C]19.4639175257732[/C][C]-9.46391752577319[/C][/ROW]
[ROW][C]42[/C][C]13[/C][C]19.4639175257732[/C][C]-6.46391752577319[/C][/ROW]
[ROW][C]43[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]44[/C][C]20[/C][C]19.4639175257732[/C][C]0.536082474226806[/C][/ROW]
[ROW][C]45[/C][C]23[/C][C]19.4639175257732[/C][C]3.53608247422681[/C][/ROW]
[ROW][C]46[/C][C]16[/C][C]19.4639175257732[/C][C]-3.46391752577319[/C][/ROW]
[ROW][C]47[/C][C]0[/C][C]19.4639175257732[/C][C]-19.4639175257732[/C][/ROW]
[ROW][C]48[/C][C]13[/C][C]19.4639175257732[/C][C]-6.46391752577319[/C][/ROW]
[ROW][C]49[/C][C]23[/C][C]19.4639175257732[/C][C]3.53608247422681[/C][/ROW]
[ROW][C]50[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]51[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]52[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]53[/C][C]17[/C][C]19.4639175257732[/C][C]-2.46391752577319[/C][/ROW]
[ROW][C]54[/C][C]9[/C][C]19.4639175257732[/C][C]-10.4639175257732[/C][/ROW]
[ROW][C]55[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]56[/C][C]13[/C][C]19.4639175257732[/C][C]-6.46391752577319[/C][/ROW]
[ROW][C]57[/C][C]21[/C][C]19.4639175257732[/C][C]1.53608247422681[/C][/ROW]
[ROW][C]58[/C][C]17[/C][C]19.4639175257732[/C][C]-2.46391752577319[/C][/ROW]
[ROW][C]59[/C][C]10[/C][C]19.4639175257732[/C][C]-9.46391752577319[/C][/ROW]
[ROW][C]60[/C][C]11[/C][C]19.4639175257732[/C][C]-8.46391752577319[/C][/ROW]
[ROW][C]61[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]62[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]63[/C][C]22[/C][C]19.4639175257732[/C][C]2.53608247422681[/C][/ROW]
[ROW][C]64[/C][C]17[/C][C]19.4639175257732[/C][C]-2.46391752577319[/C][/ROW]
[ROW][C]65[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]66[/C][C]7[/C][C]19.4639175257732[/C][C]-12.4639175257732[/C][/ROW]
[ROW][C]67[/C][C]19[/C][C]19.4639175257732[/C][C]-0.463917525773194[/C][/ROW]
[ROW][C]68[/C][C]15[/C][C]19.4639175257732[/C][C]-4.46391752577319[/C][/ROW]
[ROW][C]69[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]70[/C][C]11[/C][C]19.4639175257732[/C][C]-8.46391752577319[/C][/ROW]
[ROW][C]71[/C][C]19[/C][C]19.4639175257732[/C][C]-0.463917525773194[/C][/ROW]
[ROW][C]72[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]73[/C][C]26[/C][C]19.4639175257732[/C][C]6.53608247422681[/C][/ROW]
[ROW][C]74[/C][C]20[/C][C]19.4639175257732[/C][C]0.536082474226806[/C][/ROW]
[ROW][C]75[/C][C]5[/C][C]19.4639175257732[/C][C]-14.4639175257732[/C][/ROW]
[ROW][C]76[/C][C]17[/C][C]19.4639175257732[/C][C]-2.46391752577319[/C][/ROW]
[ROW][C]77[/C][C]24[/C][C]19.4639175257732[/C][C]4.53608247422681[/C][/ROW]
[ROW][C]78[/C][C]16[/C][C]19.4639175257732[/C][C]-3.46391752577319[/C][/ROW]
[ROW][C]79[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]80[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]81[/C][C]23[/C][C]19.4639175257732[/C][C]3.53608247422681[/C][/ROW]
[ROW][C]82[/C][C]23[/C][C]19.4639175257732[/C][C]3.53608247422681[/C][/ROW]
[ROW][C]83[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]84[/C][C]19[/C][C]19.4639175257732[/C][C]-0.463917525773194[/C][/ROW]
[ROW][C]85[/C][C]10[/C][C]19.4639175257732[/C][C]-9.46391752577319[/C][/ROW]
[ROW][C]86[/C][C]23[/C][C]19.4639175257732[/C][C]3.53608247422681[/C][/ROW]
[ROW][C]87[/C][C]12[/C][C]19.4639175257732[/C][C]-7.46391752577319[/C][/ROW]
[ROW][C]88[/C][C]3[/C][C]19.4639175257732[/C][C]-16.4639175257732[/C][/ROW]
[ROW][C]89[/C][C]25[/C][C]19.4639175257732[/C][C]5.53608247422681[/C][/ROW]
[ROW][C]90[/C][C]10[/C][C]19.4639175257732[/C][C]-9.46391752577319[/C][/ROW]
[ROW][C]91[/C][C]7[/C][C]19.4639175257732[/C][C]-12.4639175257732[/C][/ROW]
[ROW][C]92[/C][C]10[/C][C]19.4639175257732[/C][C]-9.46391752577319[/C][/ROW]
[ROW][C]93[/C][C]11[/C][C]19.4639175257732[/C][C]-8.46391752577319[/C][/ROW]
[ROW][C]94[/C][C]28[/C][C]19.4639175257732[/C][C]8.53608247422681[/C][/ROW]
[ROW][C]95[/C][C]19[/C][C]19.4639175257732[/C][C]-0.463917525773194[/C][/ROW]
[ROW][C]96[/C][C]20[/C][C]19.4639175257732[/C][C]0.536082474226806[/C][/ROW]
[ROW][C]97[/C][C]19[/C][C]19.4639175257732[/C][C]-0.463917525773194[/C][/ROW]
[ROW][C]98[/C][C]10[/C][C]10.9[/C][C]-0.9[/C][/ROW]
[ROW][C]99[/C][C]0[/C][C]10.9[/C][C]-10.9[/C][/ROW]
[ROW][C]100[/C][C]0[/C][C]10.9[/C][C]-10.9[/C][/ROW]
[ROW][C]101[/C][C]14[/C][C]10.9[/C][C]3.1[/C][/ROW]
[ROW][C]102[/C][C]20[/C][C]10.9[/C][C]9.1[/C][/ROW]
[ROW][C]103[/C][C]24[/C][C]10.9[/C][C]13.1[/C][/ROW]
[ROW][C]104[/C][C]1[/C][C]10.9[/C][C]-9.9[/C][/ROW]
[ROW][C]105[/C][C]4[/C][C]10.9[/C][C]-6.9[/C][/ROW]
[ROW][C]106[/C][C]14[/C][C]10.9[/C][C]3.1[/C][/ROW]
[ROW][C]107[/C][C]10[/C][C]10.9[/C][C]-0.9[/C][/ROW]
[ROW][C]108[/C][C]11[/C][C]10.9[/C][C]0.0999999999999996[/C][/ROW]
[ROW][C]109[/C][C]25[/C][C]10.9[/C][C]14.1[/C][/ROW]
[ROW][C]110[/C][C]0[/C][C]10.9[/C][C]-10.9[/C][/ROW]
[ROW][C]111[/C][C]10[/C][C]10.9[/C][C]-0.9[/C][/ROW]
[ROW][C]112[/C][C]20[/C][C]10.9[/C][C]9.1[/C][/ROW]
[ROW][C]113[/C][C]4[/C][C]10.9[/C][C]-6.9[/C][/ROW]
[ROW][C]114[/C][C]3[/C][C]10.9[/C][C]-7.9[/C][/ROW]
[ROW][C]115[/C][C]25[/C][C]10.9[/C][C]14.1[/C][/ROW]
[ROW][C]116[/C][C]4[/C][C]10.9[/C][C]-6.9[/C][/ROW]
[ROW][C]117[/C][C]19[/C][C]10.9[/C][C]8.1[/C][/ROW]
[ROW][C]118[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]119[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]120[/C][C]3[/C][C]0.857142857142857[/C][C]2.14285714285714[/C][/ROW]
[ROW][C]121[/C][C]4[/C][C]0.857142857142857[/C][C]3.14285714285714[/C][/ROW]
[ROW][C]122[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]123[/C][C]5[/C][C]0.857142857142857[/C][C]4.14285714285714[/C][/ROW]
[ROW][C]124[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]125[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]126[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]127[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]128[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]129[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]130[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[ROW][C]131[/C][C]0[/C][C]0.857142857142857[/C][C]-0.857142857142857[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=132843&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=132843&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
12519.46391752577325.53608247422681
22519.46391752577325.53608247422681
32119.46391752577321.53608247422681
42219.46391752577322.53608247422681
53519.463917525773215.5360824742268
62119.46391752577321.53608247422681
72519.46391752577325.53608247422681
82519.46391752577325.53608247422681
9019.4639175257732-19.4639175257732
102319.46391752577323.53608247422681
112919.46391752577329.53608247422681
122219.46391752577322.53608247422681
132419.46391752577324.53608247422681
141919.4639175257732-0.463917525773194
151419.4639175257732-5.46391752577319
162419.46391752577324.53608247422681
172519.46391752577325.53608247422681
182119.46391752577321.53608247422681
191419.4639175257732-5.46391752577319
202419.46391752577324.53608247422681
211619.4639175257732-3.46391752577319
221719.4639175257732-2.46391752577319
232419.46391752577324.53608247422681
241419.4639175257732-5.46391752577319
252419.46391752577324.53608247422681
262019.46391752577320.536082474226806
272019.46391752577320.536082474226806
282519.46391752577325.53608247422681
292519.46391752577325.53608247422681
302519.46391752577325.53608247422681
312519.46391752577325.53608247422681
322519.46391752577325.53608247422681
331519.4639175257732-4.46391752577319
34919.4639175257732-10.4639175257732
352919.46391752577329.53608247422681
362319.46391752577323.53608247422681
372519.46391752577325.53608247422681
382419.46391752577324.53608247422681
392319.46391752577323.53608247422681
402419.46391752577324.53608247422681
411019.4639175257732-9.46391752577319
421319.4639175257732-6.46391752577319
432519.46391752577325.53608247422681
442019.46391752577320.536082474226806
452319.46391752577323.53608247422681
461619.4639175257732-3.46391752577319
47019.4639175257732-19.4639175257732
481319.4639175257732-6.46391752577319
492319.46391752577323.53608247422681
502419.46391752577324.53608247422681
512419.46391752577324.53608247422681
522519.46391752577325.53608247422681
531719.4639175257732-2.46391752577319
54919.4639175257732-10.4639175257732
552519.46391752577325.53608247422681
561319.4639175257732-6.46391752577319
572119.46391752577321.53608247422681
581719.4639175257732-2.46391752577319
591019.4639175257732-9.46391752577319
601119.4639175257732-8.46391752577319
612519.46391752577325.53608247422681
622519.46391752577325.53608247422681
632219.46391752577322.53608247422681
641719.4639175257732-2.46391752577319
652519.46391752577325.53608247422681
66719.4639175257732-12.4639175257732
671919.4639175257732-0.463917525773194
681519.4639175257732-4.46391752577319
692519.46391752577325.53608247422681
701119.4639175257732-8.46391752577319
711919.4639175257732-0.463917525773194
722419.46391752577324.53608247422681
732619.46391752577326.53608247422681
742019.46391752577320.536082474226806
75519.4639175257732-14.4639175257732
761719.4639175257732-2.46391752577319
772419.46391752577324.53608247422681
781619.4639175257732-3.46391752577319
792519.46391752577325.53608247422681
802519.46391752577325.53608247422681
812319.46391752577323.53608247422681
822319.46391752577323.53608247422681
832519.46391752577325.53608247422681
841919.4639175257732-0.463917525773194
851019.4639175257732-9.46391752577319
862319.46391752577323.53608247422681
871219.4639175257732-7.46391752577319
88319.4639175257732-16.4639175257732
892519.46391752577325.53608247422681
901019.4639175257732-9.46391752577319
91719.4639175257732-12.4639175257732
921019.4639175257732-9.46391752577319
931119.4639175257732-8.46391752577319
942819.46391752577328.53608247422681
951919.4639175257732-0.463917525773194
962019.46391752577320.536082474226806
971919.4639175257732-0.463917525773194
981010.9-0.9
99010.9-10.9
100010.9-10.9
1011410.93.1
1022010.99.1
1032410.913.1
104110.9-9.9
105410.9-6.9
1061410.93.1
1071010.9-0.9
1081110.90.0999999999999996
1092510.914.1
110010.9-10.9
1111010.9-0.9
1122010.99.1
113410.9-6.9
114310.9-7.9
1152510.914.1
116410.9-6.9
1171910.98.1
11800.857142857142857-0.857142857142857
11900.857142857142857-0.857142857142857
12030.8571428571428572.14285714285714
12140.8571428571428573.14285714285714
12200.857142857142857-0.857142857142857
12350.8571428571428574.14285714285714
12400.857142857142857-0.857142857142857
12500.857142857142857-0.857142857142857
12600.857142857142857-0.857142857142857
12700.857142857142857-0.857142857142857
12800.857142857142857-0.857142857142857
12900.857142857142857-0.857142857142857
13000.857142857142857-0.857142857142857
13100.857142857142857-0.857142857142857



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