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, 15 Dec 2010 19:17:31 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/15/t1292440560dmqav1exv6fq36i.htm/, Retrieved Fri, 03 May 2024 14:58:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=110673, Retrieved Fri, 03 May 2024 14:58:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact89
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]
-   PD  [Recursive Partitioning (Regression Trees)] [] [2010-12-11 08:35:36] [f730b099f190102bcd41f590a8dae16d]
-   PD    [Recursive Partitioning (Regression Trees)] [] [2010-12-11 10:06:28] [f730b099f190102bcd41f590a8dae16d]
-           [Recursive Partitioning (Regression Trees)] [] [2010-12-11 10:24:39] [f730b099f190102bcd41f590a8dae16d]
-   PD          [Recursive Partitioning (Regression Trees)] [recursive partini...] [2010-12-15 19:17:31] [6ff6d3268c67efbfcd6d6506b34b66fb] [Current]
-   P             [Recursive Partitioning (Regression Trees)] [recursive partini...] [2010-12-17 08:49:50] [f730b099f190102bcd41f590a8dae16d]
-   P               [Recursive Partitioning (Regression Trees)] [cross validation ...] [2010-12-17 09:58:25] [f730b099f190102bcd41f590a8dae16d]
Feedback Forum

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 6 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110673&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110673&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110673&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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







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=110673&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=110673&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110673&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
15145.78333333333335.21666666666667
24244.375-2.375
34645.78333333333330.216666666666669
44745.78333333333331.21666666666667
53345.7833333333333-12.7833333333333
64745.78333333333331.21666666666667
73239.1538461538462-7.15384615384615
85345.78333333333337.21666666666667
93339.1538461538462-6.15384615384615
103736.11111111111110.888888888888886
114945.78333333333333.21666666666667
124339.15384615384623.84615384615385
134345.7833333333333-2.78333333333333
144645.78333333333330.216666666666669
154244.375-2.375
164044.375-4.375
174245.7833333333333-3.78333333333333
184445.7833333333333-1.78333333333333
194644.3751.625
204545.7833333333333-0.783333333333331
214944.3754.625
224344.375-1.375
233738.8095238095238-1.80952380952381
244545.7833333333333-0.783333333333331
254544.3750.625
263139.1538461538462-8.15384615384615
273345.7833333333333-12.7833333333333
284445.7833333333333-1.78333333333333
293845.7833333333333-7.78333333333333
303345.7833333333333-12.7833333333333
314744.3752.625
324845.78333333333332.21666666666667
335445.78333333333338.21666666666667
344345.7833333333333-2.78333333333333
355445.78333333333338.21666666666667
364444.375-0.375
374545.7833333333333-0.783333333333331
384445.7833333333333-1.78333333333333
394744.3752.625
404336.11111111111116.88888888888889
413344.375-11.375
424645.78333333333330.216666666666669
434744.3752.625
444738.80952380952388.19047619047619
454344.375-1.375
464444.375-0.375
474745.78333333333331.21666666666667
484745.78333333333331.21666666666667
494645.78333333333330.216666666666669
504745.78333333333331.21666666666667
514644.3751.625
523645.7833333333333-9.78333333333333
533038.8095238095238-8.80952380952381
544945.78333333333333.21666666666667
555544.37510.625
565245.78333333333336.21666666666667
574745.78333333333331.21666666666667
583336.1111111111111-3.11111111111111
594444.375-0.375
604238.80952380952383.19047619047619
615538.809523809523816.1904761904762
624245.7833333333333-3.78333333333333
634644.3751.625
644645.78333333333330.216666666666669
653344.375-11.375
665345.78333333333337.21666666666667
674445.7833333333333-1.78333333333333
685345.78333333333337.21666666666667
694445.7833333333333-1.78333333333333
703539.1538461538462-4.15384615384615
714038.80952380952381.19047619047619
724444.375-0.375
734645.78333333333330.216666666666669
744536.11111111111118.88888888888889
755344.3758.625
764844.3753.625
775538.809523809523816.1904761904762
784745.78333333333331.21666666666667
794344.375-1.375
804744.3752.625
814739.15384615384627.84615384615385
824444.375-0.375
834244.375-2.375
845144.3756.625
855445.78333333333338.21666666666667
865144.3756.625
874245.7833333333333-3.78333333333333
884139.15384615384621.84615384615385
894945.78333333333333.21666666666667
904239.15384615384622.84615384615385
914138.80952380952382.19047619047619
924139.15384615384621.84615384615385
934345.7833333333333-2.78333333333333
943338.8095238095238-5.80952380952381
954244.375-2.375
963736.11111111111110.888888888888886
974244.375-2.375
984345.7833333333333-2.78333333333333
993345.7833333333333-12.7833333333333
1004445.7833333333333-1.78333333333333
1015245.78333333333336.21666666666667
1024544.3750.625
1033639.1538461538462-3.15384615384615
1044344.375-1.375
1053238.8095238095238-6.80952380952381
1064544.3750.625
1074539.15384615384625.84615384615385
1084938.809523809523810.1904761904762
1094444.375-0.375
1104138.80952380952382.19047619047619
1114444.375-0.375
1123738.8095238095238-1.80952380952381
1134038.80952380952381.19047619047619
1145044.3755.625
1154745.78333333333331.21666666666667
1163344.375-11.375
1173338.8095238095238-5.80952380952381
1184536.11111111111118.88888888888889
1194345.7833333333333-2.78333333333333
120038.8095238095238-38.8095238095238
1214645.78333333333330.216666666666669
1223636.1111111111111-0.111111111111114
1234239.15384615384622.84615384615385
1244139.15384615384621.84615384615385
1254645.78333333333330.216666666666669
1264838.80952380952389.19047619047619
1274545.7833333333333-0.783333333333331
1281136.1111111111111-25.1111111111111
1293338.8095238095238-5.80952380952381
1304745.78333333333331.21666666666667
1314244.375-2.375
1325545.78333333333339.21666666666667
1334038.80952380952381.19047619047619
1344645.78333333333330.216666666666669
1354544.3750.625
1364645.78333333333330.216666666666669
1373836.11111111111111.88888888888889
1384038.80952380952381.19047619047619
1394238.80952380952383.19047619047619
1405345.78333333333337.21666666666667
1414345.7833333333333-2.78333333333333
1424144.375-3.375
1435145.78333333333335.21666666666667

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110673&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
15145.78333333333335.21666666666667
24244.375-2.375
34645.78333333333330.216666666666669
44745.78333333333331.21666666666667
53345.7833333333333-12.7833333333333
64745.78333333333331.21666666666667
73239.1538461538462-7.15384615384615
85345.78333333333337.21666666666667
93339.1538461538462-6.15384615384615
103736.11111111111110.888888888888886
114945.78333333333333.21666666666667
124339.15384615384623.84615384615385
134345.7833333333333-2.78333333333333
144645.78333333333330.216666666666669
154244.375-2.375
164044.375-4.375
174245.7833333333333-3.78333333333333
184445.7833333333333-1.78333333333333
194644.3751.625
204545.7833333333333-0.783333333333331
214944.3754.625
224344.375-1.375
233738.8095238095238-1.80952380952381
244545.7833333333333-0.783333333333331
254544.3750.625
263139.1538461538462-8.15384615384615
273345.7833333333333-12.7833333333333
284445.7833333333333-1.78333333333333
293845.7833333333333-7.78333333333333
303345.7833333333333-12.7833333333333
314744.3752.625
324845.78333333333332.21666666666667
335445.78333333333338.21666666666667
344345.7833333333333-2.78333333333333
355445.78333333333338.21666666666667
364444.375-0.375
374545.7833333333333-0.783333333333331
384445.7833333333333-1.78333333333333
394744.3752.625
404336.11111111111116.88888888888889
413344.375-11.375
424645.78333333333330.216666666666669
434744.3752.625
444738.80952380952388.19047619047619
454344.375-1.375
464444.375-0.375
474745.78333333333331.21666666666667
484745.78333333333331.21666666666667
494645.78333333333330.216666666666669
504745.78333333333331.21666666666667
514644.3751.625
523645.7833333333333-9.78333333333333
533038.8095238095238-8.80952380952381
544945.78333333333333.21666666666667
555544.37510.625
565245.78333333333336.21666666666667
574745.78333333333331.21666666666667
583336.1111111111111-3.11111111111111
594444.375-0.375
604238.80952380952383.19047619047619
615538.809523809523816.1904761904762
624245.7833333333333-3.78333333333333
634644.3751.625
644645.78333333333330.216666666666669
653344.375-11.375
665345.78333333333337.21666666666667
674445.7833333333333-1.78333333333333
685345.78333333333337.21666666666667
694445.7833333333333-1.78333333333333
703539.1538461538462-4.15384615384615
714038.80952380952381.19047619047619
724444.375-0.375
734645.78333333333330.216666666666669
744536.11111111111118.88888888888889
755344.3758.625
764844.3753.625
775538.809523809523816.1904761904762
784745.78333333333331.21666666666667
794344.375-1.375
804744.3752.625
814739.15384615384627.84615384615385
824444.375-0.375
834244.375-2.375
845144.3756.625
855445.78333333333338.21666666666667
865144.3756.625
874245.7833333333333-3.78333333333333
884139.15384615384621.84615384615385
894945.78333333333333.21666666666667
904239.15384615384622.84615384615385
914138.80952380952382.19047619047619
924139.15384615384621.84615384615385
934345.7833333333333-2.78333333333333
943338.8095238095238-5.80952380952381
954244.375-2.375
963736.11111111111110.888888888888886
974244.375-2.375
984345.7833333333333-2.78333333333333
993345.7833333333333-12.7833333333333
1004445.7833333333333-1.78333333333333
1015245.78333333333336.21666666666667
1024544.3750.625
1033639.1538461538462-3.15384615384615
1044344.375-1.375
1053238.8095238095238-6.80952380952381
1064544.3750.625
1074539.15384615384625.84615384615385
1084938.809523809523810.1904761904762
1094444.375-0.375
1104138.80952380952382.19047619047619
1114444.375-0.375
1123738.8095238095238-1.80952380952381
1134038.80952380952381.19047619047619
1145044.3755.625
1154745.78333333333331.21666666666667
1163344.375-11.375
1173338.8095238095238-5.80952380952381
1184536.11111111111118.88888888888889
1194345.7833333333333-2.78333333333333
120038.8095238095238-38.8095238095238
1214645.78333333333330.216666666666669
1223636.1111111111111-0.111111111111114
1234239.15384615384622.84615384615385
1244139.15384615384621.84615384615385
1254645.78333333333330.216666666666669
1264838.80952380952389.19047619047619
1274545.7833333333333-0.783333333333331
1281136.1111111111111-25.1111111111111
1293338.8095238095238-5.80952380952381
1304745.78333333333331.21666666666667
1314244.375-2.375
1325545.78333333333339.21666666666667
1334038.80952380952381.19047619047619
1344645.78333333333330.216666666666669
1354544.3750.625
1364645.78333333333330.216666666666669
1373836.11111111111111.88888888888889
1384038.80952380952381.19047619047619
1394238.80952380952383.19047619047619
1405345.78333333333337.21666666666667
1414345.7833333333333-2.78333333333333
1424144.375-3.375
1435145.78333333333335.21666666666667



