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, 14 Dec 2011 10:18:50 -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/14/t1323876389t00zlvzy1tgwbji.htm/, Retrieved Wed, 01 May 2024 19:28:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=155058, Retrieved Wed, 01 May 2024 19:28:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact109
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Recursive Partitioning (Regression Trees)] [] [2010-12-05 18:59:57] [b98453cac15ba1066b407e146608df68]
-   PD    [Recursive Partitioning (Regression Trees)] [WS10 - Recursive ...] [2011-12-14 15:18:50] [3d1c016f2f3d502d2cccf121bc4326eb] [Current]
- R P       [Recursive Partitioning (Regression Trees)] [paper] [2011-12-22 14:34:01] [2628f630b839c9d14ba9c3627ab0414a]
-   P         [Recursive Partitioning (Regression Trees)] [paper] [2011-12-22 15:01:36] [2628f630b839c9d14ba9c3627ab0414a]
-   P           [Recursive Partitioning (Regression Trees)] [] [2011-12-23 15:45:39] [74be16979710d4c4e7c6647856088456]
Feedback Forum

Post a new message
Dataseries X:
127476	20	17	59	22622
130358	38	17	50	73570
7215	0	0	0	1929
112861	49	22	51	36294
210171	74	30	112	62378
393802	104	31	118	167760
117604	37	19	59	52443
126029	53	25	90	57283
99729	42	30	50	36614
256310	62	26	79	93268
113066	50	20	49	35439
156212	65	25	74	72405
69952	28	15	32	24044
152673	48	22	82	55909
125841	42	12	43	44689
125769	47	19	65	49319
123467	71	28	111	62075
56232	0	12	36	2341
108244	50	28	89	40551
22762	12	13	28	11621
48554	16	14	35	18741
178697	76	27	78	84202
139115	29	25	67	15334
93773	38	30	61	28024
133398	50	21	58	53306
113933	33	17	49	37918
144781	45	22	77	54819
140711	59	28	71	89058
283337	49	25	82	103354
158146	40	16	53	70239
123344	40	23	71	33045
157640	51	20	58	63852
91279	41	11	25	30905
189374	73	20	59	24242
167915	43	21	77	78907
0	0	0	0	0
175403	46	27	75	36005
92342	44	14	39	31972
100023	31	29	83	35853
178277	71	31	123	115301
145062	61	19	67	47689
110980	28	30	105	34223
86039	21	23	76	43431
119514	42	20	54	52220
95535	44	22	82	33863
109894	34	19	57	46879
61554	15	32	57	23228
156520	46	18	72	42827
159121	43	26	94	65765
129362	47	25	72	38167
48188	12	22	39	14812
91198	42	19	60	32615
229864	56	24	84	82188
180317	41	26	69	51763
150640	48	27	102	59325
104416	30	10	28	48976
159645	44	26	65	43384
63205	25	23	67	26692
100056	42	21	80	53279
137214	28	34	79	20652
99630	33	29	107	38338
84557	32	18	57	36735
91199	28	16	44	42764
83419	31	23	59	44331
101723	13	22	80	41354
94982	38	29	89	47879
129700	39	31	115	103793
110708	68	21	59	52235
81518	32	21	66	49825
31970	5	21	42	4105
192268	53	15	35	58687
87611	33	9	3	40745
77890	48	21	68	33187
83261	36	18	38	14063
116290	52	31	107	37407
55254	0	24	69	7190
116173	52	24	80	49562
111488	45	22	69	76324
60138	16	21	46	21928
73422	33	26	52	27860
67751	48	22	58	28078
213351	33	26	85	49577
51185	24	20	13	28145
97181	37	25	61	36241
42311	16	19	49	10824
115801	32	22	47	46892
183637	55	25	93	61264
68161	36	22	65	22933
76441	29	21	64	20787
103613	26	20	64	43978
98707	37	23	57	51305
126527	58	22	61	55593
136781	35	21	71	51648
105863	24	12	43	30552
38775	18	9	18	23470
179984	37	32	103	77530
164808	86	24	76	57299
19349	13	1	0	9604
143902	20	24	83	34684
108660	32	22	70	41094
43803	8	4	4	3439
47062	38	15	41	25171
110845	45	21	57	23437
92517	24	23	52	34086
58660	23	12	24	24649
27676	2	16	17	2342
98550	52	24	89	45571
43284	5	9	20	3255
0	0	0	0	0
66016	43	22	45	30002
57359	18	17	63	19360
96933	41	18	48	43320
70369	45	21	70	35513
65494	29	17	32	23536
3616	0	0	0	0
0	0	0	0	0
143931	32	20	72	54438
109894	58	26	56	56812
122973	17	26	64	33838
84336	24	20	77	32366
43410	7	1	3	13
136250	62	24	73	55082
79015	30	14	37	31334
92937	49	26	54	16612
57586	3	12	32	5084
19764	10	2	4	9927
105757	42	16	55	47413
96410	18	22	81	27389
113402	40	28	90	30425
11796	1	2	1	0
7627	0	0	0	0
121085	29	17	38	33510
6836	0	1	0	0
139563	46	17	36	40389
5118	5	0	0	0
40248	8	4	7	6012
0	0	0	0	0
95079	21	25	75	22205
80750	21	26	52	17231
7131	0	0	0	0
4194	0	0	0	0
60378	15	15	45	11017
96971	40	18	60	46741
83484	17	19	48	39869




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155058&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]3 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=155058&T=0

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







Goodness of Fit
Correlation0.8549
R-squared0.7309
RMSE30544.8607

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8549[/C][/ROW]
[ROW][C]R-squared[/C][C]0.7309[/C][/ROW]
[ROW][C]RMSE[/C][C]30544.8607[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155058&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=155058&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.8549
R-squared0.7309
RMSE30544.8607







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
11274769024837228
2130358160418.214285714-30060.2142857143
372154401.363636363642813.63636363636
4112861116041.606557377-3180.60655737705
5210171160418.21428571449752.7857142857
6393802223837.25169964.75
7117604116041.6065573771562.39344262295
8126029116041.6065573779987.39344262295
999729116041.606557377-16312.606557377
10256310223837.2532472.75
11113066116041.606557377-2975.60655737705
12156212160418.214285714-4206.21428571429
136995290248-20296
14152673116041.60655737736631.393442623
15125841116041.6065573779799.39344262295
16125769116041.6065573779727.39344262295
17123467160418.214285714-36951.2142857143
185623249538.81818181826693.18181818182
19108244116041.606557377-7797.60655737705
202276249538.8181818182-26776.8181818182
214855449538.8181818182-984.818181818184
22178697223837.25-45140.25
231391159024848867
2493773902483525
25133398116041.60655737717356.393442623
26113933116041.606557377-2108.60655737705
27144781116041.60655737728739.393442623
28140711223837.25-83126.25
29283337223837.2559499.75
30158146160418.214285714-2272.21428571429
31123344116041.6065573777302.39344262295
32157640160418.214285714-2778.21428571429
3391279902481031
341893749024899126
35167915160418.2142857147496.78571428571
3604401.36363636364-4401.36363636364
37175403116041.60655737759361.393442623
3892342902482094
39100023116041.606557377-16018.606557377
40178277223837.25-45560.25
41145062116041.60655737729020.393442623
42110980116041.606557377-5061.60655737705
4386039116041.606557377-30002.606557377
44119514116041.6065573773472.39344262295
4595535116041.606557377-20506.606557377
46109894116041.606557377-6147.60655737705
476155449538.818181818212015.1818181818
48156520116041.60655737740478.393442623
49159121160418.214285714-1297.21428571429
50129362116041.60655737713320.393442623
514818849538.8181818182-1350.81818181818
529119890248950
53229864223837.256026.75
54180317116041.60655737764275.393442623
55150640160418.214285714-9778.21428571429
56104416116041.606557377-11625.606557377
57159645116041.60655737743603.393442623
586320590248-27043
59100056116041.606557377-15985.606557377
601372149024846966
6199630116041.606557377-16411.606557377
6284557116041.606557377-31484.606557377
6391199116041.606557377-24842.606557377
6483419116041.606557377-32622.606557377
65101723116041.606557377-14318.606557377
6694982116041.606557377-21059.606557377
67129700223837.25-94137.25
68110708116041.606557377-5333.60655737705
6981518116041.606557377-34523.606557377
703197049538.8181818182-17568.8181818182
71192268160418.21428571431849.7857142857
7287611116041.606557377-28430.606557377
7377890116041.606557377-38151.606557377
748326190248-6987
75116290116041.606557377248.393442622953
765525449538.81818181825715.18181818182
77116173116041.606557377131.393442622953
78111488160418.214285714-48930.2142857143
796013849538.818181818210599.1818181818
807342290248-16826
816775190248-22497
82213351116041.60655737797309.393442623
835118533261.217923.8
8497181116041.606557377-18860.606557377
854231149538.8181818182-7227.81818181818
86115801116041.606557377-240.606557377047
87183637160418.21428571423218.7857142857
886816190248-22087
897644190248-13807
90103613116041.606557377-12428.606557377
9198707116041.606557377-17334.606557377
92126527116041.60655737710485.393442623
93136781116041.60655737720739.393442623
941058639024815615
953877533261.25513.8
96179984160418.21428571419565.7857142857
97164808160418.2142857144389.78571428571
981934933261.2-13912.2
99143902116041.60655737727860.393442623
100108660116041.606557377-7381.60655737705
1014380333261.210541.8
1024706290248-43186
1031108459024820597
10492517116041.606557377-23524.606557377
1055866090248-31588
1062767633261.2-5585.2
10798550116041.606557377-17491.606557377
1084328433261.210022.8
10904401.36363636364-4401.36363636364
1106601690248-24232
1115735990248-32889
11296933116041.606557377-19108.606557377
11370369116041.606557377-45672.606557377
1146549490248-24754
11536164401.36363636364-785.363636363636
11604401.36363636364-4401.36363636364
117143931116041.60655737727889.393442623
118109894116041.606557377-6147.60655737705
119122973116041.6065573776931.39344262295
1208433690248-5912
1214341033261.210148.8
122136250116041.60655737720208.393442623
1237901590248-11233
12492937902482689
1255758649538.81818181828047.18181818182
1261976433261.2-13497.2
127105757116041.606557377-10284.606557377
12896410902486162
1291134029024823154
130117964401.363636363647394.63636363636
13176274401.363636363643225.63636363636
132121085116041.6065573775043.39344262295
13368364401.363636363642434.63636363636
134139563116041.60655737723521.393442623
135511833261.2-28143.2
1364024833261.26986.8
13704401.36363636364-4401.36363636364
13895079902484831
1398075090248-9498
14071314401.363636363642729.63636363636
14141944401.36363636364-207.363636363636
1426037849538.818181818210839.1818181818
14396971116041.606557377-19070.606557377
14483484116041.606557377-32557.606557377

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 127476 & 90248 & 37228 \tabularnewline
2 & 130358 & 160418.214285714 & -30060.2142857143 \tabularnewline
3 & 7215 & 4401.36363636364 & 2813.63636363636 \tabularnewline
4 & 112861 & 116041.606557377 & -3180.60655737705 \tabularnewline
5 & 210171 & 160418.214285714 & 49752.7857142857 \tabularnewline
6 & 393802 & 223837.25 & 169964.75 \tabularnewline
7 & 117604 & 116041.606557377 & 1562.39344262295 \tabularnewline
8 & 126029 & 116041.606557377 & 9987.39344262295 \tabularnewline
9 & 99729 & 116041.606557377 & -16312.606557377 \tabularnewline
10 & 256310 & 223837.25 & 32472.75 \tabularnewline
11 & 113066 & 116041.606557377 & -2975.60655737705 \tabularnewline
12 & 156212 & 160418.214285714 & -4206.21428571429 \tabularnewline
13 & 69952 & 90248 & -20296 \tabularnewline
14 & 152673 & 116041.606557377 & 36631.393442623 \tabularnewline
15 & 125841 & 116041.606557377 & 9799.39344262295 \tabularnewline
16 & 125769 & 116041.606557377 & 9727.39344262295 \tabularnewline
17 & 123467 & 160418.214285714 & -36951.2142857143 \tabularnewline
18 & 56232 & 49538.8181818182 & 6693.18181818182 \tabularnewline
19 & 108244 & 116041.606557377 & -7797.60655737705 \tabularnewline
20 & 22762 & 49538.8181818182 & -26776.8181818182 \tabularnewline
21 & 48554 & 49538.8181818182 & -984.818181818184 \tabularnewline
22 & 178697 & 223837.25 & -45140.25 \tabularnewline
23 & 139115 & 90248 & 48867 \tabularnewline
24 & 93773 & 90248 & 3525 \tabularnewline
25 & 133398 & 116041.606557377 & 17356.393442623 \tabularnewline
26 & 113933 & 116041.606557377 & -2108.60655737705 \tabularnewline
27 & 144781 & 116041.606557377 & 28739.393442623 \tabularnewline
28 & 140711 & 223837.25 & -83126.25 \tabularnewline
29 & 283337 & 223837.25 & 59499.75 \tabularnewline
30 & 158146 & 160418.214285714 & -2272.21428571429 \tabularnewline
31 & 123344 & 116041.606557377 & 7302.39344262295 \tabularnewline
32 & 157640 & 160418.214285714 & -2778.21428571429 \tabularnewline
33 & 91279 & 90248 & 1031 \tabularnewline
34 & 189374 & 90248 & 99126 \tabularnewline
35 & 167915 & 160418.214285714 & 7496.78571428571 \tabularnewline
36 & 0 & 4401.36363636364 & -4401.36363636364 \tabularnewline
37 & 175403 & 116041.606557377 & 59361.393442623 \tabularnewline
38 & 92342 & 90248 & 2094 \tabularnewline
39 & 100023 & 116041.606557377 & -16018.606557377 \tabularnewline
40 & 178277 & 223837.25 & -45560.25 \tabularnewline
41 & 145062 & 116041.606557377 & 29020.393442623 \tabularnewline
42 & 110980 & 116041.606557377 & -5061.60655737705 \tabularnewline
43 & 86039 & 116041.606557377 & -30002.606557377 \tabularnewline
44 & 119514 & 116041.606557377 & 3472.39344262295 \tabularnewline
45 & 95535 & 116041.606557377 & -20506.606557377 \tabularnewline
46 & 109894 & 116041.606557377 & -6147.60655737705 \tabularnewline
47 & 61554 & 49538.8181818182 & 12015.1818181818 \tabularnewline
48 & 156520 & 116041.606557377 & 40478.393442623 \tabularnewline
49 & 159121 & 160418.214285714 & -1297.21428571429 \tabularnewline
50 & 129362 & 116041.606557377 & 13320.393442623 \tabularnewline
51 & 48188 & 49538.8181818182 & -1350.81818181818 \tabularnewline
52 & 91198 & 90248 & 950 \tabularnewline
53 & 229864 & 223837.25 & 6026.75 \tabularnewline
54 & 180317 & 116041.606557377 & 64275.393442623 \tabularnewline
55 & 150640 & 160418.214285714 & -9778.21428571429 \tabularnewline
56 & 104416 & 116041.606557377 & -11625.606557377 \tabularnewline
57 & 159645 & 116041.606557377 & 43603.393442623 \tabularnewline
58 & 63205 & 90248 & -27043 \tabularnewline
59 & 100056 & 116041.606557377 & -15985.606557377 \tabularnewline
60 & 137214 & 90248 & 46966 \tabularnewline
61 & 99630 & 116041.606557377 & -16411.606557377 \tabularnewline
62 & 84557 & 116041.606557377 & -31484.606557377 \tabularnewline
63 & 91199 & 116041.606557377 & -24842.606557377 \tabularnewline
64 & 83419 & 116041.606557377 & -32622.606557377 \tabularnewline
65 & 101723 & 116041.606557377 & -14318.606557377 \tabularnewline
66 & 94982 & 116041.606557377 & -21059.606557377 \tabularnewline
67 & 129700 & 223837.25 & -94137.25 \tabularnewline
68 & 110708 & 116041.606557377 & -5333.60655737705 \tabularnewline
69 & 81518 & 116041.606557377 & -34523.606557377 \tabularnewline
70 & 31970 & 49538.8181818182 & -17568.8181818182 \tabularnewline
71 & 192268 & 160418.214285714 & 31849.7857142857 \tabularnewline
72 & 87611 & 116041.606557377 & -28430.606557377 \tabularnewline
73 & 77890 & 116041.606557377 & -38151.606557377 \tabularnewline
74 & 83261 & 90248 & -6987 \tabularnewline
75 & 116290 & 116041.606557377 & 248.393442622953 \tabularnewline
76 & 55254 & 49538.8181818182 & 5715.18181818182 \tabularnewline
77 & 116173 & 116041.606557377 & 131.393442622953 \tabularnewline
78 & 111488 & 160418.214285714 & -48930.2142857143 \tabularnewline
79 & 60138 & 49538.8181818182 & 10599.1818181818 \tabularnewline
80 & 73422 & 90248 & -16826 \tabularnewline
81 & 67751 & 90248 & -22497 \tabularnewline
82 & 213351 & 116041.606557377 & 97309.393442623 \tabularnewline
83 & 51185 & 33261.2 & 17923.8 \tabularnewline
84 & 97181 & 116041.606557377 & -18860.606557377 \tabularnewline
85 & 42311 & 49538.8181818182 & -7227.81818181818 \tabularnewline
86 & 115801 & 116041.606557377 & -240.606557377047 \tabularnewline
87 & 183637 & 160418.214285714 & 23218.7857142857 \tabularnewline
88 & 68161 & 90248 & -22087 \tabularnewline
89 & 76441 & 90248 & -13807 \tabularnewline
90 & 103613 & 116041.606557377 & -12428.606557377 \tabularnewline
91 & 98707 & 116041.606557377 & -17334.606557377 \tabularnewline
92 & 126527 & 116041.606557377 & 10485.393442623 \tabularnewline
93 & 136781 & 116041.606557377 & 20739.393442623 \tabularnewline
94 & 105863 & 90248 & 15615 \tabularnewline
95 & 38775 & 33261.2 & 5513.8 \tabularnewline
96 & 179984 & 160418.214285714 & 19565.7857142857 \tabularnewline
97 & 164808 & 160418.214285714 & 4389.78571428571 \tabularnewline
98 & 19349 & 33261.2 & -13912.2 \tabularnewline
99 & 143902 & 116041.606557377 & 27860.393442623 \tabularnewline
100 & 108660 & 116041.606557377 & -7381.60655737705 \tabularnewline
101 & 43803 & 33261.2 & 10541.8 \tabularnewline
102 & 47062 & 90248 & -43186 \tabularnewline
103 & 110845 & 90248 & 20597 \tabularnewline
104 & 92517 & 116041.606557377 & -23524.606557377 \tabularnewline
105 & 58660 & 90248 & -31588 \tabularnewline
106 & 27676 & 33261.2 & -5585.2 \tabularnewline
107 & 98550 & 116041.606557377 & -17491.606557377 \tabularnewline
108 & 43284 & 33261.2 & 10022.8 \tabularnewline
109 & 0 & 4401.36363636364 & -4401.36363636364 \tabularnewline
110 & 66016 & 90248 & -24232 \tabularnewline
111 & 57359 & 90248 & -32889 \tabularnewline
112 & 96933 & 116041.606557377 & -19108.606557377 \tabularnewline
113 & 70369 & 116041.606557377 & -45672.606557377 \tabularnewline
114 & 65494 & 90248 & -24754 \tabularnewline
115 & 3616 & 4401.36363636364 & -785.363636363636 \tabularnewline
116 & 0 & 4401.36363636364 & -4401.36363636364 \tabularnewline
117 & 143931 & 116041.606557377 & 27889.393442623 \tabularnewline
118 & 109894 & 116041.606557377 & -6147.60655737705 \tabularnewline
119 & 122973 & 116041.606557377 & 6931.39344262295 \tabularnewline
120 & 84336 & 90248 & -5912 \tabularnewline
121 & 43410 & 33261.2 & 10148.8 \tabularnewline
122 & 136250 & 116041.606557377 & 20208.393442623 \tabularnewline
123 & 79015 & 90248 & -11233 \tabularnewline
124 & 92937 & 90248 & 2689 \tabularnewline
125 & 57586 & 49538.8181818182 & 8047.18181818182 \tabularnewline
126 & 19764 & 33261.2 & -13497.2 \tabularnewline
127 & 105757 & 116041.606557377 & -10284.606557377 \tabularnewline
128 & 96410 & 90248 & 6162 \tabularnewline
129 & 113402 & 90248 & 23154 \tabularnewline
130 & 11796 & 4401.36363636364 & 7394.63636363636 \tabularnewline
131 & 7627 & 4401.36363636364 & 3225.63636363636 \tabularnewline
132 & 121085 & 116041.606557377 & 5043.39344262295 \tabularnewline
133 & 6836 & 4401.36363636364 & 2434.63636363636 \tabularnewline
134 & 139563 & 116041.606557377 & 23521.393442623 \tabularnewline
135 & 5118 & 33261.2 & -28143.2 \tabularnewline
136 & 40248 & 33261.2 & 6986.8 \tabularnewline
137 & 0 & 4401.36363636364 & -4401.36363636364 \tabularnewline
138 & 95079 & 90248 & 4831 \tabularnewline
139 & 80750 & 90248 & -9498 \tabularnewline
140 & 7131 & 4401.36363636364 & 2729.63636363636 \tabularnewline
141 & 4194 & 4401.36363636364 & -207.363636363636 \tabularnewline
142 & 60378 & 49538.8181818182 & 10839.1818181818 \tabularnewline
143 & 96971 & 116041.606557377 & -19070.606557377 \tabularnewline
144 & 83484 & 116041.606557377 & -32557.606557377 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=155058&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]127476[/C][C]90248[/C][C]37228[/C][/ROW]
[ROW][C]2[/C][C]130358[/C][C]160418.214285714[/C][C]-30060.2142857143[/C][/ROW]
[ROW][C]3[/C][C]7215[/C][C]4401.36363636364[/C][C]2813.63636363636[/C][/ROW]
[ROW][C]4[/C][C]112861[/C][C]116041.606557377[/C][C]-3180.60655737705[/C][/ROW]
[ROW][C]5[/C][C]210171[/C][C]160418.214285714[/C][C]49752.7857142857[/C][/ROW]
[ROW][C]6[/C][C]393802[/C][C]223837.25[/C][C]169964.75[/C][/ROW]
[ROW][C]7[/C][C]117604[/C][C]116041.606557377[/C][C]1562.39344262295[/C][/ROW]
[ROW][C]8[/C][C]126029[/C][C]116041.606557377[/C][C]9987.39344262295[/C][/ROW]
[ROW][C]9[/C][C]99729[/C][C]116041.606557377[/C][C]-16312.606557377[/C][/ROW]
[ROW][C]10[/C][C]256310[/C][C]223837.25[/C][C]32472.75[/C][/ROW]
[ROW][C]11[/C][C]113066[/C][C]116041.606557377[/C][C]-2975.60655737705[/C][/ROW]
[ROW][C]12[/C][C]156212[/C][C]160418.214285714[/C][C]-4206.21428571429[/C][/ROW]
[ROW][C]13[/C][C]69952[/C][C]90248[/C][C]-20296[/C][/ROW]
[ROW][C]14[/C][C]152673[/C][C]116041.606557377[/C][C]36631.393442623[/C][/ROW]
[ROW][C]15[/C][C]125841[/C][C]116041.606557377[/C][C]9799.39344262295[/C][/ROW]
[ROW][C]16[/C][C]125769[/C][C]116041.606557377[/C][C]9727.39344262295[/C][/ROW]
[ROW][C]17[/C][C]123467[/C][C]160418.214285714[/C][C]-36951.2142857143[/C][/ROW]
[ROW][C]18[/C][C]56232[/C][C]49538.8181818182[/C][C]6693.18181818182[/C][/ROW]
[ROW][C]19[/C][C]108244[/C][C]116041.606557377[/C][C]-7797.60655737705[/C][/ROW]
[ROW][C]20[/C][C]22762[/C][C]49538.8181818182[/C][C]-26776.8181818182[/C][/ROW]
[ROW][C]21[/C][C]48554[/C][C]49538.8181818182[/C][C]-984.818181818184[/C][/ROW]
[ROW][C]22[/C][C]178697[/C][C]223837.25[/C][C]-45140.25[/C][/ROW]
[ROW][C]23[/C][C]139115[/C][C]90248[/C][C]48867[/C][/ROW]
[ROW][C]24[/C][C]93773[/C][C]90248[/C][C]3525[/C][/ROW]
[ROW][C]25[/C][C]133398[/C][C]116041.606557377[/C][C]17356.393442623[/C][/ROW]
[ROW][C]26[/C][C]113933[/C][C]116041.606557377[/C][C]-2108.60655737705[/C][/ROW]
[ROW][C]27[/C][C]144781[/C][C]116041.606557377[/C][C]28739.393442623[/C][/ROW]
[ROW][C]28[/C][C]140711[/C][C]223837.25[/C][C]-83126.25[/C][/ROW]
[ROW][C]29[/C][C]283337[/C][C]223837.25[/C][C]59499.75[/C][/ROW]
[ROW][C]30[/C][C]158146[/C][C]160418.214285714[/C][C]-2272.21428571429[/C][/ROW]
[ROW][C]31[/C][C]123344[/C][C]116041.606557377[/C][C]7302.39344262295[/C][/ROW]
[ROW][C]32[/C][C]157640[/C][C]160418.214285714[/C][C]-2778.21428571429[/C][/ROW]
[ROW][C]33[/C][C]91279[/C][C]90248[/C][C]1031[/C][/ROW]
[ROW][C]34[/C][C]189374[/C][C]90248[/C][C]99126[/C][/ROW]
[ROW][C]35[/C][C]167915[/C][C]160418.214285714[/C][C]7496.78571428571[/C][/ROW]
[ROW][C]36[/C][C]0[/C][C]4401.36363636364[/C][C]-4401.36363636364[/C][/ROW]
[ROW][C]37[/C][C]175403[/C][C]116041.606557377[/C][C]59361.393442623[/C][/ROW]
[ROW][C]38[/C][C]92342[/C][C]90248[/C][C]2094[/C][/ROW]
[ROW][C]39[/C][C]100023[/C][C]116041.606557377[/C][C]-16018.606557377[/C][/ROW]
[ROW][C]40[/C][C]178277[/C][C]223837.25[/C][C]-45560.25[/C][/ROW]
[ROW][C]41[/C][C]145062[/C][C]116041.606557377[/C][C]29020.393442623[/C][/ROW]
[ROW][C]42[/C][C]110980[/C][C]116041.606557377[/C][C]-5061.60655737705[/C][/ROW]
[ROW][C]43[/C][C]86039[/C][C]116041.606557377[/C][C]-30002.606557377[/C][/ROW]
[ROW][C]44[/C][C]119514[/C][C]116041.606557377[/C][C]3472.39344262295[/C][/ROW]
[ROW][C]45[/C][C]95535[/C][C]116041.606557377[/C][C]-20506.606557377[/C][/ROW]
[ROW][C]46[/C][C]109894[/C][C]116041.606557377[/C][C]-6147.60655737705[/C][/ROW]
[ROW][C]47[/C][C]61554[/C][C]49538.8181818182[/C][C]12015.1818181818[/C][/ROW]
[ROW][C]48[/C][C]156520[/C][C]116041.606557377[/C][C]40478.393442623[/C][/ROW]
[ROW][C]49[/C][C]159121[/C][C]160418.214285714[/C][C]-1297.21428571429[/C][/ROW]
[ROW][C]50[/C][C]129362[/C][C]116041.606557377[/C][C]13320.393442623[/C][/ROW]
[ROW][C]51[/C][C]48188[/C][C]49538.8181818182[/C][C]-1350.81818181818[/C][/ROW]
[ROW][C]52[/C][C]91198[/C][C]90248[/C][C]950[/C][/ROW]
[ROW][C]53[/C][C]229864[/C][C]223837.25[/C][C]6026.75[/C][/ROW]
[ROW][C]54[/C][C]180317[/C][C]116041.606557377[/C][C]64275.393442623[/C][/ROW]
[ROW][C]55[/C][C]150640[/C][C]160418.214285714[/C][C]-9778.21428571429[/C][/ROW]
[ROW][C]56[/C][C]104416[/C][C]116041.606557377[/C][C]-11625.606557377[/C][/ROW]
[ROW][C]57[/C][C]159645[/C][C]116041.606557377[/C][C]43603.393442623[/C][/ROW]
[ROW][C]58[/C][C]63205[/C][C]90248[/C][C]-27043[/C][/ROW]
[ROW][C]59[/C][C]100056[/C][C]116041.606557377[/C][C]-15985.606557377[/C][/ROW]
[ROW][C]60[/C][C]137214[/C][C]90248[/C][C]46966[/C][/ROW]
[ROW][C]61[/C][C]99630[/C][C]116041.606557377[/C][C]-16411.606557377[/C][/ROW]
[ROW][C]62[/C][C]84557[/C][C]116041.606557377[/C][C]-31484.606557377[/C][/ROW]
[ROW][C]63[/C][C]91199[/C][C]116041.606557377[/C][C]-24842.606557377[/C][/ROW]
[ROW][C]64[/C][C]83419[/C][C]116041.606557377[/C][C]-32622.606557377[/C][/ROW]
[ROW][C]65[/C][C]101723[/C][C]116041.606557377[/C][C]-14318.606557377[/C][/ROW]
[ROW][C]66[/C][C]94982[/C][C]116041.606557377[/C][C]-21059.606557377[/C][/ROW]
[ROW][C]67[/C][C]129700[/C][C]223837.25[/C][C]-94137.25[/C][/ROW]
[ROW][C]68[/C][C]110708[/C][C]116041.606557377[/C][C]-5333.60655737705[/C][/ROW]
[ROW][C]69[/C][C]81518[/C][C]116041.606557377[/C][C]-34523.606557377[/C][/ROW]
[ROW][C]70[/C][C]31970[/C][C]49538.8181818182[/C][C]-17568.8181818182[/C][/ROW]
[ROW][C]71[/C][C]192268[/C][C]160418.214285714[/C][C]31849.7857142857[/C][/ROW]
[ROW][C]72[/C][C]87611[/C][C]116041.606557377[/C][C]-28430.606557377[/C][/ROW]
[ROW][C]73[/C][C]77890[/C][C]116041.606557377[/C][C]-38151.606557377[/C][/ROW]
[ROW][C]74[/C][C]83261[/C][C]90248[/C][C]-6987[/C][/ROW]
[ROW][C]75[/C][C]116290[/C][C]116041.606557377[/C][C]248.393442622953[/C][/ROW]
[ROW][C]76[/C][C]55254[/C][C]49538.8181818182[/C][C]5715.18181818182[/C][/ROW]
[ROW][C]77[/C][C]116173[/C][C]116041.606557377[/C][C]131.393442622953[/C][/ROW]
[ROW][C]78[/C][C]111488[/C][C]160418.214285714[/C][C]-48930.2142857143[/C][/ROW]
[ROW][C]79[/C][C]60138[/C][C]49538.8181818182[/C][C]10599.1818181818[/C][/ROW]
[ROW][C]80[/C][C]73422[/C][C]90248[/C][C]-16826[/C][/ROW]
[ROW][C]81[/C][C]67751[/C][C]90248[/C][C]-22497[/C][/ROW]
[ROW][C]82[/C][C]213351[/C][C]116041.606557377[/C][C]97309.393442623[/C][/ROW]
[ROW][C]83[/C][C]51185[/C][C]33261.2[/C][C]17923.8[/C][/ROW]
[ROW][C]84[/C][C]97181[/C][C]116041.606557377[/C][C]-18860.606557377[/C][/ROW]
[ROW][C]85[/C][C]42311[/C][C]49538.8181818182[/C][C]-7227.81818181818[/C][/ROW]
[ROW][C]86[/C][C]115801[/C][C]116041.606557377[/C][C]-240.606557377047[/C][/ROW]
[ROW][C]87[/C][C]183637[/C][C]160418.214285714[/C][C]23218.7857142857[/C][/ROW]
[ROW][C]88[/C][C]68161[/C][C]90248[/C][C]-22087[/C][/ROW]
[ROW][C]89[/C][C]76441[/C][C]90248[/C][C]-13807[/C][/ROW]
[ROW][C]90[/C][C]103613[/C][C]116041.606557377[/C][C]-12428.606557377[/C][/ROW]
[ROW][C]91[/C][C]98707[/C][C]116041.606557377[/C][C]-17334.606557377[/C][/ROW]
[ROW][C]92[/C][C]126527[/C][C]116041.606557377[/C][C]10485.393442623[/C][/ROW]
[ROW][C]93[/C][C]136781[/C][C]116041.606557377[/C][C]20739.393442623[/C][/ROW]
[ROW][C]94[/C][C]105863[/C][C]90248[/C][C]15615[/C][/ROW]
[ROW][C]95[/C][C]38775[/C][C]33261.2[/C][C]5513.8[/C][/ROW]
[ROW][C]96[/C][C]179984[/C][C]160418.214285714[/C][C]19565.7857142857[/C][/ROW]
[ROW][C]97[/C][C]164808[/C][C]160418.214285714[/C][C]4389.78571428571[/C][/ROW]
[ROW][C]98[/C][C]19349[/C][C]33261.2[/C][C]-13912.2[/C][/ROW]
[ROW][C]99[/C][C]143902[/C][C]116041.606557377[/C][C]27860.393442623[/C][/ROW]
[ROW][C]100[/C][C]108660[/C][C]116041.606557377[/C][C]-7381.60655737705[/C][/ROW]
[ROW][C]101[/C][C]43803[/C][C]33261.2[/C][C]10541.8[/C][/ROW]
[ROW][C]102[/C][C]47062[/C][C]90248[/C][C]-43186[/C][/ROW]
[ROW][C]103[/C][C]110845[/C][C]90248[/C][C]20597[/C][/ROW]
[ROW][C]104[/C][C]92517[/C][C]116041.606557377[/C][C]-23524.606557377[/C][/ROW]
[ROW][C]105[/C][C]58660[/C][C]90248[/C][C]-31588[/C][/ROW]
[ROW][C]106[/C][C]27676[/C][C]33261.2[/C][C]-5585.2[/C][/ROW]
[ROW][C]107[/C][C]98550[/C][C]116041.606557377[/C][C]-17491.606557377[/C][/ROW]
[ROW][C]108[/C][C]43284[/C][C]33261.2[/C][C]10022.8[/C][/ROW]
[ROW][C]109[/C][C]0[/C][C]4401.36363636364[/C][C]-4401.36363636364[/C][/ROW]
[ROW][C]110[/C][C]66016[/C][C]90248[/C][C]-24232[/C][/ROW]
[ROW][C]111[/C][C]57359[/C][C]90248[/C][C]-32889[/C][/ROW]
[ROW][C]112[/C][C]96933[/C][C]116041.606557377[/C][C]-19108.606557377[/C][/ROW]
[ROW][C]113[/C][C]70369[/C][C]116041.606557377[/C][C]-45672.606557377[/C][/ROW]
[ROW][C]114[/C][C]65494[/C][C]90248[/C][C]-24754[/C][/ROW]
[ROW][C]115[/C][C]3616[/C][C]4401.36363636364[/C][C]-785.363636363636[/C][/ROW]
[ROW][C]116[/C][C]0[/C][C]4401.36363636364[/C][C]-4401.36363636364[/C][/ROW]
[ROW][C]117[/C][C]143931[/C][C]116041.606557377[/C][C]27889.393442623[/C][/ROW]
[ROW][C]118[/C][C]109894[/C][C]116041.606557377[/C][C]-6147.60655737705[/C][/ROW]
[ROW][C]119[/C][C]122973[/C][C]116041.606557377[/C][C]6931.39344262295[/C][/ROW]
[ROW][C]120[/C][C]84336[/C][C]90248[/C][C]-5912[/C][/ROW]
[ROW][C]121[/C][C]43410[/C][C]33261.2[/C][C]10148.8[/C][/ROW]
[ROW][C]122[/C][C]136250[/C][C]116041.606557377[/C][C]20208.393442623[/C][/ROW]
[ROW][C]123[/C][C]79015[/C][C]90248[/C][C]-11233[/C][/ROW]
[ROW][C]124[/C][C]92937[/C][C]90248[/C][C]2689[/C][/ROW]
[ROW][C]125[/C][C]57586[/C][C]49538.8181818182[/C][C]8047.18181818182[/C][/ROW]
[ROW][C]126[/C][C]19764[/C][C]33261.2[/C][C]-13497.2[/C][/ROW]
[ROW][C]127[/C][C]105757[/C][C]116041.606557377[/C][C]-10284.606557377[/C][/ROW]
[ROW][C]128[/C][C]96410[/C][C]90248[/C][C]6162[/C][/ROW]
[ROW][C]129[/C][C]113402[/C][C]90248[/C][C]23154[/C][/ROW]
[ROW][C]130[/C][C]11796[/C][C]4401.36363636364[/C][C]7394.63636363636[/C][/ROW]
[ROW][C]131[/C][C]7627[/C][C]4401.36363636364[/C][C]3225.63636363636[/C][/ROW]
[ROW][C]132[/C][C]121085[/C][C]116041.606557377[/C][C]5043.39344262295[/C][/ROW]
[ROW][C]133[/C][C]6836[/C][C]4401.36363636364[/C][C]2434.63636363636[/C][/ROW]
[ROW][C]134[/C][C]139563[/C][C]116041.606557377[/C][C]23521.393442623[/C][/ROW]
[ROW][C]135[/C][C]5118[/C][C]33261.2[/C][C]-28143.2[/C][/ROW]
[ROW][C]136[/C][C]40248[/C][C]33261.2[/C][C]6986.8[/C][/ROW]
[ROW][C]137[/C][C]0[/C][C]4401.36363636364[/C][C]-4401.36363636364[/C][/ROW]
[ROW][C]138[/C][C]95079[/C][C]90248[/C][C]4831[/C][/ROW]
[ROW][C]139[/C][C]80750[/C][C]90248[/C][C]-9498[/C][/ROW]
[ROW][C]140[/C][C]7131[/C][C]4401.36363636364[/C][C]2729.63636363636[/C][/ROW]
[ROW][C]141[/C][C]4194[/C][C]4401.36363636364[/C][C]-207.363636363636[/C][/ROW]
[ROW][C]142[/C][C]60378[/C][C]49538.8181818182[/C][C]10839.1818181818[/C][/ROW]
[ROW][C]143[/C][C]96971[/C][C]116041.606557377[/C][C]-19070.606557377[/C][/ROW]
[ROW][C]144[/C][C]83484[/C][C]116041.606557377[/C][C]-32557.606557377[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=155058&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=155058&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
11274769024837228
2130358160418.214285714-30060.2142857143
372154401.363636363642813.63636363636
4112861116041.606557377-3180.60655737705
5210171160418.21428571449752.7857142857
6393802223837.25169964.75
7117604116041.6065573771562.39344262295
8126029116041.6065573779987.39344262295
999729116041.606557377-16312.606557377
10256310223837.2532472.75
11113066116041.606557377-2975.60655737705
12156212160418.214285714-4206.21428571429
136995290248-20296
14152673116041.60655737736631.393442623
15125841116041.6065573779799.39344262295
16125769116041.6065573779727.39344262295
17123467160418.214285714-36951.2142857143
185623249538.81818181826693.18181818182
19108244116041.606557377-7797.60655737705
202276249538.8181818182-26776.8181818182
214855449538.8181818182-984.818181818184
22178697223837.25-45140.25
231391159024848867
2493773902483525
25133398116041.60655737717356.393442623
26113933116041.606557377-2108.60655737705
27144781116041.60655737728739.393442623
28140711223837.25-83126.25
29283337223837.2559499.75
30158146160418.214285714-2272.21428571429
31123344116041.6065573777302.39344262295
32157640160418.214285714-2778.21428571429
3391279902481031
341893749024899126
35167915160418.2142857147496.78571428571
3604401.36363636364-4401.36363636364
37175403116041.60655737759361.393442623
3892342902482094
39100023116041.606557377-16018.606557377
40178277223837.25-45560.25
41145062116041.60655737729020.393442623
42110980116041.606557377-5061.60655737705
4386039116041.606557377-30002.606557377
44119514116041.6065573773472.39344262295
4595535116041.606557377-20506.606557377
46109894116041.606557377-6147.60655737705
476155449538.818181818212015.1818181818
48156520116041.60655737740478.393442623
49159121160418.214285714-1297.21428571429
50129362116041.60655737713320.393442623
514818849538.8181818182-1350.81818181818
529119890248950
53229864223837.256026.75
54180317116041.60655737764275.393442623
55150640160418.214285714-9778.21428571429
56104416116041.606557377-11625.606557377
57159645116041.60655737743603.393442623
586320590248-27043
59100056116041.606557377-15985.606557377
601372149024846966
6199630116041.606557377-16411.606557377
6284557116041.606557377-31484.606557377
6391199116041.606557377-24842.606557377
6483419116041.606557377-32622.606557377
65101723116041.606557377-14318.606557377
6694982116041.606557377-21059.606557377
67129700223837.25-94137.25
68110708116041.606557377-5333.60655737705
6981518116041.606557377-34523.606557377
703197049538.8181818182-17568.8181818182
71192268160418.21428571431849.7857142857
7287611116041.606557377-28430.606557377
7377890116041.606557377-38151.606557377
748326190248-6987
75116290116041.606557377248.393442622953
765525449538.81818181825715.18181818182
77116173116041.606557377131.393442622953
78111488160418.214285714-48930.2142857143
796013849538.818181818210599.1818181818
807342290248-16826
816775190248-22497
82213351116041.60655737797309.393442623
835118533261.217923.8
8497181116041.606557377-18860.606557377
854231149538.8181818182-7227.81818181818
86115801116041.606557377-240.606557377047
87183637160418.21428571423218.7857142857
886816190248-22087
897644190248-13807
90103613116041.606557377-12428.606557377
9198707116041.606557377-17334.606557377
92126527116041.60655737710485.393442623
93136781116041.60655737720739.393442623
941058639024815615
953877533261.25513.8
96179984160418.21428571419565.7857142857
97164808160418.2142857144389.78571428571
981934933261.2-13912.2
99143902116041.60655737727860.393442623
100108660116041.606557377-7381.60655737705
1014380333261.210541.8
1024706290248-43186
1031108459024820597
10492517116041.606557377-23524.606557377
1055866090248-31588
1062767633261.2-5585.2
10798550116041.606557377-17491.606557377
1084328433261.210022.8
10904401.36363636364-4401.36363636364
1106601690248-24232
1115735990248-32889
11296933116041.606557377-19108.606557377
11370369116041.606557377-45672.606557377
1146549490248-24754
11536164401.36363636364-785.363636363636
11604401.36363636364-4401.36363636364
117143931116041.60655737727889.393442623
118109894116041.606557377-6147.60655737705
119122973116041.6065573776931.39344262295
1208433690248-5912
1214341033261.210148.8
122136250116041.60655737720208.393442623
1237901590248-11233
12492937902482689
1255758649538.81818181828047.18181818182
1261976433261.2-13497.2
127105757116041.606557377-10284.606557377
12896410902486162
1291134029024823154
130117964401.363636363647394.63636363636
13176274401.363636363643225.63636363636
132121085116041.6065573775043.39344262295
13368364401.363636363642434.63636363636
134139563116041.60655737723521.393442623
135511833261.2-28143.2
1364024833261.26986.8
13704401.36363636364-4401.36363636364
13895079902484831
1398075090248-9498
14071314401.363636363642729.63636363636
14141944401.36363636364-207.363636363636
1426037849538.818181818210839.1818181818
14396971116041.606557377-19070.606557377
14483484116041.606557377-32557.606557377



Parameters (Session):
par1 = grey ;
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')
}