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, 07 Dec 2012 10:02:41 -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/2012/Dec/07/t1354892623pqll4j8y1vlnu3x.htm/, Retrieved Fri, 26 Apr 2024 01:17:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=197416, Retrieved Fri, 26 Apr 2024 01:17:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact94
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Recursive Partitioning (Regression Trees)] [] [2010-12-05 18:59:57] [b98453cac15ba1066b407e146608df68]
- R PD    [Recursive Partitioning (Regression Trees)] [ws 10] [2012-12-07 15:02:41] [1cff1ff8324fa30b2f172cc4e03abff6] [Current]
Feedback Forum

Post a new message
Dataseries X:
1966	1	41
1966	2	39
1966	3	50
1966	4	40
1966	5	43
1966	6	38
1966	7	44
1966	8	35
1966	9	39
1966	10	35
1966	11	29
1966	12	49
1967	1	50
1967	2	59
1967	3	63
1967	4	32
1967	5	39
1967	6	47
1967	7	53
1967	8	60
1967	9	57
1967	10	52
1967	11	70
1967	12	90
1968	1	74
1968	2	62
1968	3	55
1968	4	84
1968	5	94
1968	6	70
1968	7	108
1968	8	139
1968	9	120
1968	10	97
1968	11	126
1968	12	149
1969	1	158
1969	2	124
1969	3	140
1969	4	109
1969	5	114
1969	6	77
1969	7	120
1969	8	133
1969	9	110
1969	10	92
1969	11	97
1969	12	78
1970	1	99
1970	2	107
1970	3	112
1970	4	90
1970	5	98
1970	6	125
1970	7	155
1970	8	190
1970	9	236
1970	10	189
1970	11	174
1970	12	178
1971	1	136
1971	2	161
1971	3	171
1971	4	149
1971	5	184
1971	6	155
1971	7	276
1971	8	224
1971	9	213
1971	10	279
1971	11	268
1971	12	287
1972	1	238
1972	2	213
1972	3	257
1972	4	293
1972	5	212
1972	6	246
1972	7	353
1972	8	339
1972	9	308
1972	10	247
1972	11	257
1972	12	322
1973	1	298
1973	2	273
1973	3	312
1973	4	249
1973	5	286
1973	6	279
1973	7	309
1973	8	401
1973	9	309
1973	10	328
1973	11	353
1973	12	354
1974	1	327
1974	2	324
1974	3	285
1974	4	243
1974	5	241
1974	6	287
1974	7	355
1974	8	460
1974	9	364
1974	10	487
1974	11	452
1974	12	391
1975	1	500
1975	2	451
1975	3	375
1975	4	372
1975	5	302
1975	6	316
1975	7	398
1975	8	394
1975	9	431
1975	10	431




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

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ fisher.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=197416&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197416&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

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







Goodness of Fit
Correlation0.9445
R-squared0.8921
RMSE41.8791

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.9445[/C][/ROW]
[ROW][C]R-squared[/C][C]0.8921[/C][/ROW]
[ROW][C]RMSE[/C][C]41.8791[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=197416&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197416&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.9445
R-squared0.8921
RMSE41.8791







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
14140.16666666666670.833333333333336
23940.1666666666667-1.16666666666666
35040.16666666666679.83333333333334
44040.1666666666667-0.166666666666664
54340.16666666666672.83333333333334
63840.1666666666667-2.16666666666666
74440.16666666666673.83333333333334
83540.1666666666667-5.16666666666666
93940.1666666666667-1.16666666666666
103540.1666666666667-5.16666666666666
112940.1666666666667-11.1666666666667
124940.16666666666678.83333333333334
135056-6
1459563
1563567
163256-24
173956-17
184756-9
195356-3
2060564
2157561
225256-4
23705614
24905634
2574105.416666666667-31.4166666666667
2662105.416666666667-43.4166666666667
2755105.416666666667-50.4166666666667
2884105.416666666667-21.4166666666667
2994105.416666666667-11.4166666666667
3070105.416666666667-35.4166666666667
31108105.4166666666672.58333333333333
32139105.41666666666733.5833333333333
33120105.41666666666714.5833333333333
3497105.416666666667-8.41666666666667
35126105.41666666666720.5833333333333
36149105.41666666666743.5833333333333
37158105.41666666666752.5833333333333
38124105.41666666666718.5833333333333
39140105.41666666666734.5833333333333
40109105.4166666666673.58333333333333
41114105.4166666666678.58333333333333
4277105.416666666667-28.4166666666667
43120105.41666666666714.5833333333333
44133105.41666666666727.5833333333333
45110105.4166666666674.58333333333333
4692105.416666666667-13.4166666666667
4797105.416666666667-8.41666666666667
4878105.416666666667-27.4166666666667
4999132.25-33.25
50107132.25-25.25
51112132.25-20.25
5290132.25-42.25
5398132.25-34.25
54125132.25-7.25
55155222.416666666667-67.4166666666667
56190222.416666666667-32.4166666666667
57236222.41666666666713.5833333333333
58189222.416666666667-33.4166666666667
59174222.416666666667-48.4166666666667
60178222.416666666667-44.4166666666667
61136132.253.75
62161132.2528.75
63171132.2538.75
64149132.2516.75
65184132.2551.75
66155132.2522.75
67276222.41666666666753.5833333333333
68224222.4166666666671.58333333333334
69213222.416666666667-9.41666666666666
70279222.41666666666756.5833333333333
71268222.41666666666745.5833333333333
72287222.41666666666764.5833333333333
73238263-25
74213263-50
75257263-6
7629326330
77212263-51
78246263-17
79353323.33333333333329.6666666666667
80339323.33333333333315.6666666666667
81308323.333333333333-15.3333333333333
82247323.333333333333-76.3333333333333
83257323.333333333333-66.3333333333333
84322323.333333333333-1.33333333333331
8529826335
8627326310
8731226349
88249263-14
8928626323
9027926316
91309323.333333333333-14.3333333333333
92401323.33333333333377.6666666666667
93309323.333333333333-14.3333333333333
94328323.3333333333334.66666666666669
95353323.33333333333329.6666666666667
96354323.33333333333330.6666666666667
97327372.090909090909-45.0909090909091
98324372.090909090909-48.0909090909091
99285372.090909090909-87.0909090909091
100243372.090909090909-129.090909090909
101241372.090909090909-131.090909090909
102287372.090909090909-85.0909090909091
103355372.090909090909-17.0909090909091
104460372.09090909090987.9090909090909
105364372.090909090909-8.09090909090907
106487372.090909090909114.909090909091
107452372.09090909090979.9090909090909
108391372.09090909090918.9090909090909
109500372.090909090909127.909090909091
110451372.09090909090978.9090909090909
111375372.0909090909092.90909090909093
112372372.090909090909-0.0909090909090651
113302372.090909090909-70.0909090909091
114316372.090909090909-56.0909090909091
115398372.09090909090925.9090909090909
116394372.09090909090921.9090909090909
117431372.09090909090958.9090909090909
118431372.09090909090958.9090909090909

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 41 & 40.1666666666667 & 0.833333333333336 \tabularnewline
2 & 39 & 40.1666666666667 & -1.16666666666666 \tabularnewline
3 & 50 & 40.1666666666667 & 9.83333333333334 \tabularnewline
4 & 40 & 40.1666666666667 & -0.166666666666664 \tabularnewline
5 & 43 & 40.1666666666667 & 2.83333333333334 \tabularnewline
6 & 38 & 40.1666666666667 & -2.16666666666666 \tabularnewline
7 & 44 & 40.1666666666667 & 3.83333333333334 \tabularnewline
8 & 35 & 40.1666666666667 & -5.16666666666666 \tabularnewline
9 & 39 & 40.1666666666667 & -1.16666666666666 \tabularnewline
10 & 35 & 40.1666666666667 & -5.16666666666666 \tabularnewline
11 & 29 & 40.1666666666667 & -11.1666666666667 \tabularnewline
12 & 49 & 40.1666666666667 & 8.83333333333334 \tabularnewline
13 & 50 & 56 & -6 \tabularnewline
14 & 59 & 56 & 3 \tabularnewline
15 & 63 & 56 & 7 \tabularnewline
16 & 32 & 56 & -24 \tabularnewline
17 & 39 & 56 & -17 \tabularnewline
18 & 47 & 56 & -9 \tabularnewline
19 & 53 & 56 & -3 \tabularnewline
20 & 60 & 56 & 4 \tabularnewline
21 & 57 & 56 & 1 \tabularnewline
22 & 52 & 56 & -4 \tabularnewline
23 & 70 & 56 & 14 \tabularnewline
24 & 90 & 56 & 34 \tabularnewline
25 & 74 & 105.416666666667 & -31.4166666666667 \tabularnewline
26 & 62 & 105.416666666667 & -43.4166666666667 \tabularnewline
27 & 55 & 105.416666666667 & -50.4166666666667 \tabularnewline
28 & 84 & 105.416666666667 & -21.4166666666667 \tabularnewline
29 & 94 & 105.416666666667 & -11.4166666666667 \tabularnewline
30 & 70 & 105.416666666667 & -35.4166666666667 \tabularnewline
31 & 108 & 105.416666666667 & 2.58333333333333 \tabularnewline
32 & 139 & 105.416666666667 & 33.5833333333333 \tabularnewline
33 & 120 & 105.416666666667 & 14.5833333333333 \tabularnewline
34 & 97 & 105.416666666667 & -8.41666666666667 \tabularnewline
35 & 126 & 105.416666666667 & 20.5833333333333 \tabularnewline
36 & 149 & 105.416666666667 & 43.5833333333333 \tabularnewline
37 & 158 & 105.416666666667 & 52.5833333333333 \tabularnewline
38 & 124 & 105.416666666667 & 18.5833333333333 \tabularnewline
39 & 140 & 105.416666666667 & 34.5833333333333 \tabularnewline
40 & 109 & 105.416666666667 & 3.58333333333333 \tabularnewline
41 & 114 & 105.416666666667 & 8.58333333333333 \tabularnewline
42 & 77 & 105.416666666667 & -28.4166666666667 \tabularnewline
43 & 120 & 105.416666666667 & 14.5833333333333 \tabularnewline
44 & 133 & 105.416666666667 & 27.5833333333333 \tabularnewline
45 & 110 & 105.416666666667 & 4.58333333333333 \tabularnewline
46 & 92 & 105.416666666667 & -13.4166666666667 \tabularnewline
47 & 97 & 105.416666666667 & -8.41666666666667 \tabularnewline
48 & 78 & 105.416666666667 & -27.4166666666667 \tabularnewline
49 & 99 & 132.25 & -33.25 \tabularnewline
50 & 107 & 132.25 & -25.25 \tabularnewline
51 & 112 & 132.25 & -20.25 \tabularnewline
52 & 90 & 132.25 & -42.25 \tabularnewline
53 & 98 & 132.25 & -34.25 \tabularnewline
54 & 125 & 132.25 & -7.25 \tabularnewline
55 & 155 & 222.416666666667 & -67.4166666666667 \tabularnewline
56 & 190 & 222.416666666667 & -32.4166666666667 \tabularnewline
57 & 236 & 222.416666666667 & 13.5833333333333 \tabularnewline
58 & 189 & 222.416666666667 & -33.4166666666667 \tabularnewline
59 & 174 & 222.416666666667 & -48.4166666666667 \tabularnewline
60 & 178 & 222.416666666667 & -44.4166666666667 \tabularnewline
61 & 136 & 132.25 & 3.75 \tabularnewline
62 & 161 & 132.25 & 28.75 \tabularnewline
63 & 171 & 132.25 & 38.75 \tabularnewline
64 & 149 & 132.25 & 16.75 \tabularnewline
65 & 184 & 132.25 & 51.75 \tabularnewline
66 & 155 & 132.25 & 22.75 \tabularnewline
67 & 276 & 222.416666666667 & 53.5833333333333 \tabularnewline
68 & 224 & 222.416666666667 & 1.58333333333334 \tabularnewline
69 & 213 & 222.416666666667 & -9.41666666666666 \tabularnewline
70 & 279 & 222.416666666667 & 56.5833333333333 \tabularnewline
71 & 268 & 222.416666666667 & 45.5833333333333 \tabularnewline
72 & 287 & 222.416666666667 & 64.5833333333333 \tabularnewline
73 & 238 & 263 & -25 \tabularnewline
74 & 213 & 263 & -50 \tabularnewline
75 & 257 & 263 & -6 \tabularnewline
76 & 293 & 263 & 30 \tabularnewline
77 & 212 & 263 & -51 \tabularnewline
78 & 246 & 263 & -17 \tabularnewline
79 & 353 & 323.333333333333 & 29.6666666666667 \tabularnewline
80 & 339 & 323.333333333333 & 15.6666666666667 \tabularnewline
81 & 308 & 323.333333333333 & -15.3333333333333 \tabularnewline
82 & 247 & 323.333333333333 & -76.3333333333333 \tabularnewline
83 & 257 & 323.333333333333 & -66.3333333333333 \tabularnewline
84 & 322 & 323.333333333333 & -1.33333333333331 \tabularnewline
85 & 298 & 263 & 35 \tabularnewline
86 & 273 & 263 & 10 \tabularnewline
87 & 312 & 263 & 49 \tabularnewline
88 & 249 & 263 & -14 \tabularnewline
89 & 286 & 263 & 23 \tabularnewline
90 & 279 & 263 & 16 \tabularnewline
91 & 309 & 323.333333333333 & -14.3333333333333 \tabularnewline
92 & 401 & 323.333333333333 & 77.6666666666667 \tabularnewline
93 & 309 & 323.333333333333 & -14.3333333333333 \tabularnewline
94 & 328 & 323.333333333333 & 4.66666666666669 \tabularnewline
95 & 353 & 323.333333333333 & 29.6666666666667 \tabularnewline
96 & 354 & 323.333333333333 & 30.6666666666667 \tabularnewline
97 & 327 & 372.090909090909 & -45.0909090909091 \tabularnewline
98 & 324 & 372.090909090909 & -48.0909090909091 \tabularnewline
99 & 285 & 372.090909090909 & -87.0909090909091 \tabularnewline
100 & 243 & 372.090909090909 & -129.090909090909 \tabularnewline
101 & 241 & 372.090909090909 & -131.090909090909 \tabularnewline
102 & 287 & 372.090909090909 & -85.0909090909091 \tabularnewline
103 & 355 & 372.090909090909 & -17.0909090909091 \tabularnewline
104 & 460 & 372.090909090909 & 87.9090909090909 \tabularnewline
105 & 364 & 372.090909090909 & -8.09090909090907 \tabularnewline
106 & 487 & 372.090909090909 & 114.909090909091 \tabularnewline
107 & 452 & 372.090909090909 & 79.9090909090909 \tabularnewline
108 & 391 & 372.090909090909 & 18.9090909090909 \tabularnewline
109 & 500 & 372.090909090909 & 127.909090909091 \tabularnewline
110 & 451 & 372.090909090909 & 78.9090909090909 \tabularnewline
111 & 375 & 372.090909090909 & 2.90909090909093 \tabularnewline
112 & 372 & 372.090909090909 & -0.0909090909090651 \tabularnewline
113 & 302 & 372.090909090909 & -70.0909090909091 \tabularnewline
114 & 316 & 372.090909090909 & -56.0909090909091 \tabularnewline
115 & 398 & 372.090909090909 & 25.9090909090909 \tabularnewline
116 & 394 & 372.090909090909 & 21.9090909090909 \tabularnewline
117 & 431 & 372.090909090909 & 58.9090909090909 \tabularnewline
118 & 431 & 372.090909090909 & 58.9090909090909 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=197416&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]41[/C][C]40.1666666666667[/C][C]0.833333333333336[/C][/ROW]
[ROW][C]2[/C][C]39[/C][C]40.1666666666667[/C][C]-1.16666666666666[/C][/ROW]
[ROW][C]3[/C][C]50[/C][C]40.1666666666667[/C][C]9.83333333333334[/C][/ROW]
[ROW][C]4[/C][C]40[/C][C]40.1666666666667[/C][C]-0.166666666666664[/C][/ROW]
[ROW][C]5[/C][C]43[/C][C]40.1666666666667[/C][C]2.83333333333334[/C][/ROW]
[ROW][C]6[/C][C]38[/C][C]40.1666666666667[/C][C]-2.16666666666666[/C][/ROW]
[ROW][C]7[/C][C]44[/C][C]40.1666666666667[/C][C]3.83333333333334[/C][/ROW]
[ROW][C]8[/C][C]35[/C][C]40.1666666666667[/C][C]-5.16666666666666[/C][/ROW]
[ROW][C]9[/C][C]39[/C][C]40.1666666666667[/C][C]-1.16666666666666[/C][/ROW]
[ROW][C]10[/C][C]35[/C][C]40.1666666666667[/C][C]-5.16666666666666[/C][/ROW]
[ROW][C]11[/C][C]29[/C][C]40.1666666666667[/C][C]-11.1666666666667[/C][/ROW]
[ROW][C]12[/C][C]49[/C][C]40.1666666666667[/C][C]8.83333333333334[/C][/ROW]
[ROW][C]13[/C][C]50[/C][C]56[/C][C]-6[/C][/ROW]
[ROW][C]14[/C][C]59[/C][C]56[/C][C]3[/C][/ROW]
[ROW][C]15[/C][C]63[/C][C]56[/C][C]7[/C][/ROW]
[ROW][C]16[/C][C]32[/C][C]56[/C][C]-24[/C][/ROW]
[ROW][C]17[/C][C]39[/C][C]56[/C][C]-17[/C][/ROW]
[ROW][C]18[/C][C]47[/C][C]56[/C][C]-9[/C][/ROW]
[ROW][C]19[/C][C]53[/C][C]56[/C][C]-3[/C][/ROW]
[ROW][C]20[/C][C]60[/C][C]56[/C][C]4[/C][/ROW]
[ROW][C]21[/C][C]57[/C][C]56[/C][C]1[/C][/ROW]
[ROW][C]22[/C][C]52[/C][C]56[/C][C]-4[/C][/ROW]
[ROW][C]23[/C][C]70[/C][C]56[/C][C]14[/C][/ROW]
[ROW][C]24[/C][C]90[/C][C]56[/C][C]34[/C][/ROW]
[ROW][C]25[/C][C]74[/C][C]105.416666666667[/C][C]-31.4166666666667[/C][/ROW]
[ROW][C]26[/C][C]62[/C][C]105.416666666667[/C][C]-43.4166666666667[/C][/ROW]
[ROW][C]27[/C][C]55[/C][C]105.416666666667[/C][C]-50.4166666666667[/C][/ROW]
[ROW][C]28[/C][C]84[/C][C]105.416666666667[/C][C]-21.4166666666667[/C][/ROW]
[ROW][C]29[/C][C]94[/C][C]105.416666666667[/C][C]-11.4166666666667[/C][/ROW]
[ROW][C]30[/C][C]70[/C][C]105.416666666667[/C][C]-35.4166666666667[/C][/ROW]
[ROW][C]31[/C][C]108[/C][C]105.416666666667[/C][C]2.58333333333333[/C][/ROW]
[ROW][C]32[/C][C]139[/C][C]105.416666666667[/C][C]33.5833333333333[/C][/ROW]
[ROW][C]33[/C][C]120[/C][C]105.416666666667[/C][C]14.5833333333333[/C][/ROW]
[ROW][C]34[/C][C]97[/C][C]105.416666666667[/C][C]-8.41666666666667[/C][/ROW]
[ROW][C]35[/C][C]126[/C][C]105.416666666667[/C][C]20.5833333333333[/C][/ROW]
[ROW][C]36[/C][C]149[/C][C]105.416666666667[/C][C]43.5833333333333[/C][/ROW]
[ROW][C]37[/C][C]158[/C][C]105.416666666667[/C][C]52.5833333333333[/C][/ROW]
[ROW][C]38[/C][C]124[/C][C]105.416666666667[/C][C]18.5833333333333[/C][/ROW]
[ROW][C]39[/C][C]140[/C][C]105.416666666667[/C][C]34.5833333333333[/C][/ROW]
[ROW][C]40[/C][C]109[/C][C]105.416666666667[/C][C]3.58333333333333[/C][/ROW]
[ROW][C]41[/C][C]114[/C][C]105.416666666667[/C][C]8.58333333333333[/C][/ROW]
[ROW][C]42[/C][C]77[/C][C]105.416666666667[/C][C]-28.4166666666667[/C][/ROW]
[ROW][C]43[/C][C]120[/C][C]105.416666666667[/C][C]14.5833333333333[/C][/ROW]
[ROW][C]44[/C][C]133[/C][C]105.416666666667[/C][C]27.5833333333333[/C][/ROW]
[ROW][C]45[/C][C]110[/C][C]105.416666666667[/C][C]4.58333333333333[/C][/ROW]
[ROW][C]46[/C][C]92[/C][C]105.416666666667[/C][C]-13.4166666666667[/C][/ROW]
[ROW][C]47[/C][C]97[/C][C]105.416666666667[/C][C]-8.41666666666667[/C][/ROW]
[ROW][C]48[/C][C]78[/C][C]105.416666666667[/C][C]-27.4166666666667[/C][/ROW]
[ROW][C]49[/C][C]99[/C][C]132.25[/C][C]-33.25[/C][/ROW]
[ROW][C]50[/C][C]107[/C][C]132.25[/C][C]-25.25[/C][/ROW]
[ROW][C]51[/C][C]112[/C][C]132.25[/C][C]-20.25[/C][/ROW]
[ROW][C]52[/C][C]90[/C][C]132.25[/C][C]-42.25[/C][/ROW]
[ROW][C]53[/C][C]98[/C][C]132.25[/C][C]-34.25[/C][/ROW]
[ROW][C]54[/C][C]125[/C][C]132.25[/C][C]-7.25[/C][/ROW]
[ROW][C]55[/C][C]155[/C][C]222.416666666667[/C][C]-67.4166666666667[/C][/ROW]
[ROW][C]56[/C][C]190[/C][C]222.416666666667[/C][C]-32.4166666666667[/C][/ROW]
[ROW][C]57[/C][C]236[/C][C]222.416666666667[/C][C]13.5833333333333[/C][/ROW]
[ROW][C]58[/C][C]189[/C][C]222.416666666667[/C][C]-33.4166666666667[/C][/ROW]
[ROW][C]59[/C][C]174[/C][C]222.416666666667[/C][C]-48.4166666666667[/C][/ROW]
[ROW][C]60[/C][C]178[/C][C]222.416666666667[/C][C]-44.4166666666667[/C][/ROW]
[ROW][C]61[/C][C]136[/C][C]132.25[/C][C]3.75[/C][/ROW]
[ROW][C]62[/C][C]161[/C][C]132.25[/C][C]28.75[/C][/ROW]
[ROW][C]63[/C][C]171[/C][C]132.25[/C][C]38.75[/C][/ROW]
[ROW][C]64[/C][C]149[/C][C]132.25[/C][C]16.75[/C][/ROW]
[ROW][C]65[/C][C]184[/C][C]132.25[/C][C]51.75[/C][/ROW]
[ROW][C]66[/C][C]155[/C][C]132.25[/C][C]22.75[/C][/ROW]
[ROW][C]67[/C][C]276[/C][C]222.416666666667[/C][C]53.5833333333333[/C][/ROW]
[ROW][C]68[/C][C]224[/C][C]222.416666666667[/C][C]1.58333333333334[/C][/ROW]
[ROW][C]69[/C][C]213[/C][C]222.416666666667[/C][C]-9.41666666666666[/C][/ROW]
[ROW][C]70[/C][C]279[/C][C]222.416666666667[/C][C]56.5833333333333[/C][/ROW]
[ROW][C]71[/C][C]268[/C][C]222.416666666667[/C][C]45.5833333333333[/C][/ROW]
[ROW][C]72[/C][C]287[/C][C]222.416666666667[/C][C]64.5833333333333[/C][/ROW]
[ROW][C]73[/C][C]238[/C][C]263[/C][C]-25[/C][/ROW]
[ROW][C]74[/C][C]213[/C][C]263[/C][C]-50[/C][/ROW]
[ROW][C]75[/C][C]257[/C][C]263[/C][C]-6[/C][/ROW]
[ROW][C]76[/C][C]293[/C][C]263[/C][C]30[/C][/ROW]
[ROW][C]77[/C][C]212[/C][C]263[/C][C]-51[/C][/ROW]
[ROW][C]78[/C][C]246[/C][C]263[/C][C]-17[/C][/ROW]
[ROW][C]79[/C][C]353[/C][C]323.333333333333[/C][C]29.6666666666667[/C][/ROW]
[ROW][C]80[/C][C]339[/C][C]323.333333333333[/C][C]15.6666666666667[/C][/ROW]
[ROW][C]81[/C][C]308[/C][C]323.333333333333[/C][C]-15.3333333333333[/C][/ROW]
[ROW][C]82[/C][C]247[/C][C]323.333333333333[/C][C]-76.3333333333333[/C][/ROW]
[ROW][C]83[/C][C]257[/C][C]323.333333333333[/C][C]-66.3333333333333[/C][/ROW]
[ROW][C]84[/C][C]322[/C][C]323.333333333333[/C][C]-1.33333333333331[/C][/ROW]
[ROW][C]85[/C][C]298[/C][C]263[/C][C]35[/C][/ROW]
[ROW][C]86[/C][C]273[/C][C]263[/C][C]10[/C][/ROW]
[ROW][C]87[/C][C]312[/C][C]263[/C][C]49[/C][/ROW]
[ROW][C]88[/C][C]249[/C][C]263[/C][C]-14[/C][/ROW]
[ROW][C]89[/C][C]286[/C][C]263[/C][C]23[/C][/ROW]
[ROW][C]90[/C][C]279[/C][C]263[/C][C]16[/C][/ROW]
[ROW][C]91[/C][C]309[/C][C]323.333333333333[/C][C]-14.3333333333333[/C][/ROW]
[ROW][C]92[/C][C]401[/C][C]323.333333333333[/C][C]77.6666666666667[/C][/ROW]
[ROW][C]93[/C][C]309[/C][C]323.333333333333[/C][C]-14.3333333333333[/C][/ROW]
[ROW][C]94[/C][C]328[/C][C]323.333333333333[/C][C]4.66666666666669[/C][/ROW]
[ROW][C]95[/C][C]353[/C][C]323.333333333333[/C][C]29.6666666666667[/C][/ROW]
[ROW][C]96[/C][C]354[/C][C]323.333333333333[/C][C]30.6666666666667[/C][/ROW]
[ROW][C]97[/C][C]327[/C][C]372.090909090909[/C][C]-45.0909090909091[/C][/ROW]
[ROW][C]98[/C][C]324[/C][C]372.090909090909[/C][C]-48.0909090909091[/C][/ROW]
[ROW][C]99[/C][C]285[/C][C]372.090909090909[/C][C]-87.0909090909091[/C][/ROW]
[ROW][C]100[/C][C]243[/C][C]372.090909090909[/C][C]-129.090909090909[/C][/ROW]
[ROW][C]101[/C][C]241[/C][C]372.090909090909[/C][C]-131.090909090909[/C][/ROW]
[ROW][C]102[/C][C]287[/C][C]372.090909090909[/C][C]-85.0909090909091[/C][/ROW]
[ROW][C]103[/C][C]355[/C][C]372.090909090909[/C][C]-17.0909090909091[/C][/ROW]
[ROW][C]104[/C][C]460[/C][C]372.090909090909[/C][C]87.9090909090909[/C][/ROW]
[ROW][C]105[/C][C]364[/C][C]372.090909090909[/C][C]-8.09090909090907[/C][/ROW]
[ROW][C]106[/C][C]487[/C][C]372.090909090909[/C][C]114.909090909091[/C][/ROW]
[ROW][C]107[/C][C]452[/C][C]372.090909090909[/C][C]79.9090909090909[/C][/ROW]
[ROW][C]108[/C][C]391[/C][C]372.090909090909[/C][C]18.9090909090909[/C][/ROW]
[ROW][C]109[/C][C]500[/C][C]372.090909090909[/C][C]127.909090909091[/C][/ROW]
[ROW][C]110[/C][C]451[/C][C]372.090909090909[/C][C]78.9090909090909[/C][/ROW]
[ROW][C]111[/C][C]375[/C][C]372.090909090909[/C][C]2.90909090909093[/C][/ROW]
[ROW][C]112[/C][C]372[/C][C]372.090909090909[/C][C]-0.0909090909090651[/C][/ROW]
[ROW][C]113[/C][C]302[/C][C]372.090909090909[/C][C]-70.0909090909091[/C][/ROW]
[ROW][C]114[/C][C]316[/C][C]372.090909090909[/C][C]-56.0909090909091[/C][/ROW]
[ROW][C]115[/C][C]398[/C][C]372.090909090909[/C][C]25.9090909090909[/C][/ROW]
[ROW][C]116[/C][C]394[/C][C]372.090909090909[/C][C]21.9090909090909[/C][/ROW]
[ROW][C]117[/C][C]431[/C][C]372.090909090909[/C][C]58.9090909090909[/C][/ROW]
[ROW][C]118[/C][C]431[/C][C]372.090909090909[/C][C]58.9090909090909[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=197416&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=197416&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
14140.16666666666670.833333333333336
23940.1666666666667-1.16666666666666
35040.16666666666679.83333333333334
44040.1666666666667-0.166666666666664
54340.16666666666672.83333333333334
63840.1666666666667-2.16666666666666
74440.16666666666673.83333333333334
83540.1666666666667-5.16666666666666
93940.1666666666667-1.16666666666666
103540.1666666666667-5.16666666666666
112940.1666666666667-11.1666666666667
124940.16666666666678.83333333333334
135056-6
1459563
1563567
163256-24
173956-17
184756-9
195356-3
2060564
2157561
225256-4
23705614
24905634
2574105.416666666667-31.4166666666667
2662105.416666666667-43.4166666666667
2755105.416666666667-50.4166666666667
2884105.416666666667-21.4166666666667
2994105.416666666667-11.4166666666667
3070105.416666666667-35.4166666666667
31108105.4166666666672.58333333333333
32139105.41666666666733.5833333333333
33120105.41666666666714.5833333333333
3497105.416666666667-8.41666666666667
35126105.41666666666720.5833333333333
36149105.41666666666743.5833333333333
37158105.41666666666752.5833333333333
38124105.41666666666718.5833333333333
39140105.41666666666734.5833333333333
40109105.4166666666673.58333333333333
41114105.4166666666678.58333333333333
4277105.416666666667-28.4166666666667
43120105.41666666666714.5833333333333
44133105.41666666666727.5833333333333
45110105.4166666666674.58333333333333
4692105.416666666667-13.4166666666667
4797105.416666666667-8.41666666666667
4878105.416666666667-27.4166666666667
4999132.25-33.25
50107132.25-25.25
51112132.25-20.25
5290132.25-42.25
5398132.25-34.25
54125132.25-7.25
55155222.416666666667-67.4166666666667
56190222.416666666667-32.4166666666667
57236222.41666666666713.5833333333333
58189222.416666666667-33.4166666666667
59174222.416666666667-48.4166666666667
60178222.416666666667-44.4166666666667
61136132.253.75
62161132.2528.75
63171132.2538.75
64149132.2516.75
65184132.2551.75
66155132.2522.75
67276222.41666666666753.5833333333333
68224222.4166666666671.58333333333334
69213222.416666666667-9.41666666666666
70279222.41666666666756.5833333333333
71268222.41666666666745.5833333333333
72287222.41666666666764.5833333333333
73238263-25
74213263-50
75257263-6
7629326330
77212263-51
78246263-17
79353323.33333333333329.6666666666667
80339323.33333333333315.6666666666667
81308323.333333333333-15.3333333333333
82247323.333333333333-76.3333333333333
83257323.333333333333-66.3333333333333
84322323.333333333333-1.33333333333331
8529826335
8627326310
8731226349
88249263-14
8928626323
9027926316
91309323.333333333333-14.3333333333333
92401323.33333333333377.6666666666667
93309323.333333333333-14.3333333333333
94328323.3333333333334.66666666666669
95353323.33333333333329.6666666666667
96354323.33333333333330.6666666666667
97327372.090909090909-45.0909090909091
98324372.090909090909-48.0909090909091
99285372.090909090909-87.0909090909091
100243372.090909090909-129.090909090909
101241372.090909090909-131.090909090909
102287372.090909090909-85.0909090909091
103355372.090909090909-17.0909090909091
104460372.09090909090987.9090909090909
105364372.090909090909-8.09090909090907
106487372.090909090909114.909090909091
107452372.09090909090979.9090909090909
108391372.09090909090918.9090909090909
109500372.090909090909127.909090909091
110451372.09090909090978.9090909090909
111375372.0909090909092.90909090909093
112372372.090909090909-0.0909090909090651
113302372.090909090909-70.0909090909091
114316372.090909090909-56.0909090909091
115398372.09090909090925.9090909090909
116394372.09090909090921.9090909090909
117431372.09090909090958.9090909090909
118431372.09090909090958.9090909090909



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