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 computationSun, 18 Dec 2011 11:28:33 -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/18/t13242260584qbjw7ee0owtfri.htm/, Retrieved Sun, 05 May 2024 17:04:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=157057, Retrieved Sun, 05 May 2024 17:04:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact141
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Paired and Unpaired Two Samples Tests about the Mean] [] [2010-11-18 18:11:09] [2e1e44f0ae3cb9513dc28781dfdb387b]
-    D  [Paired and Unpaired Two Samples Tests about the Mean] [] [2011-10-26 14:24:41] [5c12c14850e1dddd68cd7e26a7cf987c]
- RMPD    [(Partial) Autocorrelation Function] [Auto Correlation ...] [2011-12-18 12:54:39] [5c12c14850e1dddd68cd7e26a7cf987c]
- RMPD        [Recursive Partitioning (Regression Trees)] [Regression Trees] [2011-12-18 16:28:33] [12a6074303e7dbf450a4f3ff6a9ce824] [Current]
-    D          [Recursive Partitioning (Regression Trees)] [Regression Trees 2] [2011-12-18 16:38:19] [5c12c14850e1dddd68cd7e26a7cf987c]
Feedback Forum

Post a new message
Dataseries X:
449290	1769	240	118	151036	26258
312831	810	111	55	92556	14881
275326	919	91	67	57803	16957
266451	769	68	60	68701	18717
244190	712	57	39	41152	8464
233497	760	61	82	92596	26641
229437	664	77	55	35728	9724
221399	1118	129	76	54002	20323
218900	624	217	55	62897	22557
215480	694	104	45	57021	14612
214975	861	117	76	58092	4362
204812	910	108	53	29245	6372
200652	975	99	75	47007	13448
200609	742	48	54	42009	14349
191923	890	58	46	36022	10881
191463	697	90	78	83700	20517
189007	651	87	63	46456	13275
186704	456	60	50	38844	8030
184024	815	40	52	40078	16318
183873	726	95	26	46609	11252
182328	526	61	95	73116	11219
178613	483	67	68	74990	19365
178228	628	67	73	49598	14426
176034	597	68	35	40400	2570
174876	584	54	53	29010	9863
174181	616	149	58	58534	15657
173779	588	80	43	66616	21224
172071	611	64	71	52143	20488
168465	426	52	45	33629	10265
166226	880	86	30	57476	7768
164516	496	42	54	31076	10462
161553	734	74	54	63369	5989
156916	562	85	48	20465	6200
155934	297	77	67	44663	15329
154806	301	38	35	27525	10698
153278	606	56	48	57786	6837
152455	474	65	67	41211	9188
151621	427	41	50	34711	9556
150416	384	54	62	31172	8247
148950	407	56	39	37477	7028
148531	395	32	25	23284	5753
147766	535	92	26	28549	6852
146552	875	55	62	41554	10615
146020	771	71	40	29351	9289
144677	452	77	54	59147	6185
144193	627	60	67	92901	12964
143910	496	46	32	48140	8895
143546	569	80	50	36205	5299
141868	497	37	48	44810	9435
140935	375	49	45	28735	5389
140303	756	89	59	75043	9970
139901	282	85	40	37403	13958
139780	513	25	39	30165	7233
139075	587	69	66	76542	13178
136333	539	75	68	66856	14884
136220	518	48	30	40715	7820
134379	498	53	42	33287	10165
134153	391	52	75	78950	24369
131263	449	52	33	100674	7642
130414	454	52	50	33277	13823
129419	495	45	35	53349	13073
128907	843	65	83	29653	9422
126905	538	54	64	34241	11580
126602	597	53	31	44093	15604
125760	471	49	46	26757	9831
125728	298	42	78	33994	12840
124626	466	57	27	53216	6616
124401	405	41	49	31032	7987
122294	721	82	54	46154	17327
122259	618	91	49	25629	8874
121593	629	71	50	49830	8058
121391	468	41	48	28113	8683
120414	661	95	53	74608	7192
120111	273	47	47	39644	13400
119070	465	50	35	23110	8374
115944	360	44	51	32665	8208
115572	535	37	45	65897	12112
115343	347	56	43	61281	10170
113870	381	61	67	30874	12396
113245	287	37	36	38610	6873
111940	315	59	47	35139	14146
111924	497	49	55	41194	4260
109807	372	56	52	32683	10566
108685	341	26	23	22527	5953
106742	366	65	25	37941	5322
104972	352	61	36	50008	5413
102378	248	36	48	64622	12310
102194	384	33	44	25820	7573
102141	673	71	36	31141	7230
101560	442	65	46	13310	3394
100798	312	43	25	28470	8191
98629	560	49	38	33797	5162
97181	438	32	37	28263	10226
95704	322	42	44	60132	11270
95276	410	62	62	52338	10837
94982	391	37	38	35378	9791
94341	249	53	24	19249	7488
94332	350	29	25	84205	9184
94127	386	18	17	23494	8181
93107	483	49	44	23333	8022
90385	360	54	39	41622	8620
89920	229	31	12	13018	1350
88874	241	39	30	22698	5141
86249	574	94	41	21055	7945
85610	306	31	46	98177	10623
84971	395	71	34	42249	10138
84315	248	36	21	61849	1661
82209	244	95	42	22883	6900
81293	212	31	23	24460	7162
80420	211	64	54	42005	14697
72904	190	37	30	15292	4574
72559	251	22	25	27084	7509
71921	345	37	2	10956	3495
71894	287	57	36	34545	1900
64149	305	52	0	13497	70
63952	247	23	15	8019	3080
60373	165	39	3	32689	443
60138	253	23	16	21152	4911
58280	240	20	41	31747	6562
56252	244	26	26	14399	4204
52197	310	52	16	10726	3149
51201	263	27	13	2325	593
50913	256	42	17	17215	3456
49176	291	34	22	40911	9570
48188	205	28	12	22346	2102
43410	292	19	7	2781	4
40248	183	16	8	5444	775
31970	101	15	5	4157	1283
27918	215	24	13	53249	3878
27676	194	22	2	5842	522
19764	75	12	10	5752	2416
19349	67	12	13	3895	786
11796	79	9	1	0	0
10674	33	9	0	0	0
8812	97	13	0	2179	548
7215	72	18	0	1423	603
7131	27	4	0	0	0
6836	11	3	0	0	0
5118	6	3	5	0	0
3616	14	5	0	0	0
0	0	1	0	0	0
0	0	0	0	0	0
0	0	0	0	0	0
0	0	0	0	0	0




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=157057&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=157057&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157057&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.8692
R-squared0.7555
RMSE33468.7668

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8692[/C][/ROW]
[ROW][C]R-squared[/C][C]0.7555[/C][/ROW]
[ROW][C]RMSE[/C][C]33468.7668[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157057&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157057&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.8692
R-squared0.7555
RMSE33468.7668







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
1449290249521199769
231283124952163310
327532624952125805
426645124952116930
5244190182640.07142857161549.9285714286
6233497249521-16024
7229437146922.57582514.425
8221399182640.07142857138758.9285714286
9218900146922.57571977.425
10215480182640.07142857132839.9285714286
11214975249521-34546
12204812182640.07142857122171.9285714286
13200652182640.07142857118011.9285714286
14200609182640.07142857117968.9285714286
15191923182640.0714285719282.92857142858
16191463249521-58058
17189007146922.57542084.425
18186704146922.57539781.425
19184024182640.0714285711383.92857142858
20183873182640.0714285711232.92857142858
21182328146922.57535405.425
22178613146922.57531690.425
23178228146922.57531305.425
24176034146922.57529111.425
25174876146922.57527953.425
26174181146922.57527258.425
27173779146922.57526856.425
28172071146922.57525148.425
29168465146922.57521542.425
30166226182640.071428571-16414.0714285714
3116451612357840938
32161553249521-87968
33156916146922.5759993.42499999999
34155934102204.33333333353729.6666666667
35154806102204.33333333352601.6666666667
36153278146922.5756355.42499999999
37152455146922.5755532.42499999999
3815162112357828043
39150416146922.5753493.42499999999
40148950146922.5752027.42499999999
4114853112357824953
42147766146922.575843.424999999988
43146552182640.071428571-36088.0714285714
44146020182640.071428571-36620.0714285714
45144677146922.575-2245.57500000001
46144193146922.575-2729.57500000001
4714391012357820332
48143546146922.575-3376.57500000001
4914186812357818290
5014093512357817357
51140303249521-109218
52139901102204.33333333337696.6666666667
5313978012357816202
54139075146922.575-7847.57500000001
55136333146922.575-10589.575
5613622012357812642
57134379146922.575-12543.575
58134153146922.575-12769.575
59131263146922.575-15659.575
60130414146922.575-16508.575
611294191235785841
62128907182640.071428571-53733.0714285714
63126905146922.575-20017.575
64126602146922.575-20320.575
651257601235782182
66125728102204.33333333323523.6666666667
67124626146922.575-22296.575
68124401123578823
69122294182640.071428571-60346.0714285714
70122259146922.575-24663.575
71121593146922.575-25329.575
72121391123578-2187
73120414146922.575-26508.575
74120111102204.33333333317906.6666666667
75119070123578-4508
76115944102204.33333333313739.6666666667
77115572123578-8006
78115343102204.33333333313138.6666666667
79113870146922.575-33052.575
80113245102204.33333333311040.6666666667
81111940102204.3333333339735.66666666667
82111924123578-11654
83109807102204.3333333337602.66666666667
84108685102204.3333333336480.66666666667
85106742102204.3333333334537.66666666667
86104972102204.3333333332767.66666666667
87102378102204.333333333173.666666666672
88102194123578-21384
89102141146922.575-44781.575
90101560146922.575-45362.575
91100798102204.333333333-1406.33333333333
9298629123578-24949
9397181123578-26397
9495704102204.333333333-6500.33333333333
9595276146922.575-51646.575
9694982123578-28596
9794341102204.333333333-7863.33333333333
9894332102204.333333333-7872.33333333333
9994127123578-29451
10093107123578-30471
10190385102204.333333333-11819.3333333333
1028992060629.230769230829290.7692307692
10388874102204.333333333-13330.3333333333
10486249146922.575-60673.575
10585610102204.333333333-16594.3333333333
10684971146922.575-61951.575
1078431560629.230769230823685.7692307692
10882209102204.333333333-19995.3333333333
10981293102204.333333333-20911.3333333333
11080420102204.333333333-21784.3333333333
1117290441224.857142857131679.1428571429
11272559102204.333333333-29645.3333333333
1137192160629.230769230811291.7692307692
1147189460629.230769230811264.7692307692
1156414960629.23076923083519.76923076923
1166395260629.23076923083322.76923076923
1176037341224.857142857119148.1428571429
1186013860629.2307692308-491.230769230766
11958280102204.333333333-43924.3333333333
1205625260629.2307692308-4377.23076923077
1215219760629.2307692308-8432.23076923077
1225120160629.2307692308-9428.23076923077
1235091360629.2307692308-9716.23076923077
12449176102204.333333333-53028.3333333333
1254818841224.85714285716963.14285714286
1264341060629.2307692308-17219.2307692308
1274024841224.8571428571-976.857142857145
1283197041224.8571428571-9254.85714285714
1292791860629.2307692308-32711.2307692308
1302767641224.8571428571-13548.8571428571
131197647161.2307692307712602.7692307692
132193497161.2307692307712187.7692307692
133117967161.230769230774634.76923076923
134106747161.230769230773512.76923076923
13588127161.230769230771650.76923076923
136721541224.8571428571-34009.8571428571
13771317161.23076923077-30.2307692307695
13868367161.23076923077-325.23076923077
13951187161.23076923077-2043.23076923077
14036167161.23076923077-3545.23076923077
14107161.23076923077-7161.23076923077
14207161.23076923077-7161.23076923077
14307161.23076923077-7161.23076923077
14407161.23076923077-7161.23076923077

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 449290 & 249521 & 199769 \tabularnewline
2 & 312831 & 249521 & 63310 \tabularnewline
3 & 275326 & 249521 & 25805 \tabularnewline
4 & 266451 & 249521 & 16930 \tabularnewline
5 & 244190 & 182640.071428571 & 61549.9285714286 \tabularnewline
6 & 233497 & 249521 & -16024 \tabularnewline
7 & 229437 & 146922.575 & 82514.425 \tabularnewline
8 & 221399 & 182640.071428571 & 38758.9285714286 \tabularnewline
9 & 218900 & 146922.575 & 71977.425 \tabularnewline
10 & 215480 & 182640.071428571 & 32839.9285714286 \tabularnewline
11 & 214975 & 249521 & -34546 \tabularnewline
12 & 204812 & 182640.071428571 & 22171.9285714286 \tabularnewline
13 & 200652 & 182640.071428571 & 18011.9285714286 \tabularnewline
14 & 200609 & 182640.071428571 & 17968.9285714286 \tabularnewline
15 & 191923 & 182640.071428571 & 9282.92857142858 \tabularnewline
16 & 191463 & 249521 & -58058 \tabularnewline
17 & 189007 & 146922.575 & 42084.425 \tabularnewline
18 & 186704 & 146922.575 & 39781.425 \tabularnewline
19 & 184024 & 182640.071428571 & 1383.92857142858 \tabularnewline
20 & 183873 & 182640.071428571 & 1232.92857142858 \tabularnewline
21 & 182328 & 146922.575 & 35405.425 \tabularnewline
22 & 178613 & 146922.575 & 31690.425 \tabularnewline
23 & 178228 & 146922.575 & 31305.425 \tabularnewline
24 & 176034 & 146922.575 & 29111.425 \tabularnewline
25 & 174876 & 146922.575 & 27953.425 \tabularnewline
26 & 174181 & 146922.575 & 27258.425 \tabularnewline
27 & 173779 & 146922.575 & 26856.425 \tabularnewline
28 & 172071 & 146922.575 & 25148.425 \tabularnewline
29 & 168465 & 146922.575 & 21542.425 \tabularnewline
30 & 166226 & 182640.071428571 & -16414.0714285714 \tabularnewline
31 & 164516 & 123578 & 40938 \tabularnewline
32 & 161553 & 249521 & -87968 \tabularnewline
33 & 156916 & 146922.575 & 9993.42499999999 \tabularnewline
34 & 155934 & 102204.333333333 & 53729.6666666667 \tabularnewline
35 & 154806 & 102204.333333333 & 52601.6666666667 \tabularnewline
36 & 153278 & 146922.575 & 6355.42499999999 \tabularnewline
37 & 152455 & 146922.575 & 5532.42499999999 \tabularnewline
38 & 151621 & 123578 & 28043 \tabularnewline
39 & 150416 & 146922.575 & 3493.42499999999 \tabularnewline
40 & 148950 & 146922.575 & 2027.42499999999 \tabularnewline
41 & 148531 & 123578 & 24953 \tabularnewline
42 & 147766 & 146922.575 & 843.424999999988 \tabularnewline
43 & 146552 & 182640.071428571 & -36088.0714285714 \tabularnewline
44 & 146020 & 182640.071428571 & -36620.0714285714 \tabularnewline
45 & 144677 & 146922.575 & -2245.57500000001 \tabularnewline
46 & 144193 & 146922.575 & -2729.57500000001 \tabularnewline
47 & 143910 & 123578 & 20332 \tabularnewline
48 & 143546 & 146922.575 & -3376.57500000001 \tabularnewline
49 & 141868 & 123578 & 18290 \tabularnewline
50 & 140935 & 123578 & 17357 \tabularnewline
51 & 140303 & 249521 & -109218 \tabularnewline
52 & 139901 & 102204.333333333 & 37696.6666666667 \tabularnewline
53 & 139780 & 123578 & 16202 \tabularnewline
54 & 139075 & 146922.575 & -7847.57500000001 \tabularnewline
55 & 136333 & 146922.575 & -10589.575 \tabularnewline
56 & 136220 & 123578 & 12642 \tabularnewline
57 & 134379 & 146922.575 & -12543.575 \tabularnewline
58 & 134153 & 146922.575 & -12769.575 \tabularnewline
59 & 131263 & 146922.575 & -15659.575 \tabularnewline
60 & 130414 & 146922.575 & -16508.575 \tabularnewline
61 & 129419 & 123578 & 5841 \tabularnewline
62 & 128907 & 182640.071428571 & -53733.0714285714 \tabularnewline
63 & 126905 & 146922.575 & -20017.575 \tabularnewline
64 & 126602 & 146922.575 & -20320.575 \tabularnewline
65 & 125760 & 123578 & 2182 \tabularnewline
66 & 125728 & 102204.333333333 & 23523.6666666667 \tabularnewline
67 & 124626 & 146922.575 & -22296.575 \tabularnewline
68 & 124401 & 123578 & 823 \tabularnewline
69 & 122294 & 182640.071428571 & -60346.0714285714 \tabularnewline
70 & 122259 & 146922.575 & -24663.575 \tabularnewline
71 & 121593 & 146922.575 & -25329.575 \tabularnewline
72 & 121391 & 123578 & -2187 \tabularnewline
73 & 120414 & 146922.575 & -26508.575 \tabularnewline
74 & 120111 & 102204.333333333 & 17906.6666666667 \tabularnewline
75 & 119070 & 123578 & -4508 \tabularnewline
76 & 115944 & 102204.333333333 & 13739.6666666667 \tabularnewline
77 & 115572 & 123578 & -8006 \tabularnewline
78 & 115343 & 102204.333333333 & 13138.6666666667 \tabularnewline
79 & 113870 & 146922.575 & -33052.575 \tabularnewline
80 & 113245 & 102204.333333333 & 11040.6666666667 \tabularnewline
81 & 111940 & 102204.333333333 & 9735.66666666667 \tabularnewline
82 & 111924 & 123578 & -11654 \tabularnewline
83 & 109807 & 102204.333333333 & 7602.66666666667 \tabularnewline
84 & 108685 & 102204.333333333 & 6480.66666666667 \tabularnewline
85 & 106742 & 102204.333333333 & 4537.66666666667 \tabularnewline
86 & 104972 & 102204.333333333 & 2767.66666666667 \tabularnewline
87 & 102378 & 102204.333333333 & 173.666666666672 \tabularnewline
88 & 102194 & 123578 & -21384 \tabularnewline
89 & 102141 & 146922.575 & -44781.575 \tabularnewline
90 & 101560 & 146922.575 & -45362.575 \tabularnewline
91 & 100798 & 102204.333333333 & -1406.33333333333 \tabularnewline
92 & 98629 & 123578 & -24949 \tabularnewline
93 & 97181 & 123578 & -26397 \tabularnewline
94 & 95704 & 102204.333333333 & -6500.33333333333 \tabularnewline
95 & 95276 & 146922.575 & -51646.575 \tabularnewline
96 & 94982 & 123578 & -28596 \tabularnewline
97 & 94341 & 102204.333333333 & -7863.33333333333 \tabularnewline
98 & 94332 & 102204.333333333 & -7872.33333333333 \tabularnewline
99 & 94127 & 123578 & -29451 \tabularnewline
100 & 93107 & 123578 & -30471 \tabularnewline
101 & 90385 & 102204.333333333 & -11819.3333333333 \tabularnewline
102 & 89920 & 60629.2307692308 & 29290.7692307692 \tabularnewline
103 & 88874 & 102204.333333333 & -13330.3333333333 \tabularnewline
104 & 86249 & 146922.575 & -60673.575 \tabularnewline
105 & 85610 & 102204.333333333 & -16594.3333333333 \tabularnewline
106 & 84971 & 146922.575 & -61951.575 \tabularnewline
107 & 84315 & 60629.2307692308 & 23685.7692307692 \tabularnewline
108 & 82209 & 102204.333333333 & -19995.3333333333 \tabularnewline
109 & 81293 & 102204.333333333 & -20911.3333333333 \tabularnewline
110 & 80420 & 102204.333333333 & -21784.3333333333 \tabularnewline
111 & 72904 & 41224.8571428571 & 31679.1428571429 \tabularnewline
112 & 72559 & 102204.333333333 & -29645.3333333333 \tabularnewline
113 & 71921 & 60629.2307692308 & 11291.7692307692 \tabularnewline
114 & 71894 & 60629.2307692308 & 11264.7692307692 \tabularnewline
115 & 64149 & 60629.2307692308 & 3519.76923076923 \tabularnewline
116 & 63952 & 60629.2307692308 & 3322.76923076923 \tabularnewline
117 & 60373 & 41224.8571428571 & 19148.1428571429 \tabularnewline
118 & 60138 & 60629.2307692308 & -491.230769230766 \tabularnewline
119 & 58280 & 102204.333333333 & -43924.3333333333 \tabularnewline
120 & 56252 & 60629.2307692308 & -4377.23076923077 \tabularnewline
121 & 52197 & 60629.2307692308 & -8432.23076923077 \tabularnewline
122 & 51201 & 60629.2307692308 & -9428.23076923077 \tabularnewline
123 & 50913 & 60629.2307692308 & -9716.23076923077 \tabularnewline
124 & 49176 & 102204.333333333 & -53028.3333333333 \tabularnewline
125 & 48188 & 41224.8571428571 & 6963.14285714286 \tabularnewline
126 & 43410 & 60629.2307692308 & -17219.2307692308 \tabularnewline
127 & 40248 & 41224.8571428571 & -976.857142857145 \tabularnewline
128 & 31970 & 41224.8571428571 & -9254.85714285714 \tabularnewline
129 & 27918 & 60629.2307692308 & -32711.2307692308 \tabularnewline
130 & 27676 & 41224.8571428571 & -13548.8571428571 \tabularnewline
131 & 19764 & 7161.23076923077 & 12602.7692307692 \tabularnewline
132 & 19349 & 7161.23076923077 & 12187.7692307692 \tabularnewline
133 & 11796 & 7161.23076923077 & 4634.76923076923 \tabularnewline
134 & 10674 & 7161.23076923077 & 3512.76923076923 \tabularnewline
135 & 8812 & 7161.23076923077 & 1650.76923076923 \tabularnewline
136 & 7215 & 41224.8571428571 & -34009.8571428571 \tabularnewline
137 & 7131 & 7161.23076923077 & -30.2307692307695 \tabularnewline
138 & 6836 & 7161.23076923077 & -325.23076923077 \tabularnewline
139 & 5118 & 7161.23076923077 & -2043.23076923077 \tabularnewline
140 & 3616 & 7161.23076923077 & -3545.23076923077 \tabularnewline
141 & 0 & 7161.23076923077 & -7161.23076923077 \tabularnewline
142 & 0 & 7161.23076923077 & -7161.23076923077 \tabularnewline
143 & 0 & 7161.23076923077 & -7161.23076923077 \tabularnewline
144 & 0 & 7161.23076923077 & -7161.23076923077 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=157057&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]449290[/C][C]249521[/C][C]199769[/C][/ROW]
[ROW][C]2[/C][C]312831[/C][C]249521[/C][C]63310[/C][/ROW]
[ROW][C]3[/C][C]275326[/C][C]249521[/C][C]25805[/C][/ROW]
[ROW][C]4[/C][C]266451[/C][C]249521[/C][C]16930[/C][/ROW]
[ROW][C]5[/C][C]244190[/C][C]182640.071428571[/C][C]61549.9285714286[/C][/ROW]
[ROW][C]6[/C][C]233497[/C][C]249521[/C][C]-16024[/C][/ROW]
[ROW][C]7[/C][C]229437[/C][C]146922.575[/C][C]82514.425[/C][/ROW]
[ROW][C]8[/C][C]221399[/C][C]182640.071428571[/C][C]38758.9285714286[/C][/ROW]
[ROW][C]9[/C][C]218900[/C][C]146922.575[/C][C]71977.425[/C][/ROW]
[ROW][C]10[/C][C]215480[/C][C]182640.071428571[/C][C]32839.9285714286[/C][/ROW]
[ROW][C]11[/C][C]214975[/C][C]249521[/C][C]-34546[/C][/ROW]
[ROW][C]12[/C][C]204812[/C][C]182640.071428571[/C][C]22171.9285714286[/C][/ROW]
[ROW][C]13[/C][C]200652[/C][C]182640.071428571[/C][C]18011.9285714286[/C][/ROW]
[ROW][C]14[/C][C]200609[/C][C]182640.071428571[/C][C]17968.9285714286[/C][/ROW]
[ROW][C]15[/C][C]191923[/C][C]182640.071428571[/C][C]9282.92857142858[/C][/ROW]
[ROW][C]16[/C][C]191463[/C][C]249521[/C][C]-58058[/C][/ROW]
[ROW][C]17[/C][C]189007[/C][C]146922.575[/C][C]42084.425[/C][/ROW]
[ROW][C]18[/C][C]186704[/C][C]146922.575[/C][C]39781.425[/C][/ROW]
[ROW][C]19[/C][C]184024[/C][C]182640.071428571[/C][C]1383.92857142858[/C][/ROW]
[ROW][C]20[/C][C]183873[/C][C]182640.071428571[/C][C]1232.92857142858[/C][/ROW]
[ROW][C]21[/C][C]182328[/C][C]146922.575[/C][C]35405.425[/C][/ROW]
[ROW][C]22[/C][C]178613[/C][C]146922.575[/C][C]31690.425[/C][/ROW]
[ROW][C]23[/C][C]178228[/C][C]146922.575[/C][C]31305.425[/C][/ROW]
[ROW][C]24[/C][C]176034[/C][C]146922.575[/C][C]29111.425[/C][/ROW]
[ROW][C]25[/C][C]174876[/C][C]146922.575[/C][C]27953.425[/C][/ROW]
[ROW][C]26[/C][C]174181[/C][C]146922.575[/C][C]27258.425[/C][/ROW]
[ROW][C]27[/C][C]173779[/C][C]146922.575[/C][C]26856.425[/C][/ROW]
[ROW][C]28[/C][C]172071[/C][C]146922.575[/C][C]25148.425[/C][/ROW]
[ROW][C]29[/C][C]168465[/C][C]146922.575[/C][C]21542.425[/C][/ROW]
[ROW][C]30[/C][C]166226[/C][C]182640.071428571[/C][C]-16414.0714285714[/C][/ROW]
[ROW][C]31[/C][C]164516[/C][C]123578[/C][C]40938[/C][/ROW]
[ROW][C]32[/C][C]161553[/C][C]249521[/C][C]-87968[/C][/ROW]
[ROW][C]33[/C][C]156916[/C][C]146922.575[/C][C]9993.42499999999[/C][/ROW]
[ROW][C]34[/C][C]155934[/C][C]102204.333333333[/C][C]53729.6666666667[/C][/ROW]
[ROW][C]35[/C][C]154806[/C][C]102204.333333333[/C][C]52601.6666666667[/C][/ROW]
[ROW][C]36[/C][C]153278[/C][C]146922.575[/C][C]6355.42499999999[/C][/ROW]
[ROW][C]37[/C][C]152455[/C][C]146922.575[/C][C]5532.42499999999[/C][/ROW]
[ROW][C]38[/C][C]151621[/C][C]123578[/C][C]28043[/C][/ROW]
[ROW][C]39[/C][C]150416[/C][C]146922.575[/C][C]3493.42499999999[/C][/ROW]
[ROW][C]40[/C][C]148950[/C][C]146922.575[/C][C]2027.42499999999[/C][/ROW]
[ROW][C]41[/C][C]148531[/C][C]123578[/C][C]24953[/C][/ROW]
[ROW][C]42[/C][C]147766[/C][C]146922.575[/C][C]843.424999999988[/C][/ROW]
[ROW][C]43[/C][C]146552[/C][C]182640.071428571[/C][C]-36088.0714285714[/C][/ROW]
[ROW][C]44[/C][C]146020[/C][C]182640.071428571[/C][C]-36620.0714285714[/C][/ROW]
[ROW][C]45[/C][C]144677[/C][C]146922.575[/C][C]-2245.57500000001[/C][/ROW]
[ROW][C]46[/C][C]144193[/C][C]146922.575[/C][C]-2729.57500000001[/C][/ROW]
[ROW][C]47[/C][C]143910[/C][C]123578[/C][C]20332[/C][/ROW]
[ROW][C]48[/C][C]143546[/C][C]146922.575[/C][C]-3376.57500000001[/C][/ROW]
[ROW][C]49[/C][C]141868[/C][C]123578[/C][C]18290[/C][/ROW]
[ROW][C]50[/C][C]140935[/C][C]123578[/C][C]17357[/C][/ROW]
[ROW][C]51[/C][C]140303[/C][C]249521[/C][C]-109218[/C][/ROW]
[ROW][C]52[/C][C]139901[/C][C]102204.333333333[/C][C]37696.6666666667[/C][/ROW]
[ROW][C]53[/C][C]139780[/C][C]123578[/C][C]16202[/C][/ROW]
[ROW][C]54[/C][C]139075[/C][C]146922.575[/C][C]-7847.57500000001[/C][/ROW]
[ROW][C]55[/C][C]136333[/C][C]146922.575[/C][C]-10589.575[/C][/ROW]
[ROW][C]56[/C][C]136220[/C][C]123578[/C][C]12642[/C][/ROW]
[ROW][C]57[/C][C]134379[/C][C]146922.575[/C][C]-12543.575[/C][/ROW]
[ROW][C]58[/C][C]134153[/C][C]146922.575[/C][C]-12769.575[/C][/ROW]
[ROW][C]59[/C][C]131263[/C][C]146922.575[/C][C]-15659.575[/C][/ROW]
[ROW][C]60[/C][C]130414[/C][C]146922.575[/C][C]-16508.575[/C][/ROW]
[ROW][C]61[/C][C]129419[/C][C]123578[/C][C]5841[/C][/ROW]
[ROW][C]62[/C][C]128907[/C][C]182640.071428571[/C][C]-53733.0714285714[/C][/ROW]
[ROW][C]63[/C][C]126905[/C][C]146922.575[/C][C]-20017.575[/C][/ROW]
[ROW][C]64[/C][C]126602[/C][C]146922.575[/C][C]-20320.575[/C][/ROW]
[ROW][C]65[/C][C]125760[/C][C]123578[/C][C]2182[/C][/ROW]
[ROW][C]66[/C][C]125728[/C][C]102204.333333333[/C][C]23523.6666666667[/C][/ROW]
[ROW][C]67[/C][C]124626[/C][C]146922.575[/C][C]-22296.575[/C][/ROW]
[ROW][C]68[/C][C]124401[/C][C]123578[/C][C]823[/C][/ROW]
[ROW][C]69[/C][C]122294[/C][C]182640.071428571[/C][C]-60346.0714285714[/C][/ROW]
[ROW][C]70[/C][C]122259[/C][C]146922.575[/C][C]-24663.575[/C][/ROW]
[ROW][C]71[/C][C]121593[/C][C]146922.575[/C][C]-25329.575[/C][/ROW]
[ROW][C]72[/C][C]121391[/C][C]123578[/C][C]-2187[/C][/ROW]
[ROW][C]73[/C][C]120414[/C][C]146922.575[/C][C]-26508.575[/C][/ROW]
[ROW][C]74[/C][C]120111[/C][C]102204.333333333[/C][C]17906.6666666667[/C][/ROW]
[ROW][C]75[/C][C]119070[/C][C]123578[/C][C]-4508[/C][/ROW]
[ROW][C]76[/C][C]115944[/C][C]102204.333333333[/C][C]13739.6666666667[/C][/ROW]
[ROW][C]77[/C][C]115572[/C][C]123578[/C][C]-8006[/C][/ROW]
[ROW][C]78[/C][C]115343[/C][C]102204.333333333[/C][C]13138.6666666667[/C][/ROW]
[ROW][C]79[/C][C]113870[/C][C]146922.575[/C][C]-33052.575[/C][/ROW]
[ROW][C]80[/C][C]113245[/C][C]102204.333333333[/C][C]11040.6666666667[/C][/ROW]
[ROW][C]81[/C][C]111940[/C][C]102204.333333333[/C][C]9735.66666666667[/C][/ROW]
[ROW][C]82[/C][C]111924[/C][C]123578[/C][C]-11654[/C][/ROW]
[ROW][C]83[/C][C]109807[/C][C]102204.333333333[/C][C]7602.66666666667[/C][/ROW]
[ROW][C]84[/C][C]108685[/C][C]102204.333333333[/C][C]6480.66666666667[/C][/ROW]
[ROW][C]85[/C][C]106742[/C][C]102204.333333333[/C][C]4537.66666666667[/C][/ROW]
[ROW][C]86[/C][C]104972[/C][C]102204.333333333[/C][C]2767.66666666667[/C][/ROW]
[ROW][C]87[/C][C]102378[/C][C]102204.333333333[/C][C]173.666666666672[/C][/ROW]
[ROW][C]88[/C][C]102194[/C][C]123578[/C][C]-21384[/C][/ROW]
[ROW][C]89[/C][C]102141[/C][C]146922.575[/C][C]-44781.575[/C][/ROW]
[ROW][C]90[/C][C]101560[/C][C]146922.575[/C][C]-45362.575[/C][/ROW]
[ROW][C]91[/C][C]100798[/C][C]102204.333333333[/C][C]-1406.33333333333[/C][/ROW]
[ROW][C]92[/C][C]98629[/C][C]123578[/C][C]-24949[/C][/ROW]
[ROW][C]93[/C][C]97181[/C][C]123578[/C][C]-26397[/C][/ROW]
[ROW][C]94[/C][C]95704[/C][C]102204.333333333[/C][C]-6500.33333333333[/C][/ROW]
[ROW][C]95[/C][C]95276[/C][C]146922.575[/C][C]-51646.575[/C][/ROW]
[ROW][C]96[/C][C]94982[/C][C]123578[/C][C]-28596[/C][/ROW]
[ROW][C]97[/C][C]94341[/C][C]102204.333333333[/C][C]-7863.33333333333[/C][/ROW]
[ROW][C]98[/C][C]94332[/C][C]102204.333333333[/C][C]-7872.33333333333[/C][/ROW]
[ROW][C]99[/C][C]94127[/C][C]123578[/C][C]-29451[/C][/ROW]
[ROW][C]100[/C][C]93107[/C][C]123578[/C][C]-30471[/C][/ROW]
[ROW][C]101[/C][C]90385[/C][C]102204.333333333[/C][C]-11819.3333333333[/C][/ROW]
[ROW][C]102[/C][C]89920[/C][C]60629.2307692308[/C][C]29290.7692307692[/C][/ROW]
[ROW][C]103[/C][C]88874[/C][C]102204.333333333[/C][C]-13330.3333333333[/C][/ROW]
[ROW][C]104[/C][C]86249[/C][C]146922.575[/C][C]-60673.575[/C][/ROW]
[ROW][C]105[/C][C]85610[/C][C]102204.333333333[/C][C]-16594.3333333333[/C][/ROW]
[ROW][C]106[/C][C]84971[/C][C]146922.575[/C][C]-61951.575[/C][/ROW]
[ROW][C]107[/C][C]84315[/C][C]60629.2307692308[/C][C]23685.7692307692[/C][/ROW]
[ROW][C]108[/C][C]82209[/C][C]102204.333333333[/C][C]-19995.3333333333[/C][/ROW]
[ROW][C]109[/C][C]81293[/C][C]102204.333333333[/C][C]-20911.3333333333[/C][/ROW]
[ROW][C]110[/C][C]80420[/C][C]102204.333333333[/C][C]-21784.3333333333[/C][/ROW]
[ROW][C]111[/C][C]72904[/C][C]41224.8571428571[/C][C]31679.1428571429[/C][/ROW]
[ROW][C]112[/C][C]72559[/C][C]102204.333333333[/C][C]-29645.3333333333[/C][/ROW]
[ROW][C]113[/C][C]71921[/C][C]60629.2307692308[/C][C]11291.7692307692[/C][/ROW]
[ROW][C]114[/C][C]71894[/C][C]60629.2307692308[/C][C]11264.7692307692[/C][/ROW]
[ROW][C]115[/C][C]64149[/C][C]60629.2307692308[/C][C]3519.76923076923[/C][/ROW]
[ROW][C]116[/C][C]63952[/C][C]60629.2307692308[/C][C]3322.76923076923[/C][/ROW]
[ROW][C]117[/C][C]60373[/C][C]41224.8571428571[/C][C]19148.1428571429[/C][/ROW]
[ROW][C]118[/C][C]60138[/C][C]60629.2307692308[/C][C]-491.230769230766[/C][/ROW]
[ROW][C]119[/C][C]58280[/C][C]102204.333333333[/C][C]-43924.3333333333[/C][/ROW]
[ROW][C]120[/C][C]56252[/C][C]60629.2307692308[/C][C]-4377.23076923077[/C][/ROW]
[ROW][C]121[/C][C]52197[/C][C]60629.2307692308[/C][C]-8432.23076923077[/C][/ROW]
[ROW][C]122[/C][C]51201[/C][C]60629.2307692308[/C][C]-9428.23076923077[/C][/ROW]
[ROW][C]123[/C][C]50913[/C][C]60629.2307692308[/C][C]-9716.23076923077[/C][/ROW]
[ROW][C]124[/C][C]49176[/C][C]102204.333333333[/C][C]-53028.3333333333[/C][/ROW]
[ROW][C]125[/C][C]48188[/C][C]41224.8571428571[/C][C]6963.14285714286[/C][/ROW]
[ROW][C]126[/C][C]43410[/C][C]60629.2307692308[/C][C]-17219.2307692308[/C][/ROW]
[ROW][C]127[/C][C]40248[/C][C]41224.8571428571[/C][C]-976.857142857145[/C][/ROW]
[ROW][C]128[/C][C]31970[/C][C]41224.8571428571[/C][C]-9254.85714285714[/C][/ROW]
[ROW][C]129[/C][C]27918[/C][C]60629.2307692308[/C][C]-32711.2307692308[/C][/ROW]
[ROW][C]130[/C][C]27676[/C][C]41224.8571428571[/C][C]-13548.8571428571[/C][/ROW]
[ROW][C]131[/C][C]19764[/C][C]7161.23076923077[/C][C]12602.7692307692[/C][/ROW]
[ROW][C]132[/C][C]19349[/C][C]7161.23076923077[/C][C]12187.7692307692[/C][/ROW]
[ROW][C]133[/C][C]11796[/C][C]7161.23076923077[/C][C]4634.76923076923[/C][/ROW]
[ROW][C]134[/C][C]10674[/C][C]7161.23076923077[/C][C]3512.76923076923[/C][/ROW]
[ROW][C]135[/C][C]8812[/C][C]7161.23076923077[/C][C]1650.76923076923[/C][/ROW]
[ROW][C]136[/C][C]7215[/C][C]41224.8571428571[/C][C]-34009.8571428571[/C][/ROW]
[ROW][C]137[/C][C]7131[/C][C]7161.23076923077[/C][C]-30.2307692307695[/C][/ROW]
[ROW][C]138[/C][C]6836[/C][C]7161.23076923077[/C][C]-325.23076923077[/C][/ROW]
[ROW][C]139[/C][C]5118[/C][C]7161.23076923077[/C][C]-2043.23076923077[/C][/ROW]
[ROW][C]140[/C][C]3616[/C][C]7161.23076923077[/C][C]-3545.23076923077[/C][/ROW]
[ROW][C]141[/C][C]0[/C][C]7161.23076923077[/C][C]-7161.23076923077[/C][/ROW]
[ROW][C]142[/C][C]0[/C][C]7161.23076923077[/C][C]-7161.23076923077[/C][/ROW]
[ROW][C]143[/C][C]0[/C][C]7161.23076923077[/C][C]-7161.23076923077[/C][/ROW]
[ROW][C]144[/C][C]0[/C][C]7161.23076923077[/C][C]-7161.23076923077[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157057&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157057&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
1449290249521199769
231283124952163310
327532624952125805
426645124952116930
5244190182640.07142857161549.9285714286
6233497249521-16024
7229437146922.57582514.425
8221399182640.07142857138758.9285714286
9218900146922.57571977.425
10215480182640.07142857132839.9285714286
11214975249521-34546
12204812182640.07142857122171.9285714286
13200652182640.07142857118011.9285714286
14200609182640.07142857117968.9285714286
15191923182640.0714285719282.92857142858
16191463249521-58058
17189007146922.57542084.425
18186704146922.57539781.425
19184024182640.0714285711383.92857142858
20183873182640.0714285711232.92857142858
21182328146922.57535405.425
22178613146922.57531690.425
23178228146922.57531305.425
24176034146922.57529111.425
25174876146922.57527953.425
26174181146922.57527258.425
27173779146922.57526856.425
28172071146922.57525148.425
29168465146922.57521542.425
30166226182640.071428571-16414.0714285714
3116451612357840938
32161553249521-87968
33156916146922.5759993.42499999999
34155934102204.33333333353729.6666666667
35154806102204.33333333352601.6666666667
36153278146922.5756355.42499999999
37152455146922.5755532.42499999999
3815162112357828043
39150416146922.5753493.42499999999
40148950146922.5752027.42499999999
4114853112357824953
42147766146922.575843.424999999988
43146552182640.071428571-36088.0714285714
44146020182640.071428571-36620.0714285714
45144677146922.575-2245.57500000001
46144193146922.575-2729.57500000001
4714391012357820332
48143546146922.575-3376.57500000001
4914186812357818290
5014093512357817357
51140303249521-109218
52139901102204.33333333337696.6666666667
5313978012357816202
54139075146922.575-7847.57500000001
55136333146922.575-10589.575
5613622012357812642
57134379146922.575-12543.575
58134153146922.575-12769.575
59131263146922.575-15659.575
60130414146922.575-16508.575
611294191235785841
62128907182640.071428571-53733.0714285714
63126905146922.575-20017.575
64126602146922.575-20320.575
651257601235782182
66125728102204.33333333323523.6666666667
67124626146922.575-22296.575
68124401123578823
69122294182640.071428571-60346.0714285714
70122259146922.575-24663.575
71121593146922.575-25329.575
72121391123578-2187
73120414146922.575-26508.575
74120111102204.33333333317906.6666666667
75119070123578-4508
76115944102204.33333333313739.6666666667
77115572123578-8006
78115343102204.33333333313138.6666666667
79113870146922.575-33052.575
80113245102204.33333333311040.6666666667
81111940102204.3333333339735.66666666667
82111924123578-11654
83109807102204.3333333337602.66666666667
84108685102204.3333333336480.66666666667
85106742102204.3333333334537.66666666667
86104972102204.3333333332767.66666666667
87102378102204.333333333173.666666666672
88102194123578-21384
89102141146922.575-44781.575
90101560146922.575-45362.575
91100798102204.333333333-1406.33333333333
9298629123578-24949
9397181123578-26397
9495704102204.333333333-6500.33333333333
9595276146922.575-51646.575
9694982123578-28596
9794341102204.333333333-7863.33333333333
9894332102204.333333333-7872.33333333333
9994127123578-29451
10093107123578-30471
10190385102204.333333333-11819.3333333333
1028992060629.230769230829290.7692307692
10388874102204.333333333-13330.3333333333
10486249146922.575-60673.575
10585610102204.333333333-16594.3333333333
10684971146922.575-61951.575
1078431560629.230769230823685.7692307692
10882209102204.333333333-19995.3333333333
10981293102204.333333333-20911.3333333333
11080420102204.333333333-21784.3333333333
1117290441224.857142857131679.1428571429
11272559102204.333333333-29645.3333333333
1137192160629.230769230811291.7692307692
1147189460629.230769230811264.7692307692
1156414960629.23076923083519.76923076923
1166395260629.23076923083322.76923076923
1176037341224.857142857119148.1428571429
1186013860629.2307692308-491.230769230766
11958280102204.333333333-43924.3333333333
1205625260629.2307692308-4377.23076923077
1215219760629.2307692308-8432.23076923077
1225120160629.2307692308-9428.23076923077
1235091360629.2307692308-9716.23076923077
12449176102204.333333333-53028.3333333333
1254818841224.85714285716963.14285714286
1264341060629.2307692308-17219.2307692308
1274024841224.8571428571-976.857142857145
1283197041224.8571428571-9254.85714285714
1292791860629.2307692308-32711.2307692308
1302767641224.8571428571-13548.8571428571
131197647161.2307692307712602.7692307692
132193497161.2307692307712187.7692307692
133117967161.230769230774634.76923076923
134106747161.230769230773512.76923076923
13588127161.230769230771650.76923076923
136721541224.8571428571-34009.8571428571
13771317161.23076923077-30.2307692307695
13868367161.23076923077-325.23076923077
13951187161.23076923077-2043.23076923077
14036167161.23076923077-3545.23076923077
14107161.23076923077-7161.23076923077
14207161.23076923077-7161.23076923077
14307161.23076923077-7161.23076923077
14407161.23076923077-7161.23076923077



Parameters (Session):
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')
}