Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_regression_trees1.wasp
Title produced by softwareRecursive Partitioning (Regression Trees)
Date of computationFri, 10 Dec 2010 15:28:13 +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/10/t1291994784pmmgupaps510py9.htm/, Retrieved Mon, 29 Apr 2024 13:18:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=107767, Retrieved Mon, 29 Apr 2024 13:18:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
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]
F   PD    [Recursive Partitioning (Regression Trees)] [] [2010-12-10 15:28:13] [c2e23af56713b360851e64c7775b3f2b] [Current]
Feedback Forum
2010-12-19 17:15:57 [00c625c7d009d84797af914265b614f9] [reply
Correct,
We zien hier aan de figuur dat mensen met hoge scores op personal standards (>15) en een lagere score op PEC (<24) het best georganiseerd zijn.

Post a new message
Dataseries X:
24	26	38	23	10	11
25	23	36	15	10	11
30	25	23	25	10	11
19	23	30	18	10	11
22	19	26	21	10	11
22	29	26	19	10	11
25	25	30	15	13	12
23	21	27	22	10	11
17	22	34	19	10	11
21	25	28	20	13	9
19	24	36	26	10	11
19	18	42	26	10	11
15	22	31	21	10	11
23	22	26	19	10	11
27	28	16	19	13	12
14	12	23	19	10	11
23	20	45	28	10	11
19	21	30	27	10	11
18	23	45	18	10	11
20	28	30	19	10	11
23	24	24	24	10	11
25	24	29	21	13	12
19	24	30	22	13	9
24	23	31	25	10	11
25	29	34	15	10	11
26	24	41	34	10	11
29	18	37	23	10	11
32	25	33	19	10	11
29	26	48	15	10	11
28	22	44	15	10	11
17	22	29	17	10	11
28	22	44	30	13	9
26	30	43	28	10	11
25	23	31	23	10	11
14	17	28	23	10	11
25	23	26	21	10	11
26	23	30	18	10	11
20	25	27	19	15	11
18	24	34	24	10	11
32	24	47	15	10	11
25	21	37	24	13	16
21	24	27	20	10	11
20	28	30	20	10	11
30	20	36	44	10	11
24	29	39	20	10	11
26	27	32	20	10	11
24	22	25	20	10	11
22	28	19	11	10	11
14	16	29	21	10	11
24	25	26	21	13	9
24	24	31	19	13	12
24	28	31	21	10	11
24	24	31	17	10	11
22	24	39	19	10	11
27	21	28	21	10	11
19	25	22	16	10	11
25	25	31	19	10	11
20	22	36	19	10	11
21	23	28	16	10	11
27	26	39	24	10	11
25	25	35	21	10	11
20	21	33	20	10	11
21	25	27	19	10	11
22	24	33	23	10	11
23	29	31	18	10	11
25	22	39	19	10	11
25	27	37	23	10	11
17	26	24	19	10	11
25	24	28	26	13	12
19	27	37	13	13	12
20	24	32	23	10	11
26	24	31	16	13	12
23	29	29	17	13	12
27	22	40	30	10	11
17	24	40	22	10	11
19	24	15	14	10	11
17	23	27	14	13	9
22	20	32	21	13	9
21	27	28	21	10	11
32	26	41	33	10	11
21	25	47	23	10	11
21	21	42	30	10	11
18	19	32	21	11	17
23	21	33	25	10	11
20	16	29	29	10	11
20	29	37	21	10	11
17	15	39	16	10	11
18	17	29	17	10	11
19	15	33	23	10	11
15	21	31	18	13	9
14	19	21	19	10	11
18	24	36	28	10	11
35	17	32	29	10	11
29	23	15	19	10	11
25	14	25	25	13	9
20	19	28	15	10	11
22	24	39	24	10	11
13	13	31	12	13	9
26	22	40	11	10	11
17	16	25	19	10	11
25	19	36	25	10	11
20	25	23	12	10	11
19	25	39	15	10	11
21	23	31	25	10	11
22	24	23	14	10	11
24	26	31	19	10	11
21	26	28	23	13	9
26	25	47	19	13	9
16	21	25	20	10	11
23	26	26	16	13	9
18	23	24	13	12	18
21	13	30	22	10	11
21	24	25	21	13	16
23	14	44	18	15	13
21	10	38	44	10	11
21	24	36	12	10	11
23	22	34	28	13	12
27	24	45	17	13	16
21	20	29	18	10	11
10	13	25	21	10	11
20	20	30	24	10	11
26	22	27	20	10	11
24	24	44	24	10	11
24	20	31	33	10	11
22	22	35	25	10	11
17	20	47	35	10	11




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 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 & 7 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=107767&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]7 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=107767&T=0

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







