Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_regression_trees1.wasp
Title produced by softwareRecursive Partitioning (Regression Trees)
Date of computationTue, 13 Dec 2011 12:41:47 -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/13/t13237981273ubb1o5lwo4um7f.htm/, Retrieved Thu, 02 May 2024 21:20:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=154575, Retrieved Thu, 02 May 2024 21:20:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact96
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Recursive Partitioning (Regression Trees)] [] [2010-12-05 18:59:57] [b98453cac15ba1066b407e146608df68]
- R PD  [Recursive Partitioning (Regression Trees)] [] [2011-12-12 16:54:53] [0fa8c500575976cf9d2f7efbe256ddfb]
-   P       [Recursive Partitioning (Regression Trees)] [] [2011-12-13 17:41:47] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
13	15	2	9	42	12
12	18	1	9	51	15
15	11	1	9	42	14
12	16	1	8	46	10
10	12	2	14	41	10
12	17	2	14	49	9
15	15	1	15	47	18
9	19	1	11	33	11
11	18	1	8	47	12
11	10	2	14	42	11
11	14	1	9	32	15
15	18	1	6	53	17
7	18	2	14	41	14
11	14	2	8	41	24
11	14	1	11	33	7
10	12	1	16	37	18
14	16	2	11	43	11
6	13	2	13	33	14
11	16	1	7	49	18
15	14	2	9	42	12
11	9	1	15	43	11
12	9	2	16	37	5
14	17	1	10	43	12
15	13	2	14	42	11
9	15	2	12	43	10
13	17	1	6	46	11
13	16	2	4	33	15
16	12	1	12	42	16
13	11	1	14	40	14
12	16	2	13	44	8
14	17	1	9	42	13
11	17	2	14	52	18
9	16	1	14	44	17
16	13	2	10	45	10
12	12	1	14	46	13
10	12	2	8	36	11
13	16	1	8	45	12
16	14	1	10	49	12
14	12	2	9	43	12
15	12	1	9	43	9
5	14	1	11	37	18
8	8	2	15	32	7
11	15	1	9	45	14
16	14	2	9	45	16
17	11	1	10	45	12
9	13	2	8	45	17
9	14	1	8	31	12
13	15	1	14	33	9
10	16	1	10	44	12
6	10	2	11	49	9
12	11	2	9	44	13
8	12	2	12	41	10
14	14	2	13	44	10
12	15	1	14	38	11
11	16	1	15	33	13
16	9	1	11	47	13
8	11	2	9	37	13
15	15	1	8	48	6
7	15	2	7	40	7
16	13	2	10	50	13
14	17	1	10	54	21
16	17	1	10	43	11
9	15	1	9	54	9
14	13	1	13	44	18
11	15	2	11	47	9
13	13	2	8	33	9
15	15	1	10	45	15
5	10	2	14	33	9
15	15	1	11	44	11
13	14	1	10	47	14
11	15	2	16	45	14
11	16	2	11	43	8
12	7	1	16	43	12
12	13	1	6	33	8
12	15	1	11	46	11
14	13	1	14	47	17
6	16	1	9	47	16
7	16	2	9	0	11
14	12	1	11	43	13
13	15	2	12	46	11
12	14	2	20	36	8
9	11	2	11	42	11
12	14	1	12	44	13
16	15	1	9	47	13
10	9	2	10	41	15
14	15	1	14	47	15
10	17	1	8	46	12
16	16	1	10	47	12
15	14	1	8	46	15
12	15	2	7	46	12
10	16	1	11	36	21
8	10	1	14	30	24
8	17	2	8	48	11
11	15	2	14	45	12
13	15	1	10	49	15
16	13	1	9	55	17
14	14	2	16	11	12
11	16	1	8	52	16
4	11	2	12	33	13
14	18	1	8	47	15
9	14	1	16	33	11
14	14	1	13	44	15
8	14	1	13	42	12
8	14	1	8	55	14
11	15	1	9	42	12
12	14	1	11	46	20
14	15	1	9	46	17
15	15	2	8	47	12
16	12	1	14	33	11
16	19	1	7	53	11
14	13	2	11	42	9
12	15	1	11	44	12
14	17	2	10	55	11
8	9	2	14	40	8
16	15	2	10	46	12
12	16	1	9	53	15
12	17	1	8	44	10
11	11	1	14	35	14
4	15	1	12	40	16
16	11	1	12	44	18
15	15	1	6	46	6
10	17	1	16	45	16
13	14	1	8	53	11
15	12	2	13	45	20
12	14	1	12	48	10
14	15	2	11	46	16
7	16	1	12	55	15
19	16	1	9	47	14
12	14	1	11	43	7
12	11	2	16	38	9
8	14	2	10	40	12
12	13	1	13	47	12
10	13	1	11	47	13
8	14	2	11	42	17
10	16	2	9	53	11
14	16	2	11	43	11
16	12	1	12	44	14
13	11	1	10	42	13
16	13	1	13	51	12
9	15	1	9	54	11
14	13	2	14	41	15
14	16	2	14	51	11
12	13	1	8	51	13




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'George Udny Yule' @ yule.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 & 5 seconds \tabularnewline
R Server & 'George Udny Yule' @ yule.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=154575&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ yule.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=154575&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=154575&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 time5 seconds
R Server'George Udny Yule' @ yule.wessa.net