Parameters (Session):
par1 = 4 ; par2 = none ; par4 = no ;
Parameters (R input):
par1 = 4 ; par2 = none ; par3 = ; par4 = no ;
R code (references can be found in the software module):
library(party)
library(Hmisc)
par1 <- as.numeric(par1)
par3 <- as.numeric(par3)
x <- data.frame(t(y))
is.data.frame(x)
x <- x[!is.na(x[,par1]),]
k <- length(x[1,])
n <- length(x[,1])
colnames(x)[par1]
x[,par1]
if (par2 == 'kmeans') {
cl <- kmeans(x[,par1], par3)
print(cl)
clm <- matrix(cbind(cl$centers,1:par3),ncol=2)
clm <- clm[sort.list(clm[,1]),]
for (i in 1:par3) {
cl$cluster[cl$cluster==clm[i,2]] <- paste('C',i,sep='')
}
cl$cluster <- as.factor(cl$cluster)
print(cl$cluster)
x[,par1] <- cl$cluster
}
if (par2 == 'quantiles') {
x[,par1] <- cut2(x[,par1],g=par3)
}
if (par2 == 'hclust') {
hc <- hclust(dist(x[,par1])^2, 'cen')
print(hc)
memb <- cutree(hc, k = par3)
dum <- c(mean(x[memb==1,par1]))
for (i in 2:par3) {
dum <- c(dum, mean(x[memb==i,par1]))
}
hcm <- matrix(cbind(dum,1:par3),ncol=2)
hcm <- hcm[sort.list(hcm[,1]),]
for (i in 1:par3) {
memb[memb==hcm[i,2]] <- paste('C',i,sep='')
}
memb <- as.factor(memb)
print(memb)
x[,par1] <- memb
}
if (par2=='equal') {
ed <- cut(as.numeric(x[,par1]),par3,labels=paste('C',1:par3,sep=''))
x[,par1] <- as.factor(ed)
}
table(x[,par1])
colnames(x)
colnames(x)[par1]
x[,par1]
if (par2 == 'none') {
m <- ctree(as.formula(paste(colnames(x)[par1],' ~ .',sep='')),data = x)
}
load(file='createtable')
if (par2 != 'none') {
m <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data = x)
if (par4=='yes') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'10-Fold Cross Validation',3+2*par3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
a<-table.element(a,'Prediction (training)',par3+1,TRUE)
a<-table.element(a,'Prediction (testing)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Actual',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
a<-table.row.end(a)
for (i in 1:10) {
ind <- sample(2, nrow(x), replace=T, prob=c(0.9,0.1))
m.ct <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data =x[ind==1,])
if (i==1) {
m.ct.i.pred <- predict(m.ct, newdata=x[ind==1,])
m.ct.i.actu <- x[ind==1,par1]
m.ct.x.pred <- predict(m.ct, newdata=x[ind==2,])
m.ct.x.actu <- x[ind==2,par1]
} else {
m.ct.i.pred <- c(m.ct.i.pred,predict(m.ct, newdata=x[ind==1,]))
m.ct.i.actu <- c(m.ct.i.actu,x[ind==1,par1])
m.ct.x.pred <- c(m.ct.x.pred,predict(m.ct, newdata=x[ind==2,]))
m.ct.x.actu <- c(m.ct.x.actu,x[ind==2,par1])
}
}
print(m.ct.i.tab <- table(m.ct.i.actu,m.ct.i.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.i.tab[i,i] / sum(m.ct.i.tab[i,]))
numer <- numer + m.ct.i.tab[i,i]
}
print(m.ct.i.cp <- numer / sum(m.ct.i.tab))
print(m.ct.x.tab <- table(m.ct.x.actu,m.ct.x.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.x.tab[i,i] / sum(m.ct.x.tab[i,]))
numer <- numer + m.ct.x.tab[i,i]
}
print(m.ct.x.cp <- numer / sum(m.ct.x.tab))
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (jjj in 1:par3) a<-table.element(a,m.ct.i.tab[i,jjj])
a<-table.element(a,round(m.ct.i.tab[i,i]/sum(m.ct.i.tab[i,]),4))
for (jjj in 1:par3) a<-table.element(a,m.ct.x.tab[i,jjj])
a<-table.element(a,round(m.ct.x.tab[i,i]/sum(m.ct.x.tab[i,]),4))
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a,'Overall',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.i.cp,4))
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.x.cp,4))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
}
}
m
bitmap(file='test1.png')
plot(m)
dev.off()
bitmap(file='test1a.png')
plot(x[,par1] ~ as.factor(where(m)),main='Response by Terminal Node',xlab='Terminal Node',ylab='Response')
dev.off()
if (par2 == 'none') {
forec <- predict(m)
result <- as.data.frame(cbind(x[,par1],forec,x[,par1]-forec))
colnames(result) <- c('Actuals','Forecasts','Residuals')
print(result)
}
if (par2 != 'none') {
print(cbind(as.factor(x[,par1]),predict(m)))
myt <- table(as.factor(x[,par1]),predict(m))
print(myt)
}
bitmap(file='test2.png')
if(par2=='none') {
op <- par(mfrow=c(2,2))
plot(density(result$Actuals),main='Kernel Density Plot of Actuals')
plot(density(result$Residuals),main='Kernel Density Plot of Residuals')
plot(result$Forecasts,result$Actuals,main='Actuals versus Predictions',xlab='Predictions',ylab='Actuals')
plot(density(result$Forecasts),main='Kernel Density Plot of Predictions')
par(op)
}
if(par2!='none') {
plot(myt,main='Confusion Matrix',xlab='Actual',ylab='Predicted')
}
dev.off()
if (par2 == 'none') {
detcoef <- cor(result$Forecasts,result$Actuals)
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goodness of Fit',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Correlation',1,TRUE)
a<-table.element(a,round(detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'R-squared',1,TRUE)
a<-table.element(a,round(detcoef*detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'RMSE',1,TRUE)
a<-table.element(a,round(sqrt(mean((result$Residuals)^2)),4))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Actuals, Predictions, and Residuals',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'#',header=TRUE)
a<-table.element(a,'Actuals',header=TRUE)
a<-table.element(a,'Forecasts',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(result$Actuals)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,result$Actuals[i])
a<-table.element(a,result$Forecasts[i])
a<-table.element(a,result$Residuals[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
}
if (par2 != 'none') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Confusion Matrix (predicted in columns / actuals in rows)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
for (i in 1:par3) {
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
}
a<-table.row.end(a)
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (j in 1:par3) {
a<-table.element(a,myt[i,j])
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
}