Goodness of Fit
Correlation0.4677
R-squared0.2188
RMSE3.4897

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.4677[/C][/ROW]
[ROW][C]R-squared[/C][C]0.2188[/C][/ROW]
[ROW][C]RMSE[/C][C]3.4897[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=107767&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=107767&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.4677
R-squared0.2188
RMSE3.4897







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
12623.55434782608702.44565217391304
22323.5543478260870-0.554347826086957
32521.07692307692313.92307692307692
42323.5543478260870-0.554347826086957
51923.5543478260870-4.55434782608696
62923.55434782608705.44565217391304
72523.55434782608701.44565217391304
82123.5543478260870-2.55434782608696
92223.5543478260870-1.55434782608696
102523.55434782608701.44565217391304
112421.07692307692312.92307692307692
121821.0769230769231-3.07692307692308
132216.6255.375
142223.5543478260870-1.55434782608696
152823.55434782608704.44565217391304
161216.625-4.625
172021.0769230769231-1.07692307692308
182121.0769230769231-0.0769230769230766
192323.5543478260870-0.554347826086957
202823.55434782608704.44565217391304
212423.55434782608700.445652173913043
222423.55434782608700.445652173913043
232423.55434782608700.445652173913043
242321.07692307692311.92307692307692
252923.55434782608705.44565217391304
262421.07692307692312.92307692307692
271823.5543478260870-5.55434782608696
282523.55434782608701.44565217391304
292623.55434782608702.44565217391304
302223.5543478260870-1.55434782608696
312223.5543478260870-1.55434782608696
322221.07692307692310.923076923076923
333021.07692307692318.92307692307692
342323.5543478260870-0.554347826086957
351716.6250.375
362323.5543478260870-0.554347826086957
372323.5543478260870-0.554347826086957
382523.55434782608701.44565217391304
392423.55434782608700.445652173913043
402423.55434782608700.445652173913043
412123.5543478260870-2.55434782608696
422423.55434782608700.445652173913043
432823.55434782608704.44565217391304
442021.0769230769231-1.07692307692308
452923.55434782608705.44565217391304
462723.55434782608703.44565217391304
472223.5543478260870-1.55434782608696
482823.55434782608704.44565217391304
491616.625-0.625
502523.55434782608701.44565217391304
512423.55434782608700.445652173913043
522823.55434782608704.44565217391304
532423.55434782608700.445652173913043
542423.55434782608700.445652173913043
552123.5543478260870-2.55434782608696
562523.55434782608701.44565217391304
572523.55434782608701.44565217391304
582223.5543478260870-1.55434782608696
592323.5543478260870-0.554347826086957
602623.55434782608702.44565217391304
612523.55434782608701.44565217391304
622123.5543478260870-2.55434782608696
632523.55434782608701.44565217391304
642423.55434782608700.445652173913043
652923.55434782608705.44565217391304
662223.5543478260870-1.55434782608696
672723.55434782608703.44565217391304
682623.55434782608702.44565217391304
692421.07692307692312.92307692307692
702723.55434782608703.44565217391304
712423.55434782608700.445652173913043
722423.55434782608700.445652173913043
732923.55434782608705.44565217391304
742221.07692307692310.923076923076923
752423.55434782608700.445652173913043
762423.55434782608700.445652173913043
772323.5543478260870-0.554347826086957
782023.5543478260870-3.55434782608696
792723.55434782608703.44565217391304
802621.07692307692314.92307692307692
812523.55434782608701.44565217391304
822121.0769230769231-0.0769230769230766
831923.5543478260870-4.55434782608696
842121.0769230769231-0.0769230769230766
851621.0769230769231-5.07692307692308
862923.55434782608705.44565217391304
871523.5543478260870-8.55434782608696
881723.5543478260870-6.55434782608696
891523.5543478260870-8.55434782608696
902116.6254.375
911916.6252.375
922421.07692307692312.92307692307692
931721.0769230769231-4.07692307692308
942323.5543478260870-0.554347826086957
951421.0769230769231-7.07692307692308
961923.5543478260870-4.55434782608696
972423.55434782608700.445652173913043
981316.625-3.625
992223.5543478260870-1.55434782608696
1001623.5543478260870-7.55434782608696
1011921.0769230769231-2.07692307692308
1022523.55434782608701.44565217391304
1032523.55434782608701.44565217391304
1042321.07692307692311.92307692307692
1052423.55434782608700.445652173913043
1062623.55434782608702.44565217391304
1072623.55434782608702.44565217391304
1082523.55434782608701.44565217391304
1092123.5543478260870-2.55434782608696
1102623.55434782608702.44565217391304
1112323.5543478260870-0.554347826086957
1121323.5543478260870-10.5543478260870
1132423.55434782608700.445652173913043
1141423.5543478260870-9.55434782608696
1151021.0769230769231-11.0769230769231
1162423.55434782608700.445652173913043
1172221.07692307692310.923076923076923
1182423.55434782608700.445652173913043
1192023.5543478260870-3.55434782608696
1201316.625-3.625
1212023.5543478260870-3.55434782608696
1222223.5543478260870-1.55434782608696
1232423.55434782608700.445652173913043
1242021.0769230769231-1.07692307692308
1252221.07692307692310.923076923076923
1262021.0769230769231-1.07692307692308

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 26 & 23.5543478260870 & 2.44565217391304 \tabularnewline
2 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
3 & 25 & 21.0769230769231 & 3.92307692307692 \tabularnewline
4 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
5 & 19 & 23.5543478260870 & -4.55434782608696 \tabularnewline
6 & 29 & 23.5543478260870 & 5.44565217391304 \tabularnewline
7 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
8 & 21 & 23.5543478260870 & -2.55434782608696 \tabularnewline
9 & 22 & 23.5543478260870 & -1.55434782608696 \tabularnewline
10 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
11 & 24 & 21.0769230769231 & 2.92307692307692 \tabularnewline
12 & 18 & 21.0769230769231 & -3.07692307692308 \tabularnewline
13 & 22 & 16.625 & 5.375 \tabularnewline
14 & 22 & 23.5543478260870 & -1.55434782608696 \tabularnewline
15 & 28 & 23.5543478260870 & 4.44565217391304 \tabularnewline
16 & 12 & 16.625 & -4.625 \tabularnewline
17 & 20 & 21.0769230769231 & -1.07692307692308 \tabularnewline
18 & 21 & 21.0769230769231 & -0.0769230769230766 \tabularnewline
19 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
20 & 28 & 23.5543478260870 & 4.44565217391304 \tabularnewline
21 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
22 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
23 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
24 & 23 & 21.0769230769231 & 1.92307692307692 \tabularnewline
25 & 29 & 23.5543478260870 & 5.44565217391304 \tabularnewline
26 & 24 & 21.0769230769231 & 2.92307692307692 \tabularnewline
27 & 18 & 23.5543478260870 & -5.55434782608696 \tabularnewline
28 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
29 & 26 & 23.5543478260870 & 2.44565217391304 \tabularnewline
30 & 22 & 23.5543478260870 & -1.55434782608696 \tabularnewline
31 & 22 & 23.5543478260870 & -1.55434782608696 \tabularnewline
32 & 22 & 21.0769230769231 & 0.923076923076923 \tabularnewline
33 & 30 & 21.0769230769231 & 8.92307692307692 \tabularnewline
34 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
35 & 17 & 16.625 & 0.375 \tabularnewline
36 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
37 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
38 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
39 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
40 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
41 & 21 & 23.5543478260870 & -2.55434782608696 \tabularnewline
42 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
43 & 28 & 23.5543478260870 & 4.44565217391304 \tabularnewline
44 & 20 & 21.0769230769231 & -1.07692307692308 \tabularnewline
45 & 29 & 23.5543478260870 & 5.44565217391304 \tabularnewline
46 & 27 & 23.5543478260870 & 3.44565217391304 \tabularnewline
47 & 22 & 23.5543478260870 & -1.55434782608696 \tabularnewline
48 & 28 & 23.5543478260870 & 4.44565217391304 \tabularnewline
49 & 16 & 16.625 & -0.625 \tabularnewline
50 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
51 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
52 & 28 & 23.5543478260870 & 4.44565217391304 \tabularnewline
53 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
54 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
55 & 21 & 23.5543478260870 & -2.55434782608696 \tabularnewline
56 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
57 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
58 & 22 & 23.5543478260870 & -1.55434782608696 \tabularnewline
59 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
60 & 26 & 23.5543478260870 & 2.44565217391304 \tabularnewline
61 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
62 & 21 & 23.5543478260870 & -2.55434782608696 \tabularnewline
63 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
64 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
65 & 29 & 23.5543478260870 & 5.44565217391304 \tabularnewline
66 & 22 & 23.5543478260870 & -1.55434782608696 \tabularnewline
67 & 27 & 23.5543478260870 & 3.44565217391304 \tabularnewline
68 & 26 & 23.5543478260870 & 2.44565217391304 \tabularnewline
69 & 24 & 21.0769230769231 & 2.92307692307692 \tabularnewline
70 & 27 & 23.5543478260870 & 3.44565217391304 \tabularnewline
71 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
72 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
73 & 29 & 23.5543478260870 & 5.44565217391304 \tabularnewline
74 & 22 & 21.0769230769231 & 0.923076923076923 \tabularnewline
75 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
76 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
77 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
78 & 20 & 23.5543478260870 & -3.55434782608696 \tabularnewline
79 & 27 & 23.5543478260870 & 3.44565217391304 \tabularnewline
80 & 26 & 21.0769230769231 & 4.92307692307692 \tabularnewline
81 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
82 & 21 & 21.0769230769231 & -0.0769230769230766 \tabularnewline
83 & 19 & 23.5543478260870 & -4.55434782608696 \tabularnewline
84 & 21 & 21.0769230769231 & -0.0769230769230766 \tabularnewline
85 & 16 & 21.0769230769231 & -5.07692307692308 \tabularnewline
86 & 29 & 23.5543478260870 & 5.44565217391304 \tabularnewline
87 & 15 & 23.5543478260870 & -8.55434782608696 \tabularnewline
88 & 17 & 23.5543478260870 & -6.55434782608696 \tabularnewline
89 & 15 & 23.5543478260870 & -8.55434782608696 \tabularnewline
90 & 21 & 16.625 & 4.375 \tabularnewline
91 & 19 & 16.625 & 2.375 \tabularnewline
92 & 24 & 21.0769230769231 & 2.92307692307692 \tabularnewline
93 & 17 & 21.0769230769231 & -4.07692307692308 \tabularnewline
94 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
95 & 14 & 21.0769230769231 & -7.07692307692308 \tabularnewline
96 & 19 & 23.5543478260870 & -4.55434782608696 \tabularnewline
97 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
98 & 13 & 16.625 & -3.625 \tabularnewline
99 & 22 & 23.5543478260870 & -1.55434782608696 \tabularnewline
100 & 16 & 23.5543478260870 & -7.55434782608696 \tabularnewline
101 & 19 & 21.0769230769231 & -2.07692307692308 \tabularnewline
102 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
103 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
104 & 23 & 21.0769230769231 & 1.92307692307692 \tabularnewline
105 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
106 & 26 & 23.5543478260870 & 2.44565217391304 \tabularnewline
107 & 26 & 23.5543478260870 & 2.44565217391304 \tabularnewline
108 & 25 & 23.5543478260870 & 1.44565217391304 \tabularnewline
109 & 21 & 23.5543478260870 & -2.55434782608696 \tabularnewline
110 & 26 & 23.5543478260870 & 2.44565217391304 \tabularnewline
111 & 23 & 23.5543478260870 & -0.554347826086957 \tabularnewline
112 & 13 & 23.5543478260870 & -10.5543478260870 \tabularnewline
113 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
114 & 14 & 23.5543478260870 & -9.55434782608696 \tabularnewline
115 & 10 & 21.0769230769231 & -11.0769230769231 \tabularnewline
116 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
117 & 22 & 21.0769230769231 & 0.923076923076923 \tabularnewline
118 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
119 & 20 & 23.5543478260870 & -3.55434782608696 \tabularnewline
120 & 13 & 16.625 & -3.625 \tabularnewline
121 & 20 & 23.5543478260870 & -3.55434782608696 \tabularnewline
122 & 22 & 23.5543478260870 & -1.55434782608696 \tabularnewline
123 & 24 & 23.5543478260870 & 0.445652173913043 \tabularnewline
124 & 20 & 21.0769230769231 & -1.07692307692308 \tabularnewline
125 & 22 & 21.0769230769231 & 0.923076923076923 \tabularnewline
126 & 20 & 21.0769230769231 & -1.07692307692308 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=107767&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]26[/C][C]23.5543478260870[/C][C]2.44565217391304[/C][/ROW]
[ROW][C]2[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]3[/C][C]25[/C][C]21.0769230769231[/C][C]3.92307692307692[/C][/ROW]
[ROW][C]4[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]5[/C][C]19[/C][C]23.5543478260870[/C][C]-4.55434782608696[/C][/ROW]
[ROW][C]6[/C][C]29[/C][C]23.5543478260870[/C][C]5.44565217391304[/C][/ROW]
[ROW][C]7[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]8[/C][C]21[/C][C]23.5543478260870[/C][C]-2.55434782608696[/C][/ROW]
[ROW][C]9[/C][C]22[/C][C]23.5543478260870[/C][C]-1.55434782608696[/C][/ROW]
[ROW][C]10[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]11[/C][C]24[/C][C]21.0769230769231[/C][C]2.92307692307692[/C][/ROW]
[ROW][C]12[/C][C]18[/C][C]21.0769230769231[/C][C]-3.07692307692308[/C][/ROW]
[ROW][C]13[/C][C]22[/C][C]16.625[/C][C]5.375[/C][/ROW]
[ROW][C]14[/C][C]22[/C][C]23.5543478260870[/C][C]-1.55434782608696[/C][/ROW]
[ROW][C]15[/C][C]28[/C][C]23.5543478260870[/C][C]4.44565217391304[/C][/ROW]
[ROW][C]16[/C][C]12[/C][C]16.625[/C][C]-4.625[/C][/ROW]
[ROW][C]17[/C][C]20[/C][C]21.0769230769231[/C][C]-1.07692307692308[/C][/ROW]
[ROW][C]18[/C][C]21[/C][C]21.0769230769231[/C][C]-0.0769230769230766[/C][/ROW]
[ROW][C]19[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]20[/C][C]28[/C][C]23.5543478260870[/C][C]4.44565217391304[/C][/ROW]
[ROW][C]21[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]22[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]23[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]24[/C][C]23[/C][C]21.0769230769231[/C][C]1.92307692307692[/C][/ROW]
[ROW][C]25[/C][C]29[/C][C]23.5543478260870[/C][C]5.44565217391304[/C][/ROW]
[ROW][C]26[/C][C]24[/C][C]21.0769230769231[/C][C]2.92307692307692[/C][/ROW]
[ROW][C]27[/C][C]18[/C][C]23.5543478260870[/C][C]-5.55434782608696[/C][/ROW]
[ROW][C]28[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]29[/C][C]26[/C][C]23.5543478260870[/C][C]2.44565217391304[/C][/ROW]
[ROW][C]30[/C][C]22[/C][C]23.5543478260870[/C][C]-1.55434782608696[/C][/ROW]
[ROW][C]31[/C][C]22[/C][C]23.5543478260870[/C][C]-1.55434782608696[/C][/ROW]
[ROW][C]32[/C][C]22[/C][C]21.0769230769231[/C][C]0.923076923076923[/C][/ROW]
[ROW][C]33[/C][C]30[/C][C]21.0769230769231[/C][C]8.92307692307692[/C][/ROW]
[ROW][C]34[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]35[/C][C]17[/C][C]16.625[/C][C]0.375[/C][/ROW]
[ROW][C]36[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]37[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]38[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]39[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]40[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]41[/C][C]21[/C][C]23.5543478260870[/C][C]-2.55434782608696[/C][/ROW]
[ROW][C]42[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]43[/C][C]28[/C][C]23.5543478260870[/C][C]4.44565217391304[/C][/ROW]
[ROW][C]44[/C][C]20[/C][C]21.0769230769231[/C][C]-1.07692307692308[/C][/ROW]
[ROW][C]45[/C][C]29[/C][C]23.5543478260870[/C][C]5.44565217391304[/C][/ROW]
[ROW][C]46[/C][C]27[/C][C]23.5543478260870[/C][C]3.44565217391304[/C][/ROW]
[ROW][C]47[/C][C]22[/C][C]23.5543478260870[/C][C]-1.55434782608696[/C][/ROW]
[ROW][C]48[/C][C]28[/C][C]23.5543478260870[/C][C]4.44565217391304[/C][/ROW]
[ROW][C]49[/C][C]16[/C][C]16.625[/C][C]-0.625[/C][/ROW]
[ROW][C]50[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]51[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]52[/C][C]28[/C][C]23.5543478260870[/C][C]4.44565217391304[/C][/ROW]
[ROW][C]53[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]54[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]55[/C][C]21[/C][C]23.5543478260870[/C][C]-2.55434782608696[/C][/ROW]
[ROW][C]56[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]57[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]58[/C][C]22[/C][C]23.5543478260870[/C][C]-1.55434782608696[/C][/ROW]
[ROW][C]59[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]60[/C][C]26[/C][C]23.5543478260870[/C][C]2.44565217391304[/C][/ROW]
[ROW][C]61[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]62[/C][C]21[/C][C]23.5543478260870[/C][C]-2.55434782608696[/C][/ROW]
[ROW][C]63[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]64[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]65[/C][C]29[/C][C]23.5543478260870[/C][C]5.44565217391304[/C][/ROW]
[ROW][C]66[/C][C]22[/C][C]23.5543478260870[/C][C]-1.55434782608696[/C][/ROW]
[ROW][C]67[/C][C]27[/C][C]23.5543478260870[/C][C]3.44565217391304[/C][/ROW]
[ROW][C]68[/C][C]26[/C][C]23.5543478260870[/C][C]2.44565217391304[/C][/ROW]
[ROW][C]69[/C][C]24[/C][C]21.0769230769231[/C][C]2.92307692307692[/C][/ROW]
[ROW][C]70[/C][C]27[/C][C]23.5543478260870[/C][C]3.44565217391304[/C][/ROW]
[ROW][C]71[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]72[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]73[/C][C]29[/C][C]23.5543478260870[/C][C]5.44565217391304[/C][/ROW]
[ROW][C]74[/C][C]22[/C][C]21.0769230769231[/C][C]0.923076923076923[/C][/ROW]
[ROW][C]75[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]76[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]77[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]78[/C][C]20[/C][C]23.5543478260870[/C][C]-3.55434782608696[/C][/ROW]
[ROW][C]79[/C][C]27[/C][C]23.5543478260870[/C][C]3.44565217391304[/C][/ROW]
[ROW][C]80[/C][C]26[/C][C]21.0769230769231[/C][C]4.92307692307692[/C][/ROW]
[ROW][C]81[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]82[/C][C]21[/C][C]21.0769230769231[/C][C]-0.0769230769230766[/C][/ROW]
[ROW][C]83[/C][C]19[/C][C]23.5543478260870[/C][C]-4.55434782608696[/C][/ROW]
[ROW][C]84[/C][C]21[/C][C]21.0769230769231[/C][C]-0.0769230769230766[/C][/ROW]
[ROW][C]85[/C][C]16[/C][C]21.0769230769231[/C][C]-5.07692307692308[/C][/ROW]
[ROW][C]86[/C][C]29[/C][C]23.5543478260870[/C][C]5.44565217391304[/C][/ROW]
[ROW][C]87[/C][C]15[/C][C]23.5543478260870[/C][C]-8.55434782608696[/C][/ROW]
[ROW][C]88[/C][C]17[/C][C]23.5543478260870[/C][C]-6.55434782608696[/C][/ROW]
[ROW][C]89[/C][C]15[/C][C]23.5543478260870[/C][C]-8.55434782608696[/C][/ROW]
[ROW][C]90[/C][C]21[/C][C]16.625[/C][C]4.375[/C][/ROW]
[ROW][C]91[/C][C]19[/C][C]16.625[/C][C]2.375[/C][/ROW]
[ROW][C]92[/C][C]24[/C][C]21.0769230769231[/C][C]2.92307692307692[/C][/ROW]
[ROW][C]93[/C][C]17[/C][C]21.0769230769231[/C][C]-4.07692307692308[/C][/ROW]
[ROW][C]94[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]95[/C][C]14[/C][C]21.0769230769231[/C][C]-7.07692307692308[/C][/ROW]
[ROW][C]96[/C][C]19[/C][C]23.5543478260870[/C][C]-4.55434782608696[/C][/ROW]
[ROW][C]97[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]98[/C][C]13[/C][C]16.625[/C][C]-3.625[/C][/ROW]
[ROW][C]99[/C][C]22[/C][C]23.5543478260870[/C][C]-1.55434782608696[/C][/ROW]
[ROW][C]100[/C][C]16[/C][C]23.5543478260870[/C][C]-7.55434782608696[/C][/ROW]
[ROW][C]101[/C][C]19[/C][C]21.0769230769231[/C][C]-2.07692307692308[/C][/ROW]
[ROW][C]102[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]103[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]104[/C][C]23[/C][C]21.0769230769231[/C][C]1.92307692307692[/C][/ROW]
[ROW][C]105[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]106[/C][C]26[/C][C]23.5543478260870[/C][C]2.44565217391304[/C][/ROW]
[ROW][C]107[/C][C]26[/C][C]23.5543478260870[/C][C]2.44565217391304[/C][/ROW]
[ROW][C]108[/C][C]25[/C][C]23.5543478260870[/C][C]1.44565217391304[/C][/ROW]
[ROW][C]109[/C][C]21[/C][C]23.5543478260870[/C][C]-2.55434782608696[/C][/ROW]
[ROW][C]110[/C][C]26[/C][C]23.5543478260870[/C][C]2.44565217391304[/C][/ROW]
[ROW][C]111[/C][C]23[/C][C]23.5543478260870[/C][C]-0.554347826086957[/C][/ROW]
[ROW][C]112[/C][C]13[/C][C]23.5543478260870[/C][C]-10.5543478260870[/C][/ROW]
[ROW][C]113[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]114[/C][C]14[/C][C]23.5543478260870[/C][C]-9.55434782608696[/C][/ROW]
[ROW][C]115[/C][C]10[/C][C]21.0769230769231[/C][C]-11.0769230769231[/C][/ROW]
[ROW][C]116[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]117[/C][C]22[/C][C]21.0769230769231[/C][C]0.923076923076923[/C][/ROW]
[ROW][C]118[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]119[/C][C]20[/C][C]23.5543478260870[/C][C]-3.55434782608696[/C][/ROW]
[ROW][C]120[/C][C]13[/C][C]16.625[/C][C]-3.625[/C][/ROW]
[ROW][C]121[/C][C]20[/C][C]23.5543478260870[/C][C]-3.55434782608696[/C][/ROW]
[ROW][C]122[/C][C]22[/C][C]23.5543478260870[/C][C]-1.55434782608696[/C][/ROW]
[ROW][C]123[/C][C]24[/C][C]23.5543478260870[/C][C]0.445652173913043[/C][/ROW]
[ROW][C]124[/C][C]20[/C][C]21.0769230769231[/C][C]-1.07692307692308[/C][/ROW]
[ROW][C]125[/C][C]22[/C][C]21.0769230769231[/C][C]0.923076923076923[/C][/ROW]
[ROW][C]126[/C][C]20[/C][C]21.0769230769231[/C][C]-1.07692307692308[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=107767&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=107767&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
12623.55434782608702.44565217391304
22323.5543478260870-0.554347826086957
32521.07692307692313.92307692307692
42323.5543478260870-0.554347826086957
51923.5543478260870-4.55434782608696
62923.55434782608705.44565217391304
72523.55434782608701.44565217391304
82123.5543478260870-2.55434782608696
92223.5543478260870-1.55434782608696
102523.55434782608701.44565217391304
112421.07692307692312.92307692307692
121821.0769230769231-3.07692307692308
132216.6255.375
142223.5543478260870-1.55434782608696
152823.55434782608704.44565217391304
161216.625-4.625
172021.0769230769231-1.07692307692308
182121.0769230769231-0.0769230769230766
192323.5543478260870-0.554347826086957
202823.55434782608704.44565217391304
212423.55434782608700.445652173913043
222423.55434782608700.445652173913043
232423.55434782608700.445652173913043
242321.07692307692311.92307692307692
252923.55434782608705.44565217391304
262421.07692307692312.92307692307692
271823.5543478260870-5.55434782608696
282523.55434782608701.44565217391304
292623.55434782608702.44565217391304
302223.5543478260870-1.55434782608696
312223.5543478260870-1.55434782608696
322221.07692307692310.923076923076923
333021.07692307692318.92307692307692
342323.5543478260870-0.554347826086957
351716.6250.375
362323.5543478260870-0.554347826086957
372323.5543478260870-0.554347826086957
382523.55434782608701.44565217391304
392423.55434782608700.445652173913043
402423.55434782608700.445652173913043
412123.5543478260870-2.55434782608696
422423.55434782608700.445652173913043
432823.55434782608704.44565217391304
442021.0769230769231-1.07692307692308
452923.55434782608705.44565217391304
462723.55434782608703.44565217391304
472223.5543478260870-1.55434782608696
482823.55434782608704.44565217391304
491616.625-0.625
502523.55434782608701.44565217391304
512423.55434782608700.445652173913043
522823.55434782608704.44565217391304
532423.55434782608700.445652173913043
542423.55434782608700.445652173913043
552123.5543478260870-2.55434782608696
562523.55434782608701.44565217391304
572523.55434782608701.44565217391304
582223.5543478260870-1.55434782608696
592323.5543478260870-0.554347826086957
602623.55434782608702.44565217391304
612523.55434782608701.44565217391304
622123.5543478260870-2.55434782608696
632523.55434782608701.44565217391304
642423.55434782608700.445652173913043
652923.55434782608705.44565217391304
662223.5543478260870-1.55434782608696
672723.55434782608703.44565217391304
682623.55434782608702.44565217391304
692421.07692307692312.92307692307692
702723.55434782608703.44565217391304
712423.55434782608700.445652173913043
722423.55434782608700.445652173913043
732923.55434782608705.44565217391304
742221.07692307692310.923076923076923
752423.55434782608700.445652173913043
762423.55434782608700.445652173913043
772323.5543478260870-0.554347826086957
782023.5543478260870-3.55434782608696
792723.55434782608703.44565217391304
802621.07692307692314.92307692307692
812523.55434782608701.44565217391304
822121.0769230769231-0.0769230769230766
831923.5543478260870-4.55434782608696
842121.0769230769231-0.0769230769230766
851621.0769230769231-5.07692307692308
862923.55434782608705.44565217391304
871523.5543478260870-8.55434782608696
881723.5543478260870-6.55434782608696
891523.5543478260870-8.55434782608696
902116.6254.375
911916.6252.375
922421.07692307692312.92307692307692
931721.0769230769231-4.07692307692308
942323.5543478260870-0.554347826086957
951421.0769230769231-7.07692307692308
961923.5543478260870-4.55434782608696
972423.55434782608700.445652173913043
981316.625-3.625
992223.5543478260870-1.55434782608696
1001623.5543478260870-7.55434782608696
1011921.0769230769231-2.07692307692308
1022523.55434782608701.44565217391304
1032523.55434782608701.44565217391304
1042321.07692307692311.92307692307692
1052423.55434782608700.445652173913043
1062623.55434782608702.44565217391304
1072623.55434782608702.44565217391304
1082523.55434782608701.44565217391304
1092123.5543478260870-2.55434782608696
1102623.55434782608702.44565217391304
1112323.5543478260870-0.554347826086957
1121323.5543478260870-10.5543478260870
1132423.55434782608700.445652173913043
1141423.5543478260870-9.55434782608696
1151021.0769230769231-11.0769230769231
1162423.55434782608700.445652173913043
1172221.07692307692310.923076923076923
1182423.55434782608700.445652173913043
1192023.5543478260870-3.55434782608696
1201316.625-3.625
1212023.5543478260870-3.55434782608696
1222223.5543478260870-1.55434782608696
1232423.55434782608700.445652173913043
1242021.0769230769231-1.07692307692308
1252221.07692307692310.923076923076923
1262021.0769230769231-1.07692307692308



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