Goodness of Fit
Correlation0.4455
R-squared0.1984
RMSE6.564

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.4455[/C][/ROW]
[ROW][C]R-squared[/C][C]0.1984[/C][/ROW]
[ROW][C]RMSE[/C][C]6.564[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=154575&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=154575&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.4455
R-squared0.1984
RMSE6.564







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
14245.7833333333333-3.78333333333333
25145.78333333333335.21666666666667
34244.375-2.375
44645.78333333333330.216666666666669
54139.15384615384621.84615384615385
64945.78333333333333.21666666666667
74745.78333333333331.21666666666667
83345.7833333333333-12.7833333333333
94745.78333333333331.21666666666667
104239.15384615384622.84615384615385
113239.1538461538462-7.15384615384615
125345.78333333333337.21666666666667
134138.80952380952382.19047619047619
144139.15384615384621.84615384615385
153339.1538461538462-6.15384615384615
163736.11111111111110.888888888888886
174345.7833333333333-2.78333333333333
183338.8095238095238-5.80952380952381
194945.78333333333333.21666666666667
204244.375-2.375
214339.15384615384623.84615384615385
223736.11111111111110.888888888888886
234345.7833333333333-2.78333333333333
244244.375-2.375
254345.7833333333333-2.78333333333333
264645.78333333333330.216666666666669
273345.7833333333333-12.7833333333333
284244.375-2.375
294044.375-4.375
304445.7833333333333-1.78333333333333
314245.7833333333333-3.78333333333333
325245.78333333333336.21666666666667
334445.7833333333333-1.78333333333333
344544.3750.625
354644.3751.625
363639.1538461538462-3.15384615384615
374545.7833333333333-0.783333333333331
384944.3754.625
394344.375-1.375
404344.375-1.375
413738.8095238095238-1.80952380952381
423238.8095238095238-6.80952380952381
434545.7833333333333-0.783333333333331
444544.3750.625
454544.3750.625
464539.15384615384625.84615384615385
473139.1538461538462-8.15384615384615
483345.7833333333333-12.7833333333333
494445.7833333333333-1.78333333333333
504938.809523809523810.1904761904762
514444.375-0.375
524138.80952380952382.19047619047619
534444.375-0.375
543845.7833333333333-7.78333333333333
553345.7833333333333-12.7833333333333
564744.3752.625
573738.8095238095238-1.80952380952381
584845.78333333333332.21666666666667
594038.80952380952381.19047619047619
605044.3755.625
615445.78333333333338.21666666666667
624345.7833333333333-2.78333333333333
635445.78333333333338.21666666666667
644444.375-0.375
654745.78333333333331.21666666666667
663344.375-11.375
674545.7833333333333-0.783333333333331
683338.8095238095238-5.80952380952381
694445.7833333333333-1.78333333333333
704744.3752.625
714536.11111111111118.88888888888889
724345.7833333333333-2.78333333333333
734336.11111111111116.88888888888889
743344.375-11.375
754645.78333333333330.216666666666669
764744.3752.625
774738.80952380952388.19047619047619
78038.8095238095238-38.8095238095238
794344.375-1.375
804645.78333333333330.216666666666669
813636.1111111111111-0.111111111111114
824239.15384615384622.84615384615385
834444.375-0.375
844745.78333333333331.21666666666667
854139.15384615384621.84615384615385
864745.78333333333331.21666666666667
874645.78333333333330.216666666666669
884745.78333333333331.21666666666667
894644.3751.625
904645.78333333333330.216666666666669
913645.7833333333333-9.78333333333333
923038.8095238095238-8.80952380952381
934838.80952380952389.19047619047619
944545.7833333333333-0.783333333333331
954945.78333333333333.21666666666667
965544.37510.625
971136.1111111111111-25.1111111111111
985245.78333333333336.21666666666667
993338.8095238095238-5.80952380952381
1004745.78333333333331.21666666666667
1013336.1111111111111-3.11111111111111
1024444.375-0.375
1034238.80952380952383.19047619047619
1045538.809523809523816.1904761904762
1054245.7833333333333-3.78333333333333
1064644.3751.625
1074645.78333333333330.216666666666669
1084745.78333333333331.21666666666667
1093344.375-11.375
1105345.78333333333337.21666666666667
1114244.375-2.375
1124445.7833333333333-1.78333333333333
1135545.78333333333339.21666666666667
1144038.80952380952381.19047619047619
1154645.78333333333330.216666666666669
1165345.78333333333337.21666666666667
1174445.7833333333333-1.78333333333333
1183539.1538461538462-4.15384615384615
1194038.80952380952381.19047619047619
1204444.375-0.375
1214645.78333333333330.216666666666669
1224536.11111111111118.88888888888889
1235344.3758.625
1244544.3750.625
1254844.3753.625
1264645.78333333333330.216666666666669
1275538.809523809523816.1904761904762
1284745.78333333333331.21666666666667
1294344.375-1.375
1303836.11111111111111.88888888888889
1314038.80952380952381.19047619047619
1324744.3752.625
1334739.15384615384627.84615384615385
1344238.80952380952383.19047619047619
1355345.78333333333337.21666666666667
1364345.7833333333333-2.78333333333333
1374444.375-0.375
1384244.375-2.375
1395144.3756.625
1405445.78333333333338.21666666666667
1414144.375-3.375
1425145.78333333333335.21666666666667
1435144.3756.625

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 42 & 45.7833333333333 & -3.78333333333333 \tabularnewline
2 & 51 & 45.7833333333333 & 5.21666666666667 \tabularnewline
3 & 42 & 44.375 & -2.375 \tabularnewline
4 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
5 & 41 & 39.1538461538462 & 1.84615384615385 \tabularnewline
6 & 49 & 45.7833333333333 & 3.21666666666667 \tabularnewline
7 & 47 & 45.7833333333333 & 1.21666666666667 \tabularnewline
8 & 33 & 45.7833333333333 & -12.7833333333333 \tabularnewline
9 & 47 & 45.7833333333333 & 1.21666666666667 \tabularnewline
10 & 42 & 39.1538461538462 & 2.84615384615385 \tabularnewline
11 & 32 & 39.1538461538462 & -7.15384615384615 \tabularnewline
12 & 53 & 45.7833333333333 & 7.21666666666667 \tabularnewline
13 & 41 & 38.8095238095238 & 2.19047619047619 \tabularnewline
14 & 41 & 39.1538461538462 & 1.84615384615385 \tabularnewline
15 & 33 & 39.1538461538462 & -6.15384615384615 \tabularnewline
16 & 37 & 36.1111111111111 & 0.888888888888886 \tabularnewline
17 & 43 & 45.7833333333333 & -2.78333333333333 \tabularnewline
18 & 33 & 38.8095238095238 & -5.80952380952381 \tabularnewline
19 & 49 & 45.7833333333333 & 3.21666666666667 \tabularnewline
20 & 42 & 44.375 & -2.375 \tabularnewline
21 & 43 & 39.1538461538462 & 3.84615384615385 \tabularnewline
22 & 37 & 36.1111111111111 & 0.888888888888886 \tabularnewline
23 & 43 & 45.7833333333333 & -2.78333333333333 \tabularnewline
24 & 42 & 44.375 & -2.375 \tabularnewline
25 & 43 & 45.7833333333333 & -2.78333333333333 \tabularnewline
26 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
27 & 33 & 45.7833333333333 & -12.7833333333333 \tabularnewline
28 & 42 & 44.375 & -2.375 \tabularnewline
29 & 40 & 44.375 & -4.375 \tabularnewline
30 & 44 & 45.7833333333333 & -1.78333333333333 \tabularnewline
31 & 42 & 45.7833333333333 & -3.78333333333333 \tabularnewline
32 & 52 & 45.7833333333333 & 6.21666666666667 \tabularnewline
33 & 44 & 45.7833333333333 & -1.78333333333333 \tabularnewline
34 & 45 & 44.375 & 0.625 \tabularnewline
35 & 46 & 44.375 & 1.625 \tabularnewline
36 & 36 & 39.1538461538462 & -3.15384615384615 \tabularnewline
37 & 45 & 45.7833333333333 & -0.783333333333331 \tabularnewline
38 & 49 & 44.375 & 4.625 \tabularnewline
39 & 43 & 44.375 & -1.375 \tabularnewline
40 & 43 & 44.375 & -1.375 \tabularnewline
41 & 37 & 38.8095238095238 & -1.80952380952381 \tabularnewline
42 & 32 & 38.8095238095238 & -6.80952380952381 \tabularnewline
43 & 45 & 45.7833333333333 & -0.783333333333331 \tabularnewline
44 & 45 & 44.375 & 0.625 \tabularnewline
45 & 45 & 44.375 & 0.625 \tabularnewline
46 & 45 & 39.1538461538462 & 5.84615384615385 \tabularnewline
47 & 31 & 39.1538461538462 & -8.15384615384615 \tabularnewline
48 & 33 & 45.7833333333333 & -12.7833333333333 \tabularnewline
49 & 44 & 45.7833333333333 & -1.78333333333333 \tabularnewline
50 & 49 & 38.8095238095238 & 10.1904761904762 \tabularnewline
51 & 44 & 44.375 & -0.375 \tabularnewline
52 & 41 & 38.8095238095238 & 2.19047619047619 \tabularnewline
53 & 44 & 44.375 & -0.375 \tabularnewline
54 & 38 & 45.7833333333333 & -7.78333333333333 \tabularnewline
55 & 33 & 45.7833333333333 & -12.7833333333333 \tabularnewline
56 & 47 & 44.375 & 2.625 \tabularnewline
57 & 37 & 38.8095238095238 & -1.80952380952381 \tabularnewline
58 & 48 & 45.7833333333333 & 2.21666666666667 \tabularnewline
59 & 40 & 38.8095238095238 & 1.19047619047619 \tabularnewline
60 & 50 & 44.375 & 5.625 \tabularnewline
61 & 54 & 45.7833333333333 & 8.21666666666667 \tabularnewline
62 & 43 & 45.7833333333333 & -2.78333333333333 \tabularnewline
63 & 54 & 45.7833333333333 & 8.21666666666667 \tabularnewline
64 & 44 & 44.375 & -0.375 \tabularnewline
65 & 47 & 45.7833333333333 & 1.21666666666667 \tabularnewline
66 & 33 & 44.375 & -11.375 \tabularnewline
67 & 45 & 45.7833333333333 & -0.783333333333331 \tabularnewline
68 & 33 & 38.8095238095238 & -5.80952380952381 \tabularnewline
69 & 44 & 45.7833333333333 & -1.78333333333333 \tabularnewline
70 & 47 & 44.375 & 2.625 \tabularnewline
71 & 45 & 36.1111111111111 & 8.88888888888889 \tabularnewline
72 & 43 & 45.7833333333333 & -2.78333333333333 \tabularnewline
73 & 43 & 36.1111111111111 & 6.88888888888889 \tabularnewline
74 & 33 & 44.375 & -11.375 \tabularnewline
75 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
76 & 47 & 44.375 & 2.625 \tabularnewline
77 & 47 & 38.8095238095238 & 8.19047619047619 \tabularnewline
78 & 0 & 38.8095238095238 & -38.8095238095238 \tabularnewline
79 & 43 & 44.375 & -1.375 \tabularnewline
80 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
81 & 36 & 36.1111111111111 & -0.111111111111114 \tabularnewline
82 & 42 & 39.1538461538462 & 2.84615384615385 \tabularnewline
83 & 44 & 44.375 & -0.375 \tabularnewline
84 & 47 & 45.7833333333333 & 1.21666666666667 \tabularnewline
85 & 41 & 39.1538461538462 & 1.84615384615385 \tabularnewline
86 & 47 & 45.7833333333333 & 1.21666666666667 \tabularnewline
87 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
88 & 47 & 45.7833333333333 & 1.21666666666667 \tabularnewline
89 & 46 & 44.375 & 1.625 \tabularnewline
90 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
91 & 36 & 45.7833333333333 & -9.78333333333333 \tabularnewline
92 & 30 & 38.8095238095238 & -8.80952380952381 \tabularnewline
93 & 48 & 38.8095238095238 & 9.19047619047619 \tabularnewline
94 & 45 & 45.7833333333333 & -0.783333333333331 \tabularnewline
95 & 49 & 45.7833333333333 & 3.21666666666667 \tabularnewline
96 & 55 & 44.375 & 10.625 \tabularnewline
97 & 11 & 36.1111111111111 & -25.1111111111111 \tabularnewline
98 & 52 & 45.7833333333333 & 6.21666666666667 \tabularnewline
99 & 33 & 38.8095238095238 & -5.80952380952381 \tabularnewline
100 & 47 & 45.7833333333333 & 1.21666666666667 \tabularnewline
101 & 33 & 36.1111111111111 & -3.11111111111111 \tabularnewline
102 & 44 & 44.375 & -0.375 \tabularnewline
103 & 42 & 38.8095238095238 & 3.19047619047619 \tabularnewline
104 & 55 & 38.8095238095238 & 16.1904761904762 \tabularnewline
105 & 42 & 45.7833333333333 & -3.78333333333333 \tabularnewline
106 & 46 & 44.375 & 1.625 \tabularnewline
107 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
108 & 47 & 45.7833333333333 & 1.21666666666667 \tabularnewline
109 & 33 & 44.375 & -11.375 \tabularnewline
110 & 53 & 45.7833333333333 & 7.21666666666667 \tabularnewline
111 & 42 & 44.375 & -2.375 \tabularnewline
112 & 44 & 45.7833333333333 & -1.78333333333333 \tabularnewline
113 & 55 & 45.7833333333333 & 9.21666666666667 \tabularnewline
114 & 40 & 38.8095238095238 & 1.19047619047619 \tabularnewline
115 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
116 & 53 & 45.7833333333333 & 7.21666666666667 \tabularnewline
117 & 44 & 45.7833333333333 & -1.78333333333333 \tabularnewline
118 & 35 & 39.1538461538462 & -4.15384615384615 \tabularnewline
119 & 40 & 38.8095238095238 & 1.19047619047619 \tabularnewline
120 & 44 & 44.375 & -0.375 \tabularnewline
121 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
122 & 45 & 36.1111111111111 & 8.88888888888889 \tabularnewline
123 & 53 & 44.375 & 8.625 \tabularnewline
124 & 45 & 44.375 & 0.625 \tabularnewline
125 & 48 & 44.375 & 3.625 \tabularnewline
126 & 46 & 45.7833333333333 & 0.216666666666669 \tabularnewline
127 & 55 & 38.8095238095238 & 16.1904761904762 \tabularnewline
128 & 47 & 45.7833333333333 & 1.21666666666667 \tabularnewline
129 & 43 & 44.375 & -1.375 \tabularnewline
130 & 38 & 36.1111111111111 & 1.88888888888889 \tabularnewline
131 & 40 & 38.8095238095238 & 1.19047619047619 \tabularnewline
132 & 47 & 44.375 & 2.625 \tabularnewline
133 & 47 & 39.1538461538462 & 7.84615384615385 \tabularnewline
134 & 42 & 38.8095238095238 & 3.19047619047619 \tabularnewline
135 & 53 & 45.7833333333333 & 7.21666666666667 \tabularnewline
136 & 43 & 45.7833333333333 & -2.78333333333333 \tabularnewline
137 & 44 & 44.375 & -0.375 \tabularnewline
138 & 42 & 44.375 & -2.375 \tabularnewline
139 & 51 & 44.375 & 6.625 \tabularnewline
140 & 54 & 45.7833333333333 & 8.21666666666667 \tabularnewline
141 & 41 & 44.375 & -3.375 \tabularnewline
142 & 51 & 45.7833333333333 & 5.21666666666667 \tabularnewline
143 & 51 & 44.375 & 6.625 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=154575&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]42[/C][C]45.7833333333333[/C][C]-3.78333333333333[/C][/ROW]
[ROW][C]2[/C][C]51[/C][C]45.7833333333333[/C][C]5.21666666666667[/C][/ROW]
[ROW][C]3[/C][C]42[/C][C]44.375[/C][C]-2.375[/C][/ROW]
[ROW][C]4[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]5[/C][C]41[/C][C]39.1538461538462[/C][C]1.84615384615385[/C][/ROW]
[ROW][C]6[/C][C]49[/C][C]45.7833333333333[/C][C]3.21666666666667[/C][/ROW]
[ROW][C]7[/C][C]47[/C][C]45.7833333333333[/C][C]1.21666666666667[/C][/ROW]
[ROW][C]8[/C][C]33[/C][C]45.7833333333333[/C][C]-12.7833333333333[/C][/ROW]
[ROW][C]9[/C][C]47[/C][C]45.7833333333333[/C][C]1.21666666666667[/C][/ROW]
[ROW][C]10[/C][C]42[/C][C]39.1538461538462[/C][C]2.84615384615385[/C][/ROW]
[ROW][C]11[/C][C]32[/C][C]39.1538461538462[/C][C]-7.15384615384615[/C][/ROW]
[ROW][C]12[/C][C]53[/C][C]45.7833333333333[/C][C]7.21666666666667[/C][/ROW]
[ROW][C]13[/C][C]41[/C][C]38.8095238095238[/C][C]2.19047619047619[/C][/ROW]
[ROW][C]14[/C][C]41[/C][C]39.1538461538462[/C][C]1.84615384615385[/C][/ROW]
[ROW][C]15[/C][C]33[/C][C]39.1538461538462[/C][C]-6.15384615384615[/C][/ROW]
[ROW][C]16[/C][C]37[/C][C]36.1111111111111[/C][C]0.888888888888886[/C][/ROW]
[ROW][C]17[/C][C]43[/C][C]45.7833333333333[/C][C]-2.78333333333333[/C][/ROW]
[ROW][C]18[/C][C]33[/C][C]38.8095238095238[/C][C]-5.80952380952381[/C][/ROW]
[ROW][C]19[/C][C]49[/C][C]45.7833333333333[/C][C]3.21666666666667[/C][/ROW]
[ROW][C]20[/C][C]42[/C][C]44.375[/C][C]-2.375[/C][/ROW]
[ROW][C]21[/C][C]43[/C][C]39.1538461538462[/C][C]3.84615384615385[/C][/ROW]
[ROW][C]22[/C][C]37[/C][C]36.1111111111111[/C][C]0.888888888888886[/C][/ROW]
[ROW][C]23[/C][C]43[/C][C]45.7833333333333[/C][C]-2.78333333333333[/C][/ROW]
[ROW][C]24[/C][C]42[/C][C]44.375[/C][C]-2.375[/C][/ROW]
[ROW][C]25[/C][C]43[/C][C]45.7833333333333[/C][C]-2.78333333333333[/C][/ROW]
[ROW][C]26[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]27[/C][C]33[/C][C]45.7833333333333[/C][C]-12.7833333333333[/C][/ROW]
[ROW][C]28[/C][C]42[/C][C]44.375[/C][C]-2.375[/C][/ROW]
[ROW][C]29[/C][C]40[/C][C]44.375[/C][C]-4.375[/C][/ROW]
[ROW][C]30[/C][C]44[/C][C]45.7833333333333[/C][C]-1.78333333333333[/C][/ROW]
[ROW][C]31[/C][C]42[/C][C]45.7833333333333[/C][C]-3.78333333333333[/C][/ROW]
[ROW][C]32[/C][C]52[/C][C]45.7833333333333[/C][C]6.21666666666667[/C][/ROW]
[ROW][C]33[/C][C]44[/C][C]45.7833333333333[/C][C]-1.78333333333333[/C][/ROW]
[ROW][C]34[/C][C]45[/C][C]44.375[/C][C]0.625[/C][/ROW]
[ROW][C]35[/C][C]46[/C][C]44.375[/C][C]1.625[/C][/ROW]
[ROW][C]36[/C][C]36[/C][C]39.1538461538462[/C][C]-3.15384615384615[/C][/ROW]
[ROW][C]37[/C][C]45[/C][C]45.7833333333333[/C][C]-0.783333333333331[/C][/ROW]
[ROW][C]38[/C][C]49[/C][C]44.375[/C][C]4.625[/C][/ROW]
[ROW][C]39[/C][C]43[/C][C]44.375[/C][C]-1.375[/C][/ROW]
[ROW][C]40[/C][C]43[/C][C]44.375[/C][C]-1.375[/C][/ROW]
[ROW][C]41[/C][C]37[/C][C]38.8095238095238[/C][C]-1.80952380952381[/C][/ROW]
[ROW][C]42[/C][C]32[/C][C]38.8095238095238[/C][C]-6.80952380952381[/C][/ROW]
[ROW][C]43[/C][C]45[/C][C]45.7833333333333[/C][C]-0.783333333333331[/C][/ROW]
[ROW][C]44[/C][C]45[/C][C]44.375[/C][C]0.625[/C][/ROW]
[ROW][C]45[/C][C]45[/C][C]44.375[/C][C]0.625[/C][/ROW]
[ROW][C]46[/C][C]45[/C][C]39.1538461538462[/C][C]5.84615384615385[/C][/ROW]
[ROW][C]47[/C][C]31[/C][C]39.1538461538462[/C][C]-8.15384615384615[/C][/ROW]
[ROW][C]48[/C][C]33[/C][C]45.7833333333333[/C][C]-12.7833333333333[/C][/ROW]
[ROW][C]49[/C][C]44[/C][C]45.7833333333333[/C][C]-1.78333333333333[/C][/ROW]
[ROW][C]50[/C][C]49[/C][C]38.8095238095238[/C][C]10.1904761904762[/C][/ROW]
[ROW][C]51[/C][C]44[/C][C]44.375[/C][C]-0.375[/C][/ROW]
[ROW][C]52[/C][C]41[/C][C]38.8095238095238[/C][C]2.19047619047619[/C][/ROW]
[ROW][C]53[/C][C]44[/C][C]44.375[/C][C]-0.375[/C][/ROW]
[ROW][C]54[/C][C]38[/C][C]45.7833333333333[/C][C]-7.78333333333333[/C][/ROW]
[ROW][C]55[/C][C]33[/C][C]45.7833333333333[/C][C]-12.7833333333333[/C][/ROW]
[ROW][C]56[/C][C]47[/C][C]44.375[/C][C]2.625[/C][/ROW]
[ROW][C]57[/C][C]37[/C][C]38.8095238095238[/C][C]-1.80952380952381[/C][/ROW]
[ROW][C]58[/C][C]48[/C][C]45.7833333333333[/C][C]2.21666666666667[/C][/ROW]
[ROW][C]59[/C][C]40[/C][C]38.8095238095238[/C][C]1.19047619047619[/C][/ROW]
[ROW][C]60[/C][C]50[/C][C]44.375[/C][C]5.625[/C][/ROW]
[ROW][C]61[/C][C]54[/C][C]45.7833333333333[/C][C]8.21666666666667[/C][/ROW]
[ROW][C]62[/C][C]43[/C][C]45.7833333333333[/C][C]-2.78333333333333[/C][/ROW]
[ROW][C]63[/C][C]54[/C][C]45.7833333333333[/C][C]8.21666666666667[/C][/ROW]
[ROW][C]64[/C][C]44[/C][C]44.375[/C][C]-0.375[/C][/ROW]
[ROW][C]65[/C][C]47[/C][C]45.7833333333333[/C][C]1.21666666666667[/C][/ROW]
[ROW][C]66[/C][C]33[/C][C]44.375[/C][C]-11.375[/C][/ROW]
[ROW][C]67[/C][C]45[/C][C]45.7833333333333[/C][C]-0.783333333333331[/C][/ROW]
[ROW][C]68[/C][C]33[/C][C]38.8095238095238[/C][C]-5.80952380952381[/C][/ROW]
[ROW][C]69[/C][C]44[/C][C]45.7833333333333[/C][C]-1.78333333333333[/C][/ROW]
[ROW][C]70[/C][C]47[/C][C]44.375[/C][C]2.625[/C][/ROW]
[ROW][C]71[/C][C]45[/C][C]36.1111111111111[/C][C]8.88888888888889[/C][/ROW]
[ROW][C]72[/C][C]43[/C][C]45.7833333333333[/C][C]-2.78333333333333[/C][/ROW]
[ROW][C]73[/C][C]43[/C][C]36.1111111111111[/C][C]6.88888888888889[/C][/ROW]
[ROW][C]74[/C][C]33[/C][C]44.375[/C][C]-11.375[/C][/ROW]
[ROW][C]75[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]76[/C][C]47[/C][C]44.375[/C][C]2.625[/C][/ROW]
[ROW][C]77[/C][C]47[/C][C]38.8095238095238[/C][C]8.19047619047619[/C][/ROW]
[ROW][C]78[/C][C]0[/C][C]38.8095238095238[/C][C]-38.8095238095238[/C][/ROW]
[ROW][C]79[/C][C]43[/C][C]44.375[/C][C]-1.375[/C][/ROW]
[ROW][C]80[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]81[/C][C]36[/C][C]36.1111111111111[/C][C]-0.111111111111114[/C][/ROW]
[ROW][C]82[/C][C]42[/C][C]39.1538461538462[/C][C]2.84615384615385[/C][/ROW]
[ROW][C]83[/C][C]44[/C][C]44.375[/C][C]-0.375[/C][/ROW]
[ROW][C]84[/C][C]47[/C][C]45.7833333333333[/C][C]1.21666666666667[/C][/ROW]
[ROW][C]85[/C][C]41[/C][C]39.1538461538462[/C][C]1.84615384615385[/C][/ROW]
[ROW][C]86[/C][C]47[/C][C]45.7833333333333[/C][C]1.21666666666667[/C][/ROW]
[ROW][C]87[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]88[/C][C]47[/C][C]45.7833333333333[/C][C]1.21666666666667[/C][/ROW]
[ROW][C]89[/C][C]46[/C][C]44.375[/C][C]1.625[/C][/ROW]
[ROW][C]90[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]91[/C][C]36[/C][C]45.7833333333333[/C][C]-9.78333333333333[/C][/ROW]
[ROW][C]92[/C][C]30[/C][C]38.8095238095238[/C][C]-8.80952380952381[/C][/ROW]
[ROW][C]93[/C][C]48[/C][C]38.8095238095238[/C][C]9.19047619047619[/C][/ROW]
[ROW][C]94[/C][C]45[/C][C]45.7833333333333[/C][C]-0.783333333333331[/C][/ROW]
[ROW][C]95[/C][C]49[/C][C]45.7833333333333[/C][C]3.21666666666667[/C][/ROW]
[ROW][C]96[/C][C]55[/C][C]44.375[/C][C]10.625[/C][/ROW]
[ROW][C]97[/C][C]11[/C][C]36.1111111111111[/C][C]-25.1111111111111[/C][/ROW]
[ROW][C]98[/C][C]52[/C][C]45.7833333333333[/C][C]6.21666666666667[/C][/ROW]
[ROW][C]99[/C][C]33[/C][C]38.8095238095238[/C][C]-5.80952380952381[/C][/ROW]
[ROW][C]100[/C][C]47[/C][C]45.7833333333333[/C][C]1.21666666666667[/C][/ROW]
[ROW][C]101[/C][C]33[/C][C]36.1111111111111[/C][C]-3.11111111111111[/C][/ROW]
[ROW][C]102[/C][C]44[/C][C]44.375[/C][C]-0.375[/C][/ROW]
[ROW][C]103[/C][C]42[/C][C]38.8095238095238[/C][C]3.19047619047619[/C][/ROW]
[ROW][C]104[/C][C]55[/C][C]38.8095238095238[/C][C]16.1904761904762[/C][/ROW]
[ROW][C]105[/C][C]42[/C][C]45.7833333333333[/C][C]-3.78333333333333[/C][/ROW]
[ROW][C]106[/C][C]46[/C][C]44.375[/C][C]1.625[/C][/ROW]
[ROW][C]107[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]108[/C][C]47[/C][C]45.7833333333333[/C][C]1.21666666666667[/C][/ROW]
[ROW][C]109[/C][C]33[/C][C]44.375[/C][C]-11.375[/C][/ROW]
[ROW][C]110[/C][C]53[/C][C]45.7833333333333[/C][C]7.21666666666667[/C][/ROW]
[ROW][C]111[/C][C]42[/C][C]44.375[/C][C]-2.375[/C][/ROW]
[ROW][C]112[/C][C]44[/C][C]45.7833333333333[/C][C]-1.78333333333333[/C][/ROW]
[ROW][C]113[/C][C]55[/C][C]45.7833333333333[/C][C]9.21666666666667[/C][/ROW]
[ROW][C]114[/C][C]40[/C][C]38.8095238095238[/C][C]1.19047619047619[/C][/ROW]
[ROW][C]115[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]116[/C][C]53[/C][C]45.7833333333333[/C][C]7.21666666666667[/C][/ROW]
[ROW][C]117[/C][C]44[/C][C]45.7833333333333[/C][C]-1.78333333333333[/C][/ROW]
[ROW][C]118[/C][C]35[/C][C]39.1538461538462[/C][C]-4.15384615384615[/C][/ROW]
[ROW][C]119[/C][C]40[/C][C]38.8095238095238[/C][C]1.19047619047619[/C][/ROW]
[ROW][C]120[/C][C]44[/C][C]44.375[/C][C]-0.375[/C][/ROW]
[ROW][C]121[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]122[/C][C]45[/C][C]36.1111111111111[/C][C]8.88888888888889[/C][/ROW]
[ROW][C]123[/C][C]53[/C][C]44.375[/C][C]8.625[/C][/ROW]
[ROW][C]124[/C][C]45[/C][C]44.375[/C][C]0.625[/C][/ROW]
[ROW][C]125[/C][C]48[/C][C]44.375[/C][C]3.625[/C][/ROW]
[ROW][C]126[/C][C]46[/C][C]45.7833333333333[/C][C]0.216666666666669[/C][/ROW]
[ROW][C]127[/C][C]55[/C][C]38.8095238095238[/C][C]16.1904761904762[/C][/ROW]
[ROW][C]128[/C][C]47[/C][C]45.7833333333333[/C][C]1.21666666666667[/C][/ROW]
[ROW][C]129[/C][C]43[/C][C]44.375[/C][C]-1.375[/C][/ROW]
[ROW][C]130[/C][C]38[/C][C]36.1111111111111[/C][C]1.88888888888889[/C][/ROW]
[ROW][C]131[/C][C]40[/C][C]38.8095238095238[/C][C]1.19047619047619[/C][/ROW]
[ROW][C]132[/C][C]47[/C][C]44.375[/C][C]2.625[/C][/ROW]
[ROW][C]133[/C][C]47[/C][C]39.1538461538462[/C][C]7.84615384615385[/C][/ROW]
[ROW][C]134[/C][C]42[/C][C]38.8095238095238[/C][C]3.19047619047619[/C][/ROW]
[ROW][C]135[/C][C]53[/C][C]45.7833333333333[/C][C]7.21666666666667[/C][/ROW]
[ROW][C]136[/C][C]43[/C][C]45.7833333333333[/C][C]-2.78333333333333[/C][/ROW]
[ROW][C]137[/C][C]44[/C][C]44.375[/C][C]-0.375[/C][/ROW]
[ROW][C]138[/C][C]42[/C][C]44.375[/C][C]-2.375[/C][/ROW]
[ROW][C]139[/C][C]51[/C][C]44.375[/C][C]6.625[/C][/ROW]
[ROW][C]140[/C][C]54[/C][C]45.7833333333333[/C][C]8.21666666666667[/C][/ROW]
[ROW][C]141[/C][C]41[/C][C]44.375[/C][C]-3.375[/C][/ROW]
[ROW][C]142[/C][C]51[/C][C]45.7833333333333[/C][C]5.21666666666667[/C][/ROW]
[ROW][C]143[/C][C]51[/C][C]44.375[/C][C]6.625[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=154575&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=154575&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
14245.7833333333333-3.78333333333333
25145.78333333333335.21666666666667
34244.375-2.375
44645.78333333333330.216666666666669
54139.15384615384621.84615384615385
64945.78333333333333.21666666666667
74745.78333333333331.21666666666667
83345.7833333333333-12.7833333333333
94745.78333333333331.21666666666667
104239.15384615384622.84615384615385
113239.1538461538462-7.15384615384615
125345.78333333333337.21666666666667
134138.80952380952382.19047619047619
144139.15384615384621.84615384615385
153339.1538461538462-6.15384615384615
163736.11111111111110.888888888888886
174345.7833333333333-2.78333333333333
183338.8095238095238-5.80952380952381
194945.78333333333333.21666666666667
204244.375-2.375
214339.15384615384623.84615384615385
223736.11111111111110.888888888888886
234345.7833333333333-2.78333333333333
244244.375-2.375
254345.7833333333333-2.78333333333333
264645.78333333333330.216666666666669
273345.7833333333333-12.7833333333333
284244.375-2.375
294044.375-4.375
304445.7833333333333-1.78333333333333
314245.7833333333333-3.78333333333333
325245.78333333333336.21666666666667
334445.7833333333333-1.78333333333333
344544.3750.625
354644.3751.625
363639.1538461538462-3.15384615384615
374545.7833333333333-0.783333333333331
384944.3754.625
394344.375-1.375
404344.375-1.375
413738.8095238095238-1.80952380952381
423238.8095238095238-6.80952380952381
434545.7833333333333-0.783333333333331
444544.3750.625
454544.3750.625
464539.15384615384625.84615384615385
473139.1538461538462-8.15384615384615
483345.7833333333333-12.7833333333333
494445.7833333333333-1.78333333333333
504938.809523809523810.1904761904762
514444.375-0.375
524138.80952380952382.19047619047619
534444.375-0.375
543845.7833333333333-7.78333333333333
553345.7833333333333-12.7833333333333
564744.3752.625
573738.8095238095238-1.80952380952381
584845.78333333333332.21666666666667
594038.80952380952381.19047619047619
605044.3755.625
615445.78333333333338.21666666666667
624345.7833333333333-2.78333333333333
635445.78333333333338.21666666666667
644444.375-0.375
654745.78333333333331.21666666666667
663344.375-11.375
674545.7833333333333-0.783333333333331
683338.8095238095238-5.80952380952381
694445.7833333333333-1.78333333333333
704744.3752.625
714536.11111111111118.88888888888889
724345.7833333333333-2.78333333333333
734336.11111111111116.88888888888889
743344.375-11.375
754645.78333333333330.216666666666669
764744.3752.625
774738.80952380952388.19047619047619
78038.8095238095238-38.8095238095238
794344.375-1.375
804645.78333333333330.216666666666669
813636.1111111111111-0.111111111111114
824239.15384615384622.84615384615385
834444.375-0.375
844745.78333333333331.21666666666667
854139.15384615384621.84615384615385
864745.78333333333331.21666666666667
874645.78333333333330.216666666666669
884745.78333333333331.21666666666667
894644.3751.625
904645.78333333333330.216666666666669
913645.7833333333333-9.78333333333333
923038.8095238095238-8.80952380952381
934838.80952380952389.19047619047619
944545.7833333333333-0.783333333333331
954945.78333333333333.21666666666667
965544.37510.625
971136.1111111111111-25.1111111111111
985245.78333333333336.21666666666667
993338.8095238095238-5.80952380952381
1004745.78333333333331.21666666666667
1013336.1111111111111-3.11111111111111
1024444.375-0.375
1034238.80952380952383.19047619047619
1045538.809523809523816.1904761904762
1054245.7833333333333-3.78333333333333
1064644.3751.625
1074645.78333333333330.216666666666669
1084745.78333333333331.21666666666667
1093344.375-11.375
1105345.78333333333337.21666666666667
1114244.375-2.375
1124445.7833333333333-1.78333333333333
1135545.78333333333339.21666666666667
1144038.80952380952381.19047619047619
1154645.78333333333330.216666666666669
1165345.78333333333337.21666666666667
1174445.7833333333333-1.78333333333333
1183539.1538461538462-4.15384615384615
1194038.80952380952381.19047619047619
1204444.375-0.375
1214645.78333333333330.216666666666669
1224536.11111111111118.88888888888889
1235344.3758.625
1244544.3750.625
1254844.3753.625
1264645.78333333333330.216666666666669
1275538.809523809523816.1904761904762
1284745.78333333333331.21666666666667
1294344.375-1.375
1303836.11111111111111.88888888888889
1314038.80952380952381.19047619047619
1324744.3752.625
1334739.15384615384627.84615384615385
1344238.80952380952383.19047619047619
1355345.78333333333337.21666666666667
1364345.7833333333333-2.78333333333333
1374444.375-0.375
1384244.375-2.375
1395144.3756.625
1405445.78333333333338.21666666666667
1414144.375-3.375
1425145.78333333333335.21666666666667
1435144.3756.625



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