Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_regression_trees1.wasp
Title produced by softwareRecursive Partitioning (Regression Trees)
Date of computationWed, 21 Dec 2011 14:23:11 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/21/t13244954250v9jq115g73qden.htm/, Retrieved Tue, 07 May 2024 10:36:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=158966, Retrieved Tue, 07 May 2024 10:36:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact50
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Recursive Partitioning (Regression Trees)] [] [2011-12-21 19:23:11] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
0.072	0.0213
0.073	0.0218
0.073	0.0290
0.073	0.0263
0.074	0.0267
0.073	0.0181
0.074	0.0133
0.074	0.0088
0.076	0.0128
0.076	0.0126
0.077	0.0126
0.077	0.0129
0.078	0.0110
0.078	0.0137
0.080	0.0121
0.081	0.0174
0.081	0.0176
0.082	0.0148
0.081	0.0104
0.081	0.0162
0.081	0.0149
0.080	0.0179
0.082	0.0180
0.084	0.0158
0.084	0.0186
0.085	0.0174
0.086	0.0159
0.085	0.0126
0.083	0.0113
0.078	0.0192
0.078	0.0261
0.080	0.0226
0.086	0.0241
0.089	0.0226
0.089	0.0203
0.086	0.0286
0.083	0.0255
0.083	0.0227
0.083	0.0226
0.084	0.0257
0.085	0.0307
0.084	0.0276
0.086	0.0251
0.085	0.0287
0.085	0.0314
0.085	0.0311
0.085	0.0316
0.085	0.0247
0.085	0.0257
0.085	0.0289
0.085	0.0263
0.086	0.0238
0.086	0.0169
0.086	0.0196
0.086	0.0219
0.084	0.0187
0.080	0.0160
0.079	0.0163
0.080	0.0122
0.080	0.0121
0.080	0.0149
0.080	0.0164
0.079	0.0166
0.079	0.0177
0.079	0.0182
0.080	0.0178
0.079	0.0128
0.075	0.0129
0.072	0.0137
0.070	0.0112
0.069	0.0151
0.071	0.0224
0.071	0.0294
0.072	0.0309
0.071	0.0346
0.069	0.0364
0.068	0.0439
0.067	0.0415
0.067	0.0521
0.069	0.0580
0.073	0.0591
0.074	0.0539
0.073	0.0546
0.071	0.0472
0.070	0.0314
0.071	0.0263
0.075	0.0232
0.077	0.0193
0.078	0.0062
0.077	0.0060
0.077	-0.0037
0.078	-0.0110
0.080	-0.0168
0.081	-0.0078
0.081	-0.0119
0.080	-0.0097
0.081	-0.0012
0.082	0.0026
0.083	0.0062
0.084	0.0070
0.085	0.0166
0.085	0.0180
0.085	0.0227
0.085	0.0246
0.085	0.0257
0.083	0.0232
0.082	0.0291
0.081	0.0301
0.079	0.0286
0.076	0.0310
0.073	0.0322
0.071	0.0339
0.070	0.0352
0.070	0.0341
0.070	0.0335
0.070	0.0367
0.069	0.0375
0.068	0.0360
0.067	0.0355
0.066	0.0357




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158966&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158966&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158966&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 time4 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Goodness of Fit
Correlation0.6216
R-squared0.3864
RMSE0.0104

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.6216[/C][/ROW]
[ROW][C]R-squared[/C][C]0.3864[/C][/ROW]
[ROW][C]RMSE[/C][C]0.0104[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158966&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158966&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.6216
R-squared0.3864
RMSE0.0104







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
10.02130.0327027777777778-0.0114027777777778
20.02180.0327027777777778-0.0109027777777778
30.0290.0327027777777778-0.00370277777777777
40.02630.0327027777777778-0.00640277777777777
50.02670.0327027777777778-0.00600277777777777
60.01810.0327027777777778-0.0146027777777778
70.01330.0327027777777778-0.0194027777777778
80.00880.0327027777777778-0.0239027777777778
90.01280.01262391304347830.000176086956521739
100.01260.0126239130434783-2.39130434782613e-05
110.01260.0126239130434783-2.39130434782613e-05
120.01290.01262391304347830.000276086956521739
130.0110.0126239130434783-0.00162391304347826
140.01370.01262391304347830.00107608695652174
150.01210.0126239130434783-0.000523913043478262
160.01740.01262391304347830.00477608695652174
170.01760.01262391304347830.00497608695652174
180.01480.01262391304347830.00217608695652174
190.01040.0126239130434783-0.00222391304347826
200.01620.01262391304347830.00357608695652174
210.01490.01262391304347830.00227608695652174
220.01790.01262391304347830.00527608695652174
230.0180.01262391304347830.00537608695652174
240.01580.0221157894736842-0.00631578947368421
250.01860.0221157894736842-0.00351578947368421
260.01740.0221157894736842-0.00471578947368421
270.01590.0221157894736842-0.00621578947368421
280.01260.0221157894736842-0.00951578947368421
290.01130.0221157894736842-0.0108157894736842
300.01920.01262391304347830.00657608695652174
310.02610.01262391304347830.0134760869565217
320.02260.01262391304347830.00997608695652174
330.02410.02211578947368420.00198421052631579
340.02260.02211578947368420.000484210526315788
350.02030.0221157894736842-0.00181578947368421
360.02860.02211578947368420.00648421052631579
370.02550.02211578947368420.00338421052631579
380.02270.02211578947368420.000584210526315791
390.02260.02211578947368420.000484210526315788
400.02570.02211578947368420.00358421052631579
410.03070.02211578947368420.00858421052631579
420.02760.02211578947368420.00548421052631579
430.02510.02211578947368420.00298421052631579
440.02870.02211578947368420.00658421052631579
450.03140.02211578947368420.00928421052631579
460.03110.02211578947368420.00898421052631579
470.03160.02211578947368420.00948421052631579
480.02470.02211578947368420.00258421052631579
490.02570.02211578947368420.00358421052631579
500.02890.02211578947368420.00678421052631579
510.02630.02211578947368420.00418421052631579
520.02380.02211578947368420.00168421052631579
530.01690.0221157894736842-0.00521578947368421
540.01960.0221157894736842-0.00251578947368421
550.02190.0221157894736842-0.000215789473684211
560.01870.0221157894736842-0.00341578947368421
570.0160.01262391304347830.00337608695652174
580.01630.01262391304347830.00367608695652174
590.01220.0126239130434783-0.000423913043478261
600.01210.0126239130434783-0.000523913043478262
610.01490.01262391304347830.00227608695652174
620.01640.01262391304347830.00377608695652174
630.01660.01262391304347830.00397608695652174
640.01770.01262391304347830.00507608695652174
650.01820.01262391304347830.00557608695652174
660.01780.01262391304347830.00517608695652174
670.01280.01262391304347830.000176086956521739
680.01290.01262391304347830.000276086956521739
690.01370.0327027777777778-0.0190027777777778
700.01120.0327027777777778-0.0215027777777778
710.01510.0327027777777778-0.0176027777777778
720.02240.0327027777777778-0.0103027777777778
730.02940.0327027777777778-0.00330277777777778
740.03090.0327027777777778-0.00180277777777777
750.03460.03270277777777780.00189722222222222
760.03640.03270277777777780.00369722222222223
770.04390.03270277777777780.0111972222222222
780.04150.03270277777777780.00879722222222223
790.05210.03270277777777780.0193972222222222
800.0580.03270277777777780.0252972222222222
810.05910.03270277777777780.0263972222222222
820.05390.03270277777777780.0211972222222222
830.05460.03270277777777780.0218972222222222
840.04720.03270277777777780.0144972222222222
850.03140.0327027777777778-0.00130277777777778
860.02630.0327027777777778-0.00640277777777777
870.02320.01262391304347830.0105760869565217
880.01930.01262391304347830.00667608695652174
890.00620.0126239130434783-0.00642391304347826
900.0060.0126239130434783-0.00662391304347826
91-0.00370.0126239130434783-0.0163239130434783
92-0.0110.0126239130434783-0.0236239130434783
93-0.01680.0126239130434783-0.0294239130434783
94-0.00780.0126239130434783-0.0204239130434783
95-0.01190.0126239130434783-0.0245239130434783
96-0.00970.0126239130434783-0.0223239130434783
97-0.00120.0126239130434783-0.0138239130434783
980.00260.0126239130434783-0.0100239130434783
990.00620.0221157894736842-0.0159157894736842
1000.0070.0221157894736842-0.0151157894736842
1010.01660.0221157894736842-0.00551578947368421
1020.0180.0221157894736842-0.00411578947368421
1030.02270.02211578947368420.000584210526315791
1040.02460.02211578947368420.00248421052631579
1050.02570.02211578947368420.00358421052631579
1060.02320.02211578947368420.00108421052631579
1070.02910.01262391304347830.0164760869565217
1080.03010.01262391304347830.0174760869565217
1090.02860.01262391304347830.0159760869565217
1100.0310.01262391304347830.0183760869565217
1110.03220.0327027777777778-0.000502777777777776
1120.03390.03270277777777780.00119722222222222
1130.03520.03270277777777780.00249722222222223
1140.03410.03270277777777780.00139722222222222
1150.03350.03270277777777780.000797222222222227
1160.03670.03270277777777780.00399722222222223
1170.03750.03270277777777780.00479722222222222
1180.0360.03270277777777780.00329722222222222
1190.03550.03270277777777780.00279722222222222
1200.03570.03270277777777780.00299722222222223

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 0.0213 & 0.0327027777777778 & -0.0114027777777778 \tabularnewline
2 & 0.0218 & 0.0327027777777778 & -0.0109027777777778 \tabularnewline
3 & 0.029 & 0.0327027777777778 & -0.00370277777777777 \tabularnewline
4 & 0.0263 & 0.0327027777777778 & -0.00640277777777777 \tabularnewline
5 & 0.0267 & 0.0327027777777778 & -0.00600277777777777 \tabularnewline
6 & 0.0181 & 0.0327027777777778 & -0.0146027777777778 \tabularnewline
7 & 0.0133 & 0.0327027777777778 & -0.0194027777777778 \tabularnewline
8 & 0.0088 & 0.0327027777777778 & -0.0239027777777778 \tabularnewline
9 & 0.0128 & 0.0126239130434783 & 0.000176086956521739 \tabularnewline
10 & 0.0126 & 0.0126239130434783 & -2.39130434782613e-05 \tabularnewline
11 & 0.0126 & 0.0126239130434783 & -2.39130434782613e-05 \tabularnewline
12 & 0.0129 & 0.0126239130434783 & 0.000276086956521739 \tabularnewline
13 & 0.011 & 0.0126239130434783 & -0.00162391304347826 \tabularnewline
14 & 0.0137 & 0.0126239130434783 & 0.00107608695652174 \tabularnewline
15 & 0.0121 & 0.0126239130434783 & -0.000523913043478262 \tabularnewline
16 & 0.0174 & 0.0126239130434783 & 0.00477608695652174 \tabularnewline
17 & 0.0176 & 0.0126239130434783 & 0.00497608695652174 \tabularnewline
18 & 0.0148 & 0.0126239130434783 & 0.00217608695652174 \tabularnewline
19 & 0.0104 & 0.0126239130434783 & -0.00222391304347826 \tabularnewline
20 & 0.0162 & 0.0126239130434783 & 0.00357608695652174 \tabularnewline
21 & 0.0149 & 0.0126239130434783 & 0.00227608695652174 \tabularnewline
22 & 0.0179 & 0.0126239130434783 & 0.00527608695652174 \tabularnewline
23 & 0.018 & 0.0126239130434783 & 0.00537608695652174 \tabularnewline
24 & 0.0158 & 0.0221157894736842 & -0.00631578947368421 \tabularnewline
25 & 0.0186 & 0.0221157894736842 & -0.00351578947368421 \tabularnewline
26 & 0.0174 & 0.0221157894736842 & -0.00471578947368421 \tabularnewline
27 & 0.0159 & 0.0221157894736842 & -0.00621578947368421 \tabularnewline
28 & 0.0126 & 0.0221157894736842 & -0.00951578947368421 \tabularnewline
29 & 0.0113 & 0.0221157894736842 & -0.0108157894736842 \tabularnewline
30 & 0.0192 & 0.0126239130434783 & 0.00657608695652174 \tabularnewline
31 & 0.0261 & 0.0126239130434783 & 0.0134760869565217 \tabularnewline
32 & 0.0226 & 0.0126239130434783 & 0.00997608695652174 \tabularnewline
33 & 0.0241 & 0.0221157894736842 & 0.00198421052631579 \tabularnewline
34 & 0.0226 & 0.0221157894736842 & 0.000484210526315788 \tabularnewline
35 & 0.0203 & 0.0221157894736842 & -0.00181578947368421 \tabularnewline
36 & 0.0286 & 0.0221157894736842 & 0.00648421052631579 \tabularnewline
37 & 0.0255 & 0.0221157894736842 & 0.00338421052631579 \tabularnewline
38 & 0.0227 & 0.0221157894736842 & 0.000584210526315791 \tabularnewline
39 & 0.0226 & 0.0221157894736842 & 0.000484210526315788 \tabularnewline
40 & 0.0257 & 0.0221157894736842 & 0.00358421052631579 \tabularnewline
41 & 0.0307 & 0.0221157894736842 & 0.00858421052631579 \tabularnewline
42 & 0.0276 & 0.0221157894736842 & 0.00548421052631579 \tabularnewline
43 & 0.0251 & 0.0221157894736842 & 0.00298421052631579 \tabularnewline
44 & 0.0287 & 0.0221157894736842 & 0.00658421052631579 \tabularnewline
45 & 0.0314 & 0.0221157894736842 & 0.00928421052631579 \tabularnewline
46 & 0.0311 & 0.0221157894736842 & 0.00898421052631579 \tabularnewline
47 & 0.0316 & 0.0221157894736842 & 0.00948421052631579 \tabularnewline
48 & 0.0247 & 0.0221157894736842 & 0.00258421052631579 \tabularnewline
49 & 0.0257 & 0.0221157894736842 & 0.00358421052631579 \tabularnewline
50 & 0.0289 & 0.0221157894736842 & 0.00678421052631579 \tabularnewline
51 & 0.0263 & 0.0221157894736842 & 0.00418421052631579 \tabularnewline
52 & 0.0238 & 0.0221157894736842 & 0.00168421052631579 \tabularnewline
53 & 0.0169 & 0.0221157894736842 & -0.00521578947368421 \tabularnewline
54 & 0.0196 & 0.0221157894736842 & -0.00251578947368421 \tabularnewline
55 & 0.0219 & 0.0221157894736842 & -0.000215789473684211 \tabularnewline
56 & 0.0187 & 0.0221157894736842 & -0.00341578947368421 \tabularnewline
57 & 0.016 & 0.0126239130434783 & 0.00337608695652174 \tabularnewline
58 & 0.0163 & 0.0126239130434783 & 0.00367608695652174 \tabularnewline
59 & 0.0122 & 0.0126239130434783 & -0.000423913043478261 \tabularnewline
60 & 0.0121 & 0.0126239130434783 & -0.000523913043478262 \tabularnewline
61 & 0.0149 & 0.0126239130434783 & 0.00227608695652174 \tabularnewline
62 & 0.0164 & 0.0126239130434783 & 0.00377608695652174 \tabularnewline
63 & 0.0166 & 0.0126239130434783 & 0.00397608695652174 \tabularnewline
64 & 0.0177 & 0.0126239130434783 & 0.00507608695652174 \tabularnewline
65 & 0.0182 & 0.0126239130434783 & 0.00557608695652174 \tabularnewline
66 & 0.0178 & 0.0126239130434783 & 0.00517608695652174 \tabularnewline
67 & 0.0128 & 0.0126239130434783 & 0.000176086956521739 \tabularnewline
68 & 0.0129 & 0.0126239130434783 & 0.000276086956521739 \tabularnewline
69 & 0.0137 & 0.0327027777777778 & -0.0190027777777778 \tabularnewline
70 & 0.0112 & 0.0327027777777778 & -0.0215027777777778 \tabularnewline
71 & 0.0151 & 0.0327027777777778 & -0.0176027777777778 \tabularnewline
72 & 0.0224 & 0.0327027777777778 & -0.0103027777777778 \tabularnewline
73 & 0.0294 & 0.0327027777777778 & -0.00330277777777778 \tabularnewline
74 & 0.0309 & 0.0327027777777778 & -0.00180277777777777 \tabularnewline
75 & 0.0346 & 0.0327027777777778 & 0.00189722222222222 \tabularnewline
76 & 0.0364 & 0.0327027777777778 & 0.00369722222222223 \tabularnewline
77 & 0.0439 & 0.0327027777777778 & 0.0111972222222222 \tabularnewline
78 & 0.0415 & 0.0327027777777778 & 0.00879722222222223 \tabularnewline
79 & 0.0521 & 0.0327027777777778 & 0.0193972222222222 \tabularnewline
80 & 0.058 & 0.0327027777777778 & 0.0252972222222222 \tabularnewline
81 & 0.0591 & 0.0327027777777778 & 0.0263972222222222 \tabularnewline
82 & 0.0539 & 0.0327027777777778 & 0.0211972222222222 \tabularnewline
83 & 0.0546 & 0.0327027777777778 & 0.0218972222222222 \tabularnewline
84 & 0.0472 & 0.0327027777777778 & 0.0144972222222222 \tabularnewline
85 & 0.0314 & 0.0327027777777778 & -0.00130277777777778 \tabularnewline
86 & 0.0263 & 0.0327027777777778 & -0.00640277777777777 \tabularnewline
87 & 0.0232 & 0.0126239130434783 & 0.0105760869565217 \tabularnewline
88 & 0.0193 & 0.0126239130434783 & 0.00667608695652174 \tabularnewline
89 & 0.0062 & 0.0126239130434783 & -0.00642391304347826 \tabularnewline
90 & 0.006 & 0.0126239130434783 & -0.00662391304347826 \tabularnewline
91 & -0.0037 & 0.0126239130434783 & -0.0163239130434783 \tabularnewline
92 & -0.011 & 0.0126239130434783 & -0.0236239130434783 \tabularnewline
93 & -0.0168 & 0.0126239130434783 & -0.0294239130434783 \tabularnewline
94 & -0.0078 & 0.0126239130434783 & -0.0204239130434783 \tabularnewline
95 & -0.0119 & 0.0126239130434783 & -0.0245239130434783 \tabularnewline
96 & -0.0097 & 0.0126239130434783 & -0.0223239130434783 \tabularnewline
97 & -0.0012 & 0.0126239130434783 & -0.0138239130434783 \tabularnewline
98 & 0.0026 & 0.0126239130434783 & -0.0100239130434783 \tabularnewline
99 & 0.0062 & 0.0221157894736842 & -0.0159157894736842 \tabularnewline
100 & 0.007 & 0.0221157894736842 & -0.0151157894736842 \tabularnewline
101 & 0.0166 & 0.0221157894736842 & -0.00551578947368421 \tabularnewline
102 & 0.018 & 0.0221157894736842 & -0.00411578947368421 \tabularnewline
103 & 0.0227 & 0.0221157894736842 & 0.000584210526315791 \tabularnewline
104 & 0.0246 & 0.0221157894736842 & 0.00248421052631579 \tabularnewline
105 & 0.0257 & 0.0221157894736842 & 0.00358421052631579 \tabularnewline
106 & 0.0232 & 0.0221157894736842 & 0.00108421052631579 \tabularnewline
107 & 0.0291 & 0.0126239130434783 & 0.0164760869565217 \tabularnewline
108 & 0.0301 & 0.0126239130434783 & 0.0174760869565217 \tabularnewline
109 & 0.0286 & 0.0126239130434783 & 0.0159760869565217 \tabularnewline
110 & 0.031 & 0.0126239130434783 & 0.0183760869565217 \tabularnewline
111 & 0.0322 & 0.0327027777777778 & -0.000502777777777776 \tabularnewline
112 & 0.0339 & 0.0327027777777778 & 0.00119722222222222 \tabularnewline
113 & 0.0352 & 0.0327027777777778 & 0.00249722222222223 \tabularnewline
114 & 0.0341 & 0.0327027777777778 & 0.00139722222222222 \tabularnewline
115 & 0.0335 & 0.0327027777777778 & 0.000797222222222227 \tabularnewline
116 & 0.0367 & 0.0327027777777778 & 0.00399722222222223 \tabularnewline
117 & 0.0375 & 0.0327027777777778 & 0.00479722222222222 \tabularnewline
118 & 0.036 & 0.0327027777777778 & 0.00329722222222222 \tabularnewline
119 & 0.0355 & 0.0327027777777778 & 0.00279722222222222 \tabularnewline
120 & 0.0357 & 0.0327027777777778 & 0.00299722222222223 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158966&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]0.0213[/C][C]0.0327027777777778[/C][C]-0.0114027777777778[/C][/ROW]
[ROW][C]2[/C][C]0.0218[/C][C]0.0327027777777778[/C][C]-0.0109027777777778[/C][/ROW]
[ROW][C]3[/C][C]0.029[/C][C]0.0327027777777778[/C][C]-0.00370277777777777[/C][/ROW]
[ROW][C]4[/C][C]0.0263[/C][C]0.0327027777777778[/C][C]-0.00640277777777777[/C][/ROW]
[ROW][C]5[/C][C]0.0267[/C][C]0.0327027777777778[/C][C]-0.00600277777777777[/C][/ROW]
[ROW][C]6[/C][C]0.0181[/C][C]0.0327027777777778[/C][C]-0.0146027777777778[/C][/ROW]
[ROW][C]7[/C][C]0.0133[/C][C]0.0327027777777778[/C][C]-0.0194027777777778[/C][/ROW]
[ROW][C]8[/C][C]0.0088[/C][C]0.0327027777777778[/C][C]-0.0239027777777778[/C][/ROW]
[ROW][C]9[/C][C]0.0128[/C][C]0.0126239130434783[/C][C]0.000176086956521739[/C][/ROW]
[ROW][C]10[/C][C]0.0126[/C][C]0.0126239130434783[/C][C]-2.39130434782613e-05[/C][/ROW]
[ROW][C]11[/C][C]0.0126[/C][C]0.0126239130434783[/C][C]-2.39130434782613e-05[/C][/ROW]
[ROW][C]12[/C][C]0.0129[/C][C]0.0126239130434783[/C][C]0.000276086956521739[/C][/ROW]
[ROW][C]13[/C][C]0.011[/C][C]0.0126239130434783[/C][C]-0.00162391304347826[/C][/ROW]
[ROW][C]14[/C][C]0.0137[/C][C]0.0126239130434783[/C][C]0.00107608695652174[/C][/ROW]
[ROW][C]15[/C][C]0.0121[/C][C]0.0126239130434783[/C][C]-0.000523913043478262[/C][/ROW]
[ROW][C]16[/C][C]0.0174[/C][C]0.0126239130434783[/C][C]0.00477608695652174[/C][/ROW]
[ROW][C]17[/C][C]0.0176[/C][C]0.0126239130434783[/C][C]0.00497608695652174[/C][/ROW]
[ROW][C]18[/C][C]0.0148[/C][C]0.0126239130434783[/C][C]0.00217608695652174[/C][/ROW]
[ROW][C]19[/C][C]0.0104[/C][C]0.0126239130434783[/C][C]-0.00222391304347826[/C][/ROW]
[ROW][C]20[/C][C]0.0162[/C][C]0.0126239130434783[/C][C]0.00357608695652174[/C][/ROW]
[ROW][C]21[/C][C]0.0149[/C][C]0.0126239130434783[/C][C]0.00227608695652174[/C][/ROW]
[ROW][C]22[/C][C]0.0179[/C][C]0.0126239130434783[/C][C]0.00527608695652174[/C][/ROW]
[ROW][C]23[/C][C]0.018[/C][C]0.0126239130434783[/C][C]0.00537608695652174[/C][/ROW]
[ROW][C]24[/C][C]0.0158[/C][C]0.0221157894736842[/C][C]-0.00631578947368421[/C][/ROW]
[ROW][C]25[/C][C]0.0186[/C][C]0.0221157894736842[/C][C]-0.00351578947368421[/C][/ROW]
[ROW][C]26[/C][C]0.0174[/C][C]0.0221157894736842[/C][C]-0.00471578947368421[/C][/ROW]
[ROW][C]27[/C][C]0.0159[/C][C]0.0221157894736842[/C][C]-0.00621578947368421[/C][/ROW]
[ROW][C]28[/C][C]0.0126[/C][C]0.0221157894736842[/C][C]-0.00951578947368421[/C][/ROW]
[ROW][C]29[/C][C]0.0113[/C][C]0.0221157894736842[/C][C]-0.0108157894736842[/C][/ROW]
[ROW][C]30[/C][C]0.0192[/C][C]0.0126239130434783[/C][C]0.00657608695652174[/C][/ROW]
[ROW][C]31[/C][C]0.0261[/C][C]0.0126239130434783[/C][C]0.0134760869565217[/C][/ROW]
[ROW][C]32[/C][C]0.0226[/C][C]0.0126239130434783[/C][C]0.00997608695652174[/C][/ROW]
[ROW][C]33[/C][C]0.0241[/C][C]0.0221157894736842[/C][C]0.00198421052631579[/C][/ROW]
[ROW][C]34[/C][C]0.0226[/C][C]0.0221157894736842[/C][C]0.000484210526315788[/C][/ROW]
[ROW][C]35[/C][C]0.0203[/C][C]0.0221157894736842[/C][C]-0.00181578947368421[/C][/ROW]
[ROW][C]36[/C][C]0.0286[/C][C]0.0221157894736842[/C][C]0.00648421052631579[/C][/ROW]
[ROW][C]37[/C][C]0.0255[/C][C]0.0221157894736842[/C][C]0.00338421052631579[/C][/ROW]
[ROW][C]38[/C][C]0.0227[/C][C]0.0221157894736842[/C][C]0.000584210526315791[/C][/ROW]
[ROW][C]39[/C][C]0.0226[/C][C]0.0221157894736842[/C][C]0.000484210526315788[/C][/ROW]
[ROW][C]40[/C][C]0.0257[/C][C]0.0221157894736842[/C][C]0.00358421052631579[/C][/ROW]
[ROW][C]41[/C][C]0.0307[/C][C]0.0221157894736842[/C][C]0.00858421052631579[/C][/ROW]
[ROW][C]42[/C][C]0.0276[/C][C]0.0221157894736842[/C][C]0.00548421052631579[/C][/ROW]
[ROW][C]43[/C][C]0.0251[/C][C]0.0221157894736842[/C][C]0.00298421052631579[/C][/ROW]
[ROW][C]44[/C][C]0.0287[/C][C]0.0221157894736842[/C][C]0.00658421052631579[/C][/ROW]
[ROW][C]45[/C][C]0.0314[/C][C]0.0221157894736842[/C][C]0.00928421052631579[/C][/ROW]
[ROW][C]46[/C][C]0.0311[/C][C]0.0221157894736842[/C][C]0.00898421052631579[/C][/ROW]
[ROW][C]47[/C][C]0.0316[/C][C]0.0221157894736842[/C][C]0.00948421052631579[/C][/ROW]
[ROW][C]48[/C][C]0.0247[/C][C]0.0221157894736842[/C][C]0.00258421052631579[/C][/ROW]
[ROW][C]49[/C][C]0.0257[/C][C]0.0221157894736842[/C][C]0.00358421052631579[/C][/ROW]
[ROW][C]50[/C][C]0.0289[/C][C]0.0221157894736842[/C][C]0.00678421052631579[/C][/ROW]
[ROW][C]51[/C][C]0.0263[/C][C]0.0221157894736842[/C][C]0.00418421052631579[/C][/ROW]
[ROW][C]52[/C][C]0.0238[/C][C]0.0221157894736842[/C][C]0.00168421052631579[/C][/ROW]
[ROW][C]53[/C][C]0.0169[/C][C]0.0221157894736842[/C][C]-0.00521578947368421[/C][/ROW]
[ROW][C]54[/C][C]0.0196[/C][C]0.0221157894736842[/C][C]-0.00251578947368421[/C][/ROW]
[ROW][C]55[/C][C]0.0219[/C][C]0.0221157894736842[/C][C]-0.000215789473684211[/C][/ROW]
[ROW][C]56[/C][C]0.0187[/C][C]0.0221157894736842[/C][C]-0.00341578947368421[/C][/ROW]
[ROW][C]57[/C][C]0.016[/C][C]0.0126239130434783[/C][C]0.00337608695652174[/C][/ROW]
[ROW][C]58[/C][C]0.0163[/C][C]0.0126239130434783[/C][C]0.00367608695652174[/C][/ROW]
[ROW][C]59[/C][C]0.0122[/C][C]0.0126239130434783[/C][C]-0.000423913043478261[/C][/ROW]
[ROW][C]60[/C][C]0.0121[/C][C]0.0126239130434783[/C][C]-0.000523913043478262[/C][/ROW]
[ROW][C]61[/C][C]0.0149[/C][C]0.0126239130434783[/C][C]0.00227608695652174[/C][/ROW]
[ROW][C]62[/C][C]0.0164[/C][C]0.0126239130434783[/C][C]0.00377608695652174[/C][/ROW]
[ROW][C]63[/C][C]0.0166[/C][C]0.0126239130434783[/C][C]0.00397608695652174[/C][/ROW]
[ROW][C]64[/C][C]0.0177[/C][C]0.0126239130434783[/C][C]0.00507608695652174[/C][/ROW]
[ROW][C]65[/C][C]0.0182[/C][C]0.0126239130434783[/C][C]0.00557608695652174[/C][/ROW]
[ROW][C]66[/C][C]0.0178[/C][C]0.0126239130434783[/C][C]0.00517608695652174[/C][/ROW]
[ROW][C]67[/C][C]0.0128[/C][C]0.0126239130434783[/C][C]0.000176086956521739[/C][/ROW]
[ROW][C]68[/C][C]0.0129[/C][C]0.0126239130434783[/C][C]0.000276086956521739[/C][/ROW]
[ROW][C]69[/C][C]0.0137[/C][C]0.0327027777777778[/C][C]-0.0190027777777778[/C][/ROW]
[ROW][C]70[/C][C]0.0112[/C][C]0.0327027777777778[/C][C]-0.0215027777777778[/C][/ROW]
[ROW][C]71[/C][C]0.0151[/C][C]0.0327027777777778[/C][C]-0.0176027777777778[/C][/ROW]
[ROW][C]72[/C][C]0.0224[/C][C]0.0327027777777778[/C][C]-0.0103027777777778[/C][/ROW]
[ROW][C]73[/C][C]0.0294[/C][C]0.0327027777777778[/C][C]-0.00330277777777778[/C][/ROW]
[ROW][C]74[/C][C]0.0309[/C][C]0.0327027777777778[/C][C]-0.00180277777777777[/C][/ROW]
[ROW][C]75[/C][C]0.0346[/C][C]0.0327027777777778[/C][C]0.00189722222222222[/C][/ROW]
[ROW][C]76[/C][C]0.0364[/C][C]0.0327027777777778[/C][C]0.00369722222222223[/C][/ROW]
[ROW][C]77[/C][C]0.0439[/C][C]0.0327027777777778[/C][C]0.0111972222222222[/C][/ROW]
[ROW][C]78[/C][C]0.0415[/C][C]0.0327027777777778[/C][C]0.00879722222222223[/C][/ROW]
[ROW][C]79[/C][C]0.0521[/C][C]0.0327027777777778[/C][C]0.0193972222222222[/C][/ROW]
[ROW][C]80[/C][C]0.058[/C][C]0.0327027777777778[/C][C]0.0252972222222222[/C][/ROW]
[ROW][C]81[/C][C]0.0591[/C][C]0.0327027777777778[/C][C]0.0263972222222222[/C][/ROW]
[ROW][C]82[/C][C]0.0539[/C][C]0.0327027777777778[/C][C]0.0211972222222222[/C][/ROW]
[ROW][C]83[/C][C]0.0546[/C][C]0.0327027777777778[/C][C]0.0218972222222222[/C][/ROW]
[ROW][C]84[/C][C]0.0472[/C][C]0.0327027777777778[/C][C]0.0144972222222222[/C][/ROW]
[ROW][C]85[/C][C]0.0314[/C][C]0.0327027777777778[/C][C]-0.00130277777777778[/C][/ROW]
[ROW][C]86[/C][C]0.0263[/C][C]0.0327027777777778[/C][C]-0.00640277777777777[/C][/ROW]
[ROW][C]87[/C][C]0.0232[/C][C]0.0126239130434783[/C][C]0.0105760869565217[/C][/ROW]
[ROW][C]88[/C][C]0.0193[/C][C]0.0126239130434783[/C][C]0.00667608695652174[/C][/ROW]
[ROW][C]89[/C][C]0.0062[/C][C]0.0126239130434783[/C][C]-0.00642391304347826[/C][/ROW]
[ROW][C]90[/C][C]0.006[/C][C]0.0126239130434783[/C][C]-0.00662391304347826[/C][/ROW]
[ROW][C]91[/C][C]-0.0037[/C][C]0.0126239130434783[/C][C]-0.0163239130434783[/C][/ROW]
[ROW][C]92[/C][C]-0.011[/C][C]0.0126239130434783[/C][C]-0.0236239130434783[/C][/ROW]
[ROW][C]93[/C][C]-0.0168[/C][C]0.0126239130434783[/C][C]-0.0294239130434783[/C][/ROW]
[ROW][C]94[/C][C]-0.0078[/C][C]0.0126239130434783[/C][C]-0.0204239130434783[/C][/ROW]
[ROW][C]95[/C][C]-0.0119[/C][C]0.0126239130434783[/C][C]-0.0245239130434783[/C][/ROW]
[ROW][C]96[/C][C]-0.0097[/C][C]0.0126239130434783[/C][C]-0.0223239130434783[/C][/ROW]
[ROW][C]97[/C][C]-0.0012[/C][C]0.0126239130434783[/C][C]-0.0138239130434783[/C][/ROW]
[ROW][C]98[/C][C]0.0026[/C][C]0.0126239130434783[/C][C]-0.0100239130434783[/C][/ROW]
[ROW][C]99[/C][C]0.0062[/C][C]0.0221157894736842[/C][C]-0.0159157894736842[/C][/ROW]
[ROW][C]100[/C][C]0.007[/C][C]0.0221157894736842[/C][C]-0.0151157894736842[/C][/ROW]
[ROW][C]101[/C][C]0.0166[/C][C]0.0221157894736842[/C][C]-0.00551578947368421[/C][/ROW]
[ROW][C]102[/C][C]0.018[/C][C]0.0221157894736842[/C][C]-0.00411578947368421[/C][/ROW]
[ROW][C]103[/C][C]0.0227[/C][C]0.0221157894736842[/C][C]0.000584210526315791[/C][/ROW]
[ROW][C]104[/C][C]0.0246[/C][C]0.0221157894736842[/C][C]0.00248421052631579[/C][/ROW]
[ROW][C]105[/C][C]0.0257[/C][C]0.0221157894736842[/C][C]0.00358421052631579[/C][/ROW]
[ROW][C]106[/C][C]0.0232[/C][C]0.0221157894736842[/C][C]0.00108421052631579[/C][/ROW]
[ROW][C]107[/C][C]0.0291[/C][C]0.0126239130434783[/C][C]0.0164760869565217[/C][/ROW]
[ROW][C]108[/C][C]0.0301[/C][C]0.0126239130434783[/C][C]0.0174760869565217[/C][/ROW]
[ROW][C]109[/C][C]0.0286[/C][C]0.0126239130434783[/C][C]0.0159760869565217[/C][/ROW]
[ROW][C]110[/C][C]0.031[/C][C]0.0126239130434783[/C][C]0.0183760869565217[/C][/ROW]
[ROW][C]111[/C][C]0.0322[/C][C]0.0327027777777778[/C][C]-0.000502777777777776[/C][/ROW]
[ROW][C]112[/C][C]0.0339[/C][C]0.0327027777777778[/C][C]0.00119722222222222[/C][/ROW]
[ROW][C]113[/C][C]0.0352[/C][C]0.0327027777777778[/C][C]0.00249722222222223[/C][/ROW]
[ROW][C]114[/C][C]0.0341[/C][C]0.0327027777777778[/C][C]0.00139722222222222[/C][/ROW]
[ROW][C]115[/C][C]0.0335[/C][C]0.0327027777777778[/C][C]0.000797222222222227[/C][/ROW]
[ROW][C]116[/C][C]0.0367[/C][C]0.0327027777777778[/C][C]0.00399722222222223[/C][/ROW]
[ROW][C]117[/C][C]0.0375[/C][C]0.0327027777777778[/C][C]0.00479722222222222[/C][/ROW]
[ROW][C]118[/C][C]0.036[/C][C]0.0327027777777778[/C][C]0.00329722222222222[/C][/ROW]
[ROW][C]119[/C][C]0.0355[/C][C]0.0327027777777778[/C][C]0.00279722222222222[/C][/ROW]
[ROW][C]120[/C][C]0.0357[/C][C]0.0327027777777778[/C][C]0.00299722222222223[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158966&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158966&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
10.02130.0327027777777778-0.0114027777777778
20.02180.0327027777777778-0.0109027777777778
30.0290.0327027777777778-0.00370277777777777
40.02630.0327027777777778-0.00640277777777777
50.02670.0327027777777778-0.00600277777777777
60.01810.0327027777777778-0.0146027777777778
70.01330.0327027777777778-0.0194027777777778
80.00880.0327027777777778-0.0239027777777778
90.01280.01262391304347830.000176086956521739
100.01260.0126239130434783-2.39130434782613e-05
110.01260.0126239130434783-2.39130434782613e-05
120.01290.01262391304347830.000276086956521739
130.0110.0126239130434783-0.00162391304347826
140.01370.01262391304347830.00107608695652174
150.01210.0126239130434783-0.000523913043478262
160.01740.01262391304347830.00477608695652174
170.01760.01262391304347830.00497608695652174
180.01480.01262391304347830.00217608695652174
190.01040.0126239130434783-0.00222391304347826
200.01620.01262391304347830.00357608695652174
210.01490.01262391304347830.00227608695652174
220.01790.01262391304347830.00527608695652174
230.0180.01262391304347830.00537608695652174
240.01580.0221157894736842-0.00631578947368421
250.01860.0221157894736842-0.00351578947368421
260.01740.0221157894736842-0.00471578947368421
270.01590.0221157894736842-0.00621578947368421
280.01260.0221157894736842-0.00951578947368421
290.01130.0221157894736842-0.0108157894736842
300.01920.01262391304347830.00657608695652174
310.02610.01262391304347830.0134760869565217
320.02260.01262391304347830.00997608695652174
330.02410.02211578947368420.00198421052631579
340.02260.02211578947368420.000484210526315788
350.02030.0221157894736842-0.00181578947368421
360.02860.02211578947368420.00648421052631579
370.02550.02211578947368420.00338421052631579
380.02270.02211578947368420.000584210526315791
390.02260.02211578947368420.000484210526315788
400.02570.02211578947368420.00358421052631579
410.03070.02211578947368420.00858421052631579
420.02760.02211578947368420.00548421052631579
430.02510.02211578947368420.00298421052631579
440.02870.02211578947368420.00658421052631579
450.03140.02211578947368420.00928421052631579
460.03110.02211578947368420.00898421052631579
470.03160.02211578947368420.00948421052631579
480.02470.02211578947368420.00258421052631579
490.02570.02211578947368420.00358421052631579
500.02890.02211578947368420.00678421052631579
510.02630.02211578947368420.00418421052631579
520.02380.02211578947368420.00168421052631579
530.01690.0221157894736842-0.00521578947368421
540.01960.0221157894736842-0.00251578947368421
550.02190.0221157894736842-0.000215789473684211
560.01870.0221157894736842-0.00341578947368421
570.0160.01262391304347830.00337608695652174
580.01630.01262391304347830.00367608695652174
590.01220.0126239130434783-0.000423913043478261
600.01210.0126239130434783-0.000523913043478262
610.01490.01262391304347830.00227608695652174
620.01640.01262391304347830.00377608695652174
630.01660.01262391304347830.00397608695652174
640.01770.01262391304347830.00507608695652174
650.01820.01262391304347830.00557608695652174
660.01780.01262391304347830.00517608695652174
670.01280.01262391304347830.000176086956521739
680.01290.01262391304347830.000276086956521739
690.01370.0327027777777778-0.0190027777777778
700.01120.0327027777777778-0.0215027777777778
710.01510.0327027777777778-0.0176027777777778
720.02240.0327027777777778-0.0103027777777778
730.02940.0327027777777778-0.00330277777777778
740.03090.0327027777777778-0.00180277777777777
750.03460.03270277777777780.00189722222222222
760.03640.03270277777777780.00369722222222223
770.04390.03270277777777780.0111972222222222
780.04150.03270277777777780.00879722222222223
790.05210.03270277777777780.0193972222222222
800.0580.03270277777777780.0252972222222222
810.05910.03270277777777780.0263972222222222
820.05390.03270277777777780.0211972222222222
830.05460.03270277777777780.0218972222222222
840.04720.03270277777777780.0144972222222222
850.03140.0327027777777778-0.00130277777777778
860.02630.0327027777777778-0.00640277777777777
870.02320.01262391304347830.0105760869565217
880.01930.01262391304347830.00667608695652174
890.00620.0126239130434783-0.00642391304347826
900.0060.0126239130434783-0.00662391304347826
91-0.00370.0126239130434783-0.0163239130434783
92-0.0110.0126239130434783-0.0236239130434783
93-0.01680.0126239130434783-0.0294239130434783
94-0.00780.0126239130434783-0.0204239130434783
95-0.01190.0126239130434783-0.0245239130434783
96-0.00970.0126239130434783-0.0223239130434783
97-0.00120.0126239130434783-0.0138239130434783
980.00260.0126239130434783-0.0100239130434783
990.00620.0221157894736842-0.0159157894736842
1000.0070.0221157894736842-0.0151157894736842
1010.01660.0221157894736842-0.00551578947368421
1020.0180.0221157894736842-0.00411578947368421
1030.02270.02211578947368420.000584210526315791
1040.02460.02211578947368420.00248421052631579
1050.02570.02211578947368420.00358421052631579
1060.02320.02211578947368420.00108421052631579
1070.02910.01262391304347830.0164760869565217
1080.03010.01262391304347830.0174760869565217
1090.02860.01262391304347830.0159760869565217
1100.0310.01262391304347830.0183760869565217
1110.03220.0327027777777778-0.000502777777777776
1120.03390.03270277777777780.00119722222222222
1130.03520.03270277777777780.00249722222222223
1140.03410.03270277777777780.00139722222222222
1150.03350.03270277777777780.000797222222222227
1160.03670.03270277777777780.00399722222222223
1170.03750.03270277777777780.00479722222222222
1180.0360.03270277777777780.00329722222222222
1190.03550.03270277777777780.00279722222222222
1200.03570.03270277777777780.00299722222222223



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