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 10:02:49 +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/t1292407353pyz8do9dy6pdbsx.htm/, Retrieved Fri, 03 May 2024 04:22:17 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=110321, Retrieved Fri, 03 May 2024 04:22:17 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact159
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Kendall tau Correlation Matrix] [] [2010-12-05 17:44:33] [b98453cac15ba1066b407e146608df68]
-   PD  [Kendall tau Correlation Matrix] [WS10, Pearson Cor...] [2010-12-10 12:56:18] [d946de7cca328fbcf207448a112523ab]
- RMPD      [Recursive Partitioning (Regression Trees)] [] [2010-12-15 10:02:49] [d76b387543b13b5e3afd8ff9e5fdc89f] [Current]
Feedback Forum

Post a new message
Dataseries X:
998	1.2	613	-1906	-2.3	-0.6
499	2.3	998	-706	1.2	-1.1
59	1.3	499	326	2.3	-0.6
175	1.4	59	146	1.3	-2
-413	-1.5	175	625	1.4	0
-223	1.4	-413	104	-1.5	-1.1
110	-0.9	-223	65	1.4	3.4
13	-0.6	110	25	-0.9	0.8
74	1.8	13	3	-0.6	-3.2
643	-3.9	74	-393	1.8	3.1
44	2.4	643	-358	-3.9	-1.7
216	1.1	44	613	2.4	-2.3
-1189	-2.3	216	998	1.1	1.2
-47	-4.3	-1189	499	-2.3	2.3
279	1	-47	59	-4.3	1.3
374	0.8	279	175	1	1.4
13	0.3	374	-413	0.8	-1.5
152	2.2	13	-223	0.3	1.4
-27	1.7	152	110	2.2	-0.9
334	1.8	-27	13	1.7	-0.6
411	0.6	334	74	1.8	1.8
33	-2.6	411	643	0.6	-3.9
313	-0.3	33	44	-2.6	2.4
751	0.1	313	216	-0.3	1.1
446	0.9	751	-1189	0.1	-2.3
-329	2.2	446	-47	0.9	-4.3
-560	-2.2	-329	279	2.2	1
-783	0.4	-560	374	-2.2	0.8
-371	-1.1	-783	13	0.4	0.3
-308	-3	-371	152	-1.1	2.2
-264	-2.1	-308	-27	-3	1.7
-787	-1.5	-264	334	-2.1	1.8
-486	0.5	-787	411	-1.5	0.6
-243	3.8	-486	33	0.5	-2.6
-416	-1.9	-243	313	3.8	-0.3
-992	-1.6	-416	751	-1.9	0.1
-316	1.5	-992	446	-1.6	0.9
825	-2.6	-316	-329	1.5	2.2
1513	0.6	825	-560	-2.6	-2.2
138	-0.4	1513	-783	0.6	0.4
363	0.6	138	-371	-0.4	-1.1
180	2	363	-308	0.6	-3
-493	1	180	-264	2	-2.1
-325	-2.1	-493	-787	1	-1.5
-225	0.8	-325	-486	-2.1	0.5
-115	2.4	-225	-243	0.8	3.8
-145	-0.3	-115	-416	2.4	-1.9
-68	0.6	-145	-992	-0.3	-1.6
-335	-3	-68	-316	0.6	1.5
-832	-0.1	-335	825	-3	-2.6
-931	-2.7	-832	1513	-0.1	0.6
-149	-1.4	-931	138	-2.7	-0.4
-251	0.8	-149	363	-1.4	0.6
-43	-1	-251	180	0.8	2
1484	4.6	-43	-493	-1	1
195	-0.5	1484	-325	4.6	-2.1
170	1.8	195	-225	-0.5	0.8
-277	0.1	170	-115	1.8	2.4
-57	3	-277	-145	0.1	-0.3
-665	2.4	-57	-68	3	0.6
-220	5.5	-665	-335	2.4	-3
534	4.5	-220	-832	5.5	-0.1
-449	3.5	534	-931	4.5	-2.7
158	5	-449	-149	3.5	-1.4
-261	0.4	158	-251	5	0.8
-300	0.2	-261	-43	0.4	-1
-1276	-5.8	-300	1484	0.2	4.6
-108	0.9	-1276	195	-5.8	-0.5
-29	-4.3	-108	170	0.9	1.8
305	-3.8	-29	-277	-4.3	0.1
805	-2.3	305	-57	-3.8	3
-88	-1.8	805	-665	-2.3	2.4




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time15 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 15 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110321&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]15 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110321&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110321&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 time15 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Goodness of Fit
Correlation0.5233
R-squared0.2739
RMSE442.6507

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.5233[/C][/ROW]
[ROW][C]R-squared[/C][C]0.2739[/C][/ROW]
[ROW][C]RMSE[/C][C]442.6507[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110321&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110321&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.5233
R-squared0.2739
RMSE442.6507







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
1998112.4885.6
2499112.4386.6
359-527.705882352941586.705882352941
4175112.462.6
5-413-527.705882352941114.705882352941
6-223112.4-335.4
7110112.4-2.40000000000001
813112.4-99.4
974112.4-38.4
10643112.4530.6
1144112.4-68.4
12216-527.705882352941743.705882352941
13-1189-527.705882352941-661.294117647059
14-47-527.705882352941480.705882352941
15279112.4166.6
16374112.4261.6
1713112.4-99.4
18152112.439.6
19-27112.4-139.4
20334112.4221.6
21411112.4298.6
2233-527.705882352941560.705882352941
23313112.4200.6
24751112.4638.6
25446112.4333.6
26-329112.4-441.4
27-560-527.705882352941-32.2941176470588
28-783-527.705882352941-255.294117647059
29-371112.4-483.4
30-308112.4-420.4
31-264112.4-376.4
32-787-527.705882352941-259.294117647059
33-486-527.70588235294141.7058823529412
34-243112.4-355.4
35-416-527.705882352941111.705882352941
36-992-527.705882352941-464.294117647059
37-316-527.705882352941211.705882352941
38825112.4712.6
391513112.41400.6
40138112.425.6
41363112.4250.6
42180112.467.6
43-493112.4-605.4
44-325112.4-437.4
45-225112.4-337.4
46-115112.4-227.4
47-145112.4-257.4
48-68112.4-180.4
49-335112.4-447.4
50-832-527.705882352941-304.294117647059
51-931-527.705882352941-403.294117647059
52-149112.4-261.4
53-251-527.705882352941276.705882352941
54-43112.4-155.4
551484112.41371.6
56195112.482.6
57170112.457.6
58-277112.4-389.4
59-57112.4-169.4
60-665112.4-777.4
61-220112.4-332.4
62534112.4421.6
63-449112.4-561.4
64158112.445.6
65-261112.4-373.4
66-300112.4-412.4
67-1276-527.705882352941-748.294117647059
68-108112.4-220.4
69-29112.4-141.4
70305112.4192.6
71805112.4692.6
72-88112.4-200.4

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 998 & 112.4 & 885.6 \tabularnewline
2 & 499 & 112.4 & 386.6 \tabularnewline
3 & 59 & -527.705882352941 & 586.705882352941 \tabularnewline
4 & 175 & 112.4 & 62.6 \tabularnewline
5 & -413 & -527.705882352941 & 114.705882352941 \tabularnewline
6 & -223 & 112.4 & -335.4 \tabularnewline
7 & 110 & 112.4 & -2.40000000000001 \tabularnewline
8 & 13 & 112.4 & -99.4 \tabularnewline
9 & 74 & 112.4 & -38.4 \tabularnewline
10 & 643 & 112.4 & 530.6 \tabularnewline
11 & 44 & 112.4 & -68.4 \tabularnewline
12 & 216 & -527.705882352941 & 743.705882352941 \tabularnewline
13 & -1189 & -527.705882352941 & -661.294117647059 \tabularnewline
14 & -47 & -527.705882352941 & 480.705882352941 \tabularnewline
15 & 279 & 112.4 & 166.6 \tabularnewline
16 & 374 & 112.4 & 261.6 \tabularnewline
17 & 13 & 112.4 & -99.4 \tabularnewline
18 & 152 & 112.4 & 39.6 \tabularnewline
19 & -27 & 112.4 & -139.4 \tabularnewline
20 & 334 & 112.4 & 221.6 \tabularnewline
21 & 411 & 112.4 & 298.6 \tabularnewline
22 & 33 & -527.705882352941 & 560.705882352941 \tabularnewline
23 & 313 & 112.4 & 200.6 \tabularnewline
24 & 751 & 112.4 & 638.6 \tabularnewline
25 & 446 & 112.4 & 333.6 \tabularnewline
26 & -329 & 112.4 & -441.4 \tabularnewline
27 & -560 & -527.705882352941 & -32.2941176470588 \tabularnewline
28 & -783 & -527.705882352941 & -255.294117647059 \tabularnewline
29 & -371 & 112.4 & -483.4 \tabularnewline
30 & -308 & 112.4 & -420.4 \tabularnewline
31 & -264 & 112.4 & -376.4 \tabularnewline
32 & -787 & -527.705882352941 & -259.294117647059 \tabularnewline
33 & -486 & -527.705882352941 & 41.7058823529412 \tabularnewline
34 & -243 & 112.4 & -355.4 \tabularnewline
35 & -416 & -527.705882352941 & 111.705882352941 \tabularnewline
36 & -992 & -527.705882352941 & -464.294117647059 \tabularnewline
37 & -316 & -527.705882352941 & 211.705882352941 \tabularnewline
38 & 825 & 112.4 & 712.6 \tabularnewline
39 & 1513 & 112.4 & 1400.6 \tabularnewline
40 & 138 & 112.4 & 25.6 \tabularnewline
41 & 363 & 112.4 & 250.6 \tabularnewline
42 & 180 & 112.4 & 67.6 \tabularnewline
43 & -493 & 112.4 & -605.4 \tabularnewline
44 & -325 & 112.4 & -437.4 \tabularnewline
45 & -225 & 112.4 & -337.4 \tabularnewline
46 & -115 & 112.4 & -227.4 \tabularnewline
47 & -145 & 112.4 & -257.4 \tabularnewline
48 & -68 & 112.4 & -180.4 \tabularnewline
49 & -335 & 112.4 & -447.4 \tabularnewline
50 & -832 & -527.705882352941 & -304.294117647059 \tabularnewline
51 & -931 & -527.705882352941 & -403.294117647059 \tabularnewline
52 & -149 & 112.4 & -261.4 \tabularnewline
53 & -251 & -527.705882352941 & 276.705882352941 \tabularnewline
54 & -43 & 112.4 & -155.4 \tabularnewline
55 & 1484 & 112.4 & 1371.6 \tabularnewline
56 & 195 & 112.4 & 82.6 \tabularnewline
57 & 170 & 112.4 & 57.6 \tabularnewline
58 & -277 & 112.4 & -389.4 \tabularnewline
59 & -57 & 112.4 & -169.4 \tabularnewline
60 & -665 & 112.4 & -777.4 \tabularnewline
61 & -220 & 112.4 & -332.4 \tabularnewline
62 & 534 & 112.4 & 421.6 \tabularnewline
63 & -449 & 112.4 & -561.4 \tabularnewline
64 & 158 & 112.4 & 45.6 \tabularnewline
65 & -261 & 112.4 & -373.4 \tabularnewline
66 & -300 & 112.4 & -412.4 \tabularnewline
67 & -1276 & -527.705882352941 & -748.294117647059 \tabularnewline
68 & -108 & 112.4 & -220.4 \tabularnewline
69 & -29 & 112.4 & -141.4 \tabularnewline
70 & 305 & 112.4 & 192.6 \tabularnewline
71 & 805 & 112.4 & 692.6 \tabularnewline
72 & -88 & 112.4 & -200.4 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110321&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]998[/C][C]112.4[/C][C]885.6[/C][/ROW]
[ROW][C]2[/C][C]499[/C][C]112.4[/C][C]386.6[/C][/ROW]
[ROW][C]3[/C][C]59[/C][C]-527.705882352941[/C][C]586.705882352941[/C][/ROW]
[ROW][C]4[/C][C]175[/C][C]112.4[/C][C]62.6[/C][/ROW]
[ROW][C]5[/C][C]-413[/C][C]-527.705882352941[/C][C]114.705882352941[/C][/ROW]
[ROW][C]6[/C][C]-223[/C][C]112.4[/C][C]-335.4[/C][/ROW]
[ROW][C]7[/C][C]110[/C][C]112.4[/C][C]-2.40000000000001[/C][/ROW]
[ROW][C]8[/C][C]13[/C][C]112.4[/C][C]-99.4[/C][/ROW]
[ROW][C]9[/C][C]74[/C][C]112.4[/C][C]-38.4[/C][/ROW]
[ROW][C]10[/C][C]643[/C][C]112.4[/C][C]530.6[/C][/ROW]
[ROW][C]11[/C][C]44[/C][C]112.4[/C][C]-68.4[/C][/ROW]
[ROW][C]12[/C][C]216[/C][C]-527.705882352941[/C][C]743.705882352941[/C][/ROW]
[ROW][C]13[/C][C]-1189[/C][C]-527.705882352941[/C][C]-661.294117647059[/C][/ROW]
[ROW][C]14[/C][C]-47[/C][C]-527.705882352941[/C][C]480.705882352941[/C][/ROW]
[ROW][C]15[/C][C]279[/C][C]112.4[/C][C]166.6[/C][/ROW]
[ROW][C]16[/C][C]374[/C][C]112.4[/C][C]261.6[/C][/ROW]
[ROW][C]17[/C][C]13[/C][C]112.4[/C][C]-99.4[/C][/ROW]
[ROW][C]18[/C][C]152[/C][C]112.4[/C][C]39.6[/C][/ROW]
[ROW][C]19[/C][C]-27[/C][C]112.4[/C][C]-139.4[/C][/ROW]
[ROW][C]20[/C][C]334[/C][C]112.4[/C][C]221.6[/C][/ROW]
[ROW][C]21[/C][C]411[/C][C]112.4[/C][C]298.6[/C][/ROW]
[ROW][C]22[/C][C]33[/C][C]-527.705882352941[/C][C]560.705882352941[/C][/ROW]
[ROW][C]23[/C][C]313[/C][C]112.4[/C][C]200.6[/C][/ROW]
[ROW][C]24[/C][C]751[/C][C]112.4[/C][C]638.6[/C][/ROW]
[ROW][C]25[/C][C]446[/C][C]112.4[/C][C]333.6[/C][/ROW]
[ROW][C]26[/C][C]-329[/C][C]112.4[/C][C]-441.4[/C][/ROW]
[ROW][C]27[/C][C]-560[/C][C]-527.705882352941[/C][C]-32.2941176470588[/C][/ROW]
[ROW][C]28[/C][C]-783[/C][C]-527.705882352941[/C][C]-255.294117647059[/C][/ROW]
[ROW][C]29[/C][C]-371[/C][C]112.4[/C][C]-483.4[/C][/ROW]
[ROW][C]30[/C][C]-308[/C][C]112.4[/C][C]-420.4[/C][/ROW]
[ROW][C]31[/C][C]-264[/C][C]112.4[/C][C]-376.4[/C][/ROW]
[ROW][C]32[/C][C]-787[/C][C]-527.705882352941[/C][C]-259.294117647059[/C][/ROW]
[ROW][C]33[/C][C]-486[/C][C]-527.705882352941[/C][C]41.7058823529412[/C][/ROW]
[ROW][C]34[/C][C]-243[/C][C]112.4[/C][C]-355.4[/C][/ROW]
[ROW][C]35[/C][C]-416[/C][C]-527.705882352941[/C][C]111.705882352941[/C][/ROW]
[ROW][C]36[/C][C]-992[/C][C]-527.705882352941[/C][C]-464.294117647059[/C][/ROW]
[ROW][C]37[/C][C]-316[/C][C]-527.705882352941[/C][C]211.705882352941[/C][/ROW]
[ROW][C]38[/C][C]825[/C][C]112.4[/C][C]712.6[/C][/ROW]
[ROW][C]39[/C][C]1513[/C][C]112.4[/C][C]1400.6[/C][/ROW]
[ROW][C]40[/C][C]138[/C][C]112.4[/C][C]25.6[/C][/ROW]
[ROW][C]41[/C][C]363[/C][C]112.4[/C][C]250.6[/C][/ROW]
[ROW][C]42[/C][C]180[/C][C]112.4[/C][C]67.6[/C][/ROW]
[ROW][C]43[/C][C]-493[/C][C]112.4[/C][C]-605.4[/C][/ROW]
[ROW][C]44[/C][C]-325[/C][C]112.4[/C][C]-437.4[/C][/ROW]
[ROW][C]45[/C][C]-225[/C][C]112.4[/C][C]-337.4[/C][/ROW]
[ROW][C]46[/C][C]-115[/C][C]112.4[/C][C]-227.4[/C][/ROW]
[ROW][C]47[/C][C]-145[/C][C]112.4[/C][C]-257.4[/C][/ROW]
[ROW][C]48[/C][C]-68[/C][C]112.4[/C][C]-180.4[/C][/ROW]
[ROW][C]49[/C][C]-335[/C][C]112.4[/C][C]-447.4[/C][/ROW]
[ROW][C]50[/C][C]-832[/C][C]-527.705882352941[/C][C]-304.294117647059[/C][/ROW]
[ROW][C]51[/C][C]-931[/C][C]-527.705882352941[/C][C]-403.294117647059[/C][/ROW]
[ROW][C]52[/C][C]-149[/C][C]112.4[/C][C]-261.4[/C][/ROW]
[ROW][C]53[/C][C]-251[/C][C]-527.705882352941[/C][C]276.705882352941[/C][/ROW]
[ROW][C]54[/C][C]-43[/C][C]112.4[/C][C]-155.4[/C][/ROW]
[ROW][C]55[/C][C]1484[/C][C]112.4[/C][C]1371.6[/C][/ROW]
[ROW][C]56[/C][C]195[/C][C]112.4[/C][C]82.6[/C][/ROW]
[ROW][C]57[/C][C]170[/C][C]112.4[/C][C]57.6[/C][/ROW]
[ROW][C]58[/C][C]-277[/C][C]112.4[/C][C]-389.4[/C][/ROW]
[ROW][C]59[/C][C]-57[/C][C]112.4[/C][C]-169.4[/C][/ROW]
[ROW][C]60[/C][C]-665[/C][C]112.4[/C][C]-777.4[/C][/ROW]
[ROW][C]61[/C][C]-220[/C][C]112.4[/C][C]-332.4[/C][/ROW]
[ROW][C]62[/C][C]534[/C][C]112.4[/C][C]421.6[/C][/ROW]
[ROW][C]63[/C][C]-449[/C][C]112.4[/C][C]-561.4[/C][/ROW]
[ROW][C]64[/C][C]158[/C][C]112.4[/C][C]45.6[/C][/ROW]
[ROW][C]65[/C][C]-261[/C][C]112.4[/C][C]-373.4[/C][/ROW]
[ROW][C]66[/C][C]-300[/C][C]112.4[/C][C]-412.4[/C][/ROW]
[ROW][C]67[/C][C]-1276[/C][C]-527.705882352941[/C][C]-748.294117647059[/C][/ROW]
[ROW][C]68[/C][C]-108[/C][C]112.4[/C][C]-220.4[/C][/ROW]
[ROW][C]69[/C][C]-29[/C][C]112.4[/C][C]-141.4[/C][/ROW]
[ROW][C]70[/C][C]305[/C][C]112.4[/C][C]192.6[/C][/ROW]
[ROW][C]71[/C][C]805[/C][C]112.4[/C][C]692.6[/C][/ROW]
[ROW][C]72[/C][C]-88[/C][C]112.4[/C][C]-200.4[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110321&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110321&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
1998112.4885.6
2499112.4386.6
359-527.705882352941586.705882352941
4175112.462.6
5-413-527.705882352941114.705882352941
6-223112.4-335.4
7110112.4-2.40000000000001
813112.4-99.4
974112.4-38.4
10643112.4530.6
1144112.4-68.4
12216-527.705882352941743.705882352941
13-1189-527.705882352941-661.294117647059
14-47-527.705882352941480.705882352941
15279112.4166.6
16374112.4261.6
1713112.4-99.4
18152112.439.6
19-27112.4-139.4
20334112.4221.6
21411112.4298.6
2233-527.705882352941560.705882352941
23313112.4200.6
24751112.4638.6
25446112.4333.6
26-329112.4-441.4
27-560-527.705882352941-32.2941176470588
28-783-527.705882352941-255.294117647059
29-371112.4-483.4
30-308112.4-420.4
31-264112.4-376.4
32-787-527.705882352941-259.294117647059
33-486-527.70588235294141.7058823529412
34-243112.4-355.4
35-416-527.705882352941111.705882352941
36-992-527.705882352941-464.294117647059
37-316-527.705882352941211.705882352941
38825112.4712.6
391513112.41400.6
40138112.425.6
41363112.4250.6
42180112.467.6
43-493112.4-605.4
44-325112.4-437.4
45-225112.4-337.4
46-115112.4-227.4
47-145112.4-257.4
48-68112.4-180.4
49-335112.4-447.4
50-832-527.705882352941-304.294117647059
51-931-527.705882352941-403.294117647059
52-149112.4-261.4
53-251-527.705882352941276.705882352941
54-43112.4-155.4
551484112.41371.6
56195112.482.6
57170112.457.6
58-277112.4-389.4
59-57112.4-169.4
60-665112.4-777.4
61-220112.4-332.4
62534112.4421.6
63-449112.4-561.4
64158112.445.6
65-261112.4-373.4
66-300112.4-412.4
67-1276-527.705882352941-748.294117647059
68-108112.4-220.4
69-29112.4-141.4
70305112.4192.6
71805112.4692.6
72-88112.4-200.4



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