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, 23 Dec 2011 13:48:57 -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/23/t1324666162zyaazxyaoj13ut1.htm/, Retrieved Mon, 29 Apr 2024 21:42:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=160640, Retrieved Mon, 29 Apr 2024 21:42:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact58
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)] [Recursive partiti...] [2011-12-23 18:48:57] [0b94335bf72158573fe52322b9537409] [Current]
Feedback Forum

Post a new message
Dataseries X:
150596	535	18	20465	37
154801	396	20	33629	43
7215	72	0	1423	0
122139	617	26	25629	54
221399	1118	30	54002	86
441870	1755	34	151036	181
134379	498	23	33287	42
140428	355	30	31172	59
103255	413	30	28113	46
271630	891	26	57803	77
121593	629	24	49830	49
172071	611	30	52143	79
83707	564	19	21055	37
197412	964	25	47007	92
134398	362	17	28735	31
139224	442	19	59147	28
134153	391	33	78950	103
64149	305	15	13497	2
122294	721	34	46154	48
24889	206	15	53249	25
52197	310	15	10726	16
188915	686	27	83700	106
172874	590	25	40400	35
98575	558	34	33797	33
143546	569	21	36205	45
139780	513	21	30165	64
163784	602	25	58534	73
152479	276	28	44663	78
304108	791	26	92556	63
184024	815	20	40078	69
151621	427	28	34711	36
164516	496	20	31076	41
120289	655	17	74608	59
214701	857	25	58092	33
196865	736	24	42009	76
0	0	0	0	0
191678	884	27	36022	27
93107	483	14	23333	44
129352	495	32	53349	43
229143	749	31	92596	104
177063	627	21	49598	120
126602	597	34	44093	44
93742	348	23	84205	71
152153	711	24	63369	78
95704	322	22	60132	106
139793	280	22	37403	61
76348	205	35	24460	53
188980	648	21	46456	51
172100	580	31	66616	46
146552	875	26	41554	55
48188	205	22	22346	14
109185	363	21	30874	44
263652	757	27	68701	113
215609	647	26	35728	55
174876	584	33	29010	46
115124	457	11	23110	39
179712	438	26	38844	51
70369	235	26	27084	31
109215	312	21	35139	36
166096	877	38	57476	47
130414	454	29	33277	53
102057	668	19	31141	38
115310	346	19	61281	52
101181	377	24	25820	37
135228	365	26	23284	11
94982	391	29	35378	45
166919	476	34	74990	59
118169	747	25	29653	82
102361	246	24	64622	49
31970	101	21	4157	6
200413	901	19	29245	81
103381	334	12	50008	56
94940	404	28	52338	105
101560	442	21	13310	46
144176	627	34	92901	46
71921	345	32	10956	2
126905	538	27	34241	51
131184	741	26	75043	95
60138	253	21	21152	18
84971	395	31	42249	55
80420	211	26	42005	48
233569	670	26	41152	48
56252	244	23	14399	39
97181	438	25	28263	40
50800	255	22	17215	36
125941	434	26	48140	60
211032	613	33	62897	114
71960	233	22	22883	39
90379	360	24	41622	45
125650	486	21	40715	59
115572	535	28	65897	59
136266	585	22	76542	93
146715	402	22	37477	35
124626	466	15	53216	47
49176	291	13	40911	36
212926	691	36	57021	59
173884	515	24	73116	79
19349	67	1	3895	14
181141	712	24	46609	42
145502	770	31	29351	41
45448	247	4	2325	8
58280	240	20	31747	41
115944	360	23	32665	24
94341	249	23	19249	22
59090	138	12	15292	18
27676	194	16	5842	1
120586	285	28	33994	53
88011	227	10	13018	6
0	0	0	0	0
85610	306	25	98177	49
94530	355	21	37941	33
117769	397	21	31032	50
107653	369	21	32683	64
71894	287	21	34545	53
3616	14	0	0	0
0	0	0	0	0
154806	301	23	27525	48
136061	535	29	66856	90
141822	530	27	28549	46
106515	272	23	38610	29
43410	292	1	2781	1
146920	458	25	41211	64
88874	241	17	22698	29
111924	497	29	41194	27
60373	165	12	32689	4
19764	75	2	5752	10
121665	461	18	26757	47
108685	341	25	22527	44
124493	446	29	44810	51
11796	79	2	0	0
10674	33	0	0	0
131263	449	18	100674	38
6836	11	1	0	0
153278	606	21	57786	57
5118	6	0	0	0
40248	183	4	5444	6
0	0	0	0	0
100728	310	25	28470	22
84267	245	26	61849	34
7131	27	0	0	0
8812	97	4	2179	10
63952	247	17	8019	16
120111	273	21	39644	93
94127	386	22	23494	22




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160640&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.8712
R-squared0.7591
RMSE32514.8546

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8712[/C][/ROW]
[ROW][C]R-squared[/C][C]0.7591[/C][/ROW]
[ROW][C]RMSE[/C][C]32514.8546[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=160640&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160640&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.8712
R-squared0.7591
RMSE32514.8546







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
1150596129814.82857142920781.1714285714
2154801129814.82857142924986.1714285714
372157165.0714285714349.9285714285716
4122139162000.192307692-39861.1923076923
5221399227012.857142857-5613.85714285713
6441870227012.857142857214857.142857143
7134379129814.8285714294564.17142857143
8140428109839.66666666730588.3333333333
9103255129814.828571429-26559.8285714286
10271630227012.85714285744617.1428571429
11121593162000.192307692-40407.1923076923
12172071162000.19230769210070.8076923077
1383707129814.828571429-46107.8285714286
14197412227012.857142857-29600.8571428571
1513439810706827330
16139224129814.8285714299409.17142857143
17134153109839.66666666724313.3333333333
186414969381.5-5232.5
19122294162000.192307692-39706.1923076923
202488946097.75-21208.75
215219769381.5-17184.5
22188915162000.19230769226914.8076923077
23172874162000.19230769210873.8076923077
2498575129814.828571429-31239.8285714286
25143546129814.82857142913731.1714285714
26139780129814.8285714299965.17142857143
27163784162000.1923076921783.80769230769
28152479109839.66666666742639.3333333333
29304108227012.85714285777095.1428571429
30184024227012.857142857-42988.8571428571
31151621129814.82857142921806.1714285714
32164516129814.82857142934701.1714285714
33120289162000.192307692-41711.1923076923
34214701227012.857142857-12311.8571428571
35196865162000.19230769234864.8076923077
3607165.07142857143-7165.07142857143
37191678227012.857142857-35334.8571428571
3893107129814.828571429-36707.8285714286
39129352129814.828571429-462.828571428574
40229143227012.8571428572130.14285714287
41177063162000.19230769215062.8076923077
42126602162000.192307692-35398.1923076923
4393742109839.666666667-16097.6666666667
44152153162000.192307692-9847.19230769231
4595704109839.666666667-14135.6666666667
46139793109839.66666666729953.3333333333
477634846097.7530250.25
48188980162000.19230769226979.8076923077
49172100162000.19230769210099.8076923077
50146552227012.857142857-80460.8571428571
514818846097.752090.25
52109185109839.666666667-654.666666666672
53263652227012.85714285736639.1428571429
54215609162000.19230769253608.8076923077
55174876162000.19230769212875.8076923077
56115124129814.828571429-14690.8285714286
57179712129814.82857142949897.1714285714
587036969381.5987.5
591092151070682147
60166096227012.857142857-60916.8571428571
61130414129814.828571429599.171428571426
62102057162000.192307692-59943.1923076923
63115310109839.6666666675470.33333333333
64101181107068-5887
6513522810706828160
6694982109839.666666667-14857.6666666667
67166919129814.82857142937104.1714285714
68118169162000.192307692-43831.1923076923
69102361109839.666666667-7478.66666666667
703197046097.75-14127.75
71200413227012.857142857-26599.8571428571
72103381109839.666666667-6458.66666666667
7394940129814.828571429-34874.8285714286
74101560129814.828571429-28254.8285714286
75144176162000.192307692-17824.1923076923
7671921107068-35147
77126905129814.828571429-2909.82857142857
78131184162000.192307692-30816.1923076923
796013869381.5-9243.5
8084971109839.666666667-24868.6666666667
8180420109839.666666667-29419.6666666667
82233569162000.19230769271568.8076923077
835625269381.5-13129.5
8497181129814.828571429-32633.8285714286
855080069381.5-18581.5
86125941129814.828571429-3873.82857142857
87211032162000.19230769249031.8076923077
887196069381.52578.5
8990379109839.666666667-19460.6666666667
90125650129814.828571429-4164.82857142857
91115572129814.828571429-14242.8285714286
92136266162000.192307692-25734.1923076923
93146715129814.82857142916900.1714285714
94124626129814.828571429-5188.82857142857
954917669381.5-20205.5
96212926162000.19230769250925.8076923077
97173884129814.82857142944069.1714285714
98193497165.0714285714312183.9285714286
99181141162000.19230769219140.8076923077
100145502227012.857142857-81510.8571428571
1014544869381.5-23933.5
1025828069381.5-11101.5
1031159441070688876
1049434169381.524959.5
1055909046097.7512992.25
1062767646097.75-18421.75
107120586109839.66666666710746.3333333333
1088801169381.518629.5
10907165.07142857143-7165.07142857143
11085610109839.666666667-24229.6666666667
11194530107068-12538
112117769129814.828571429-12045.8285714286
113107653109839.666666667-2186.66666666667
11471894109839.666666667-37945.6666666667
11536167165.07142857143-3549.07142857143
11607165.07142857143-7165.07142857143
117154806109839.66666666744966.3333333333
118136061129814.8285714296246.17142857143
119141822129814.82857142912007.1714285714
12010651569381.537133.5
1214341069381.5-25971.5
122146920129814.82857142917105.1714285714
1238887469381.519492.5
124111924129814.828571429-17890.8285714286
1256037346097.7514275.25
126197647165.0714285714312598.9285714286
127121665129814.828571429-8149.82857142857
128108685109839.666666667-1154.66666666667
129124493129814.828571429-5321.82857142857
130117967165.071428571434630.92857142857
131106747165.071428571433508.92857142857
132131263129814.8285714291448.17142857143
13368367165.07142857143-329.071428571428
134153278162000.192307692-8722.19230769231
13551187165.07142857143-2047.07142857143
1364024846097.75-5849.75
13707165.07142857143-7165.07142857143
13810072869381.531346.5
1398426769381.514885.5
14071317165.07142857143-34.0714285714284
14188127165.071428571431646.92857142857
1426395269381.5-5429.5
143120111109839.66666666710271.3333333333
14494127107068-12941

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 150596 & 129814.828571429 & 20781.1714285714 \tabularnewline
2 & 154801 & 129814.828571429 & 24986.1714285714 \tabularnewline
3 & 7215 & 7165.07142857143 & 49.9285714285716 \tabularnewline
4 & 122139 & 162000.192307692 & -39861.1923076923 \tabularnewline
5 & 221399 & 227012.857142857 & -5613.85714285713 \tabularnewline
6 & 441870 & 227012.857142857 & 214857.142857143 \tabularnewline
7 & 134379 & 129814.828571429 & 4564.17142857143 \tabularnewline
8 & 140428 & 109839.666666667 & 30588.3333333333 \tabularnewline
9 & 103255 & 129814.828571429 & -26559.8285714286 \tabularnewline
10 & 271630 & 227012.857142857 & 44617.1428571429 \tabularnewline
11 & 121593 & 162000.192307692 & -40407.1923076923 \tabularnewline
12 & 172071 & 162000.192307692 & 10070.8076923077 \tabularnewline
13 & 83707 & 129814.828571429 & -46107.8285714286 \tabularnewline
14 & 197412 & 227012.857142857 & -29600.8571428571 \tabularnewline
15 & 134398 & 107068 & 27330 \tabularnewline
16 & 139224 & 129814.828571429 & 9409.17142857143 \tabularnewline
17 & 134153 & 109839.666666667 & 24313.3333333333 \tabularnewline
18 & 64149 & 69381.5 & -5232.5 \tabularnewline
19 & 122294 & 162000.192307692 & -39706.1923076923 \tabularnewline
20 & 24889 & 46097.75 & -21208.75 \tabularnewline
21 & 52197 & 69381.5 & -17184.5 \tabularnewline
22 & 188915 & 162000.192307692 & 26914.8076923077 \tabularnewline
23 & 172874 & 162000.192307692 & 10873.8076923077 \tabularnewline
24 & 98575 & 129814.828571429 & -31239.8285714286 \tabularnewline
25 & 143546 & 129814.828571429 & 13731.1714285714 \tabularnewline
26 & 139780 & 129814.828571429 & 9965.17142857143 \tabularnewline
27 & 163784 & 162000.192307692 & 1783.80769230769 \tabularnewline
28 & 152479 & 109839.666666667 & 42639.3333333333 \tabularnewline
29 & 304108 & 227012.857142857 & 77095.1428571429 \tabularnewline
30 & 184024 & 227012.857142857 & -42988.8571428571 \tabularnewline
31 & 151621 & 129814.828571429 & 21806.1714285714 \tabularnewline
32 & 164516 & 129814.828571429 & 34701.1714285714 \tabularnewline
33 & 120289 & 162000.192307692 & -41711.1923076923 \tabularnewline
34 & 214701 & 227012.857142857 & -12311.8571428571 \tabularnewline
35 & 196865 & 162000.192307692 & 34864.8076923077 \tabularnewline
36 & 0 & 7165.07142857143 & -7165.07142857143 \tabularnewline
37 & 191678 & 227012.857142857 & -35334.8571428571 \tabularnewline
38 & 93107 & 129814.828571429 & -36707.8285714286 \tabularnewline
39 & 129352 & 129814.828571429 & -462.828571428574 \tabularnewline
40 & 229143 & 227012.857142857 & 2130.14285714287 \tabularnewline
41 & 177063 & 162000.192307692 & 15062.8076923077 \tabularnewline
42 & 126602 & 162000.192307692 & -35398.1923076923 \tabularnewline
43 & 93742 & 109839.666666667 & -16097.6666666667 \tabularnewline
44 & 152153 & 162000.192307692 & -9847.19230769231 \tabularnewline
45 & 95704 & 109839.666666667 & -14135.6666666667 \tabularnewline
46 & 139793 & 109839.666666667 & 29953.3333333333 \tabularnewline
47 & 76348 & 46097.75 & 30250.25 \tabularnewline
48 & 188980 & 162000.192307692 & 26979.8076923077 \tabularnewline
49 & 172100 & 162000.192307692 & 10099.8076923077 \tabularnewline
50 & 146552 & 227012.857142857 & -80460.8571428571 \tabularnewline
51 & 48188 & 46097.75 & 2090.25 \tabularnewline
52 & 109185 & 109839.666666667 & -654.666666666672 \tabularnewline
53 & 263652 & 227012.857142857 & 36639.1428571429 \tabularnewline
54 & 215609 & 162000.192307692 & 53608.8076923077 \tabularnewline
55 & 174876 & 162000.192307692 & 12875.8076923077 \tabularnewline
56 & 115124 & 129814.828571429 & -14690.8285714286 \tabularnewline
57 & 179712 & 129814.828571429 & 49897.1714285714 \tabularnewline
58 & 70369 & 69381.5 & 987.5 \tabularnewline
59 & 109215 & 107068 & 2147 \tabularnewline
60 & 166096 & 227012.857142857 & -60916.8571428571 \tabularnewline
61 & 130414 & 129814.828571429 & 599.171428571426 \tabularnewline
62 & 102057 & 162000.192307692 & -59943.1923076923 \tabularnewline
63 & 115310 & 109839.666666667 & 5470.33333333333 \tabularnewline
64 & 101181 & 107068 & -5887 \tabularnewline
65 & 135228 & 107068 & 28160 \tabularnewline
66 & 94982 & 109839.666666667 & -14857.6666666667 \tabularnewline
67 & 166919 & 129814.828571429 & 37104.1714285714 \tabularnewline
68 & 118169 & 162000.192307692 & -43831.1923076923 \tabularnewline
69 & 102361 & 109839.666666667 & -7478.66666666667 \tabularnewline
70 & 31970 & 46097.75 & -14127.75 \tabularnewline
71 & 200413 & 227012.857142857 & -26599.8571428571 \tabularnewline
72 & 103381 & 109839.666666667 & -6458.66666666667 \tabularnewline
73 & 94940 & 129814.828571429 & -34874.8285714286 \tabularnewline
74 & 101560 & 129814.828571429 & -28254.8285714286 \tabularnewline
75 & 144176 & 162000.192307692 & -17824.1923076923 \tabularnewline
76 & 71921 & 107068 & -35147 \tabularnewline
77 & 126905 & 129814.828571429 & -2909.82857142857 \tabularnewline
78 & 131184 & 162000.192307692 & -30816.1923076923 \tabularnewline
79 & 60138 & 69381.5 & -9243.5 \tabularnewline
80 & 84971 & 109839.666666667 & -24868.6666666667 \tabularnewline
81 & 80420 & 109839.666666667 & -29419.6666666667 \tabularnewline
82 & 233569 & 162000.192307692 & 71568.8076923077 \tabularnewline
83 & 56252 & 69381.5 & -13129.5 \tabularnewline
84 & 97181 & 129814.828571429 & -32633.8285714286 \tabularnewline
85 & 50800 & 69381.5 & -18581.5 \tabularnewline
86 & 125941 & 129814.828571429 & -3873.82857142857 \tabularnewline
87 & 211032 & 162000.192307692 & 49031.8076923077 \tabularnewline
88 & 71960 & 69381.5 & 2578.5 \tabularnewline
89 & 90379 & 109839.666666667 & -19460.6666666667 \tabularnewline
90 & 125650 & 129814.828571429 & -4164.82857142857 \tabularnewline
91 & 115572 & 129814.828571429 & -14242.8285714286 \tabularnewline
92 & 136266 & 162000.192307692 & -25734.1923076923 \tabularnewline
93 & 146715 & 129814.828571429 & 16900.1714285714 \tabularnewline
94 & 124626 & 129814.828571429 & -5188.82857142857 \tabularnewline
95 & 49176 & 69381.5 & -20205.5 \tabularnewline
96 & 212926 & 162000.192307692 & 50925.8076923077 \tabularnewline
97 & 173884 & 129814.828571429 & 44069.1714285714 \tabularnewline
98 & 19349 & 7165.07142857143 & 12183.9285714286 \tabularnewline
99 & 181141 & 162000.192307692 & 19140.8076923077 \tabularnewline
100 & 145502 & 227012.857142857 & -81510.8571428571 \tabularnewline
101 & 45448 & 69381.5 & -23933.5 \tabularnewline
102 & 58280 & 69381.5 & -11101.5 \tabularnewline
103 & 115944 & 107068 & 8876 \tabularnewline
104 & 94341 & 69381.5 & 24959.5 \tabularnewline
105 & 59090 & 46097.75 & 12992.25 \tabularnewline
106 & 27676 & 46097.75 & -18421.75 \tabularnewline
107 & 120586 & 109839.666666667 & 10746.3333333333 \tabularnewline
108 & 88011 & 69381.5 & 18629.5 \tabularnewline
109 & 0 & 7165.07142857143 & -7165.07142857143 \tabularnewline
110 & 85610 & 109839.666666667 & -24229.6666666667 \tabularnewline
111 & 94530 & 107068 & -12538 \tabularnewline
112 & 117769 & 129814.828571429 & -12045.8285714286 \tabularnewline
113 & 107653 & 109839.666666667 & -2186.66666666667 \tabularnewline
114 & 71894 & 109839.666666667 & -37945.6666666667 \tabularnewline
115 & 3616 & 7165.07142857143 & -3549.07142857143 \tabularnewline
116 & 0 & 7165.07142857143 & -7165.07142857143 \tabularnewline
117 & 154806 & 109839.666666667 & 44966.3333333333 \tabularnewline
118 & 136061 & 129814.828571429 & 6246.17142857143 \tabularnewline
119 & 141822 & 129814.828571429 & 12007.1714285714 \tabularnewline
120 & 106515 & 69381.5 & 37133.5 \tabularnewline
121 & 43410 & 69381.5 & -25971.5 \tabularnewline
122 & 146920 & 129814.828571429 & 17105.1714285714 \tabularnewline
123 & 88874 & 69381.5 & 19492.5 \tabularnewline
124 & 111924 & 129814.828571429 & -17890.8285714286 \tabularnewline
125 & 60373 & 46097.75 & 14275.25 \tabularnewline
126 & 19764 & 7165.07142857143 & 12598.9285714286 \tabularnewline
127 & 121665 & 129814.828571429 & -8149.82857142857 \tabularnewline
128 & 108685 & 109839.666666667 & -1154.66666666667 \tabularnewline
129 & 124493 & 129814.828571429 & -5321.82857142857 \tabularnewline
130 & 11796 & 7165.07142857143 & 4630.92857142857 \tabularnewline
131 & 10674 & 7165.07142857143 & 3508.92857142857 \tabularnewline
132 & 131263 & 129814.828571429 & 1448.17142857143 \tabularnewline
133 & 6836 & 7165.07142857143 & -329.071428571428 \tabularnewline
134 & 153278 & 162000.192307692 & -8722.19230769231 \tabularnewline
135 & 5118 & 7165.07142857143 & -2047.07142857143 \tabularnewline
136 & 40248 & 46097.75 & -5849.75 \tabularnewline
137 & 0 & 7165.07142857143 & -7165.07142857143 \tabularnewline
138 & 100728 & 69381.5 & 31346.5 \tabularnewline
139 & 84267 & 69381.5 & 14885.5 \tabularnewline
140 & 7131 & 7165.07142857143 & -34.0714285714284 \tabularnewline
141 & 8812 & 7165.07142857143 & 1646.92857142857 \tabularnewline
142 & 63952 & 69381.5 & -5429.5 \tabularnewline
143 & 120111 & 109839.666666667 & 10271.3333333333 \tabularnewline
144 & 94127 & 107068 & -12941 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=160640&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]150596[/C][C]129814.828571429[/C][C]20781.1714285714[/C][/ROW]
[ROW][C]2[/C][C]154801[/C][C]129814.828571429[/C][C]24986.1714285714[/C][/ROW]
[ROW][C]3[/C][C]7215[/C][C]7165.07142857143[/C][C]49.9285714285716[/C][/ROW]
[ROW][C]4[/C][C]122139[/C][C]162000.192307692[/C][C]-39861.1923076923[/C][/ROW]
[ROW][C]5[/C][C]221399[/C][C]227012.857142857[/C][C]-5613.85714285713[/C][/ROW]
[ROW][C]6[/C][C]441870[/C][C]227012.857142857[/C][C]214857.142857143[/C][/ROW]
[ROW][C]7[/C][C]134379[/C][C]129814.828571429[/C][C]4564.17142857143[/C][/ROW]
[ROW][C]8[/C][C]140428[/C][C]109839.666666667[/C][C]30588.3333333333[/C][/ROW]
[ROW][C]9[/C][C]103255[/C][C]129814.828571429[/C][C]-26559.8285714286[/C][/ROW]
[ROW][C]10[/C][C]271630[/C][C]227012.857142857[/C][C]44617.1428571429[/C][/ROW]
[ROW][C]11[/C][C]121593[/C][C]162000.192307692[/C][C]-40407.1923076923[/C][/ROW]
[ROW][C]12[/C][C]172071[/C][C]162000.192307692[/C][C]10070.8076923077[/C][/ROW]
[ROW][C]13[/C][C]83707[/C][C]129814.828571429[/C][C]-46107.8285714286[/C][/ROW]
[ROW][C]14[/C][C]197412[/C][C]227012.857142857[/C][C]-29600.8571428571[/C][/ROW]
[ROW][C]15[/C][C]134398[/C][C]107068[/C][C]27330[/C][/ROW]
[ROW][C]16[/C][C]139224[/C][C]129814.828571429[/C][C]9409.17142857143[/C][/ROW]
[ROW][C]17[/C][C]134153[/C][C]109839.666666667[/C][C]24313.3333333333[/C][/ROW]
[ROW][C]18[/C][C]64149[/C][C]69381.5[/C][C]-5232.5[/C][/ROW]
[ROW][C]19[/C][C]122294[/C][C]162000.192307692[/C][C]-39706.1923076923[/C][/ROW]
[ROW][C]20[/C][C]24889[/C][C]46097.75[/C][C]-21208.75[/C][/ROW]
[ROW][C]21[/C][C]52197[/C][C]69381.5[/C][C]-17184.5[/C][/ROW]
[ROW][C]22[/C][C]188915[/C][C]162000.192307692[/C][C]26914.8076923077[/C][/ROW]
[ROW][C]23[/C][C]172874[/C][C]162000.192307692[/C][C]10873.8076923077[/C][/ROW]
[ROW][C]24[/C][C]98575[/C][C]129814.828571429[/C][C]-31239.8285714286[/C][/ROW]
[ROW][C]25[/C][C]143546[/C][C]129814.828571429[/C][C]13731.1714285714[/C][/ROW]
[ROW][C]26[/C][C]139780[/C][C]129814.828571429[/C][C]9965.17142857143[/C][/ROW]
[ROW][C]27[/C][C]163784[/C][C]162000.192307692[/C][C]1783.80769230769[/C][/ROW]
[ROW][C]28[/C][C]152479[/C][C]109839.666666667[/C][C]42639.3333333333[/C][/ROW]
[ROW][C]29[/C][C]304108[/C][C]227012.857142857[/C][C]77095.1428571429[/C][/ROW]
[ROW][C]30[/C][C]184024[/C][C]227012.857142857[/C][C]-42988.8571428571[/C][/ROW]
[ROW][C]31[/C][C]151621[/C][C]129814.828571429[/C][C]21806.1714285714[/C][/ROW]
[ROW][C]32[/C][C]164516[/C][C]129814.828571429[/C][C]34701.1714285714[/C][/ROW]
[ROW][C]33[/C][C]120289[/C][C]162000.192307692[/C][C]-41711.1923076923[/C][/ROW]
[ROW][C]34[/C][C]214701[/C][C]227012.857142857[/C][C]-12311.8571428571[/C][/ROW]
[ROW][C]35[/C][C]196865[/C][C]162000.192307692[/C][C]34864.8076923077[/C][/ROW]
[ROW][C]36[/C][C]0[/C][C]7165.07142857143[/C][C]-7165.07142857143[/C][/ROW]
[ROW][C]37[/C][C]191678[/C][C]227012.857142857[/C][C]-35334.8571428571[/C][/ROW]
[ROW][C]38[/C][C]93107[/C][C]129814.828571429[/C][C]-36707.8285714286[/C][/ROW]
[ROW][C]39[/C][C]129352[/C][C]129814.828571429[/C][C]-462.828571428574[/C][/ROW]
[ROW][C]40[/C][C]229143[/C][C]227012.857142857[/C][C]2130.14285714287[/C][/ROW]
[ROW][C]41[/C][C]177063[/C][C]162000.192307692[/C][C]15062.8076923077[/C][/ROW]
[ROW][C]42[/C][C]126602[/C][C]162000.192307692[/C][C]-35398.1923076923[/C][/ROW]
[ROW][C]43[/C][C]93742[/C][C]109839.666666667[/C][C]-16097.6666666667[/C][/ROW]
[ROW][C]44[/C][C]152153[/C][C]162000.192307692[/C][C]-9847.19230769231[/C][/ROW]
[ROW][C]45[/C][C]95704[/C][C]109839.666666667[/C][C]-14135.6666666667[/C][/ROW]
[ROW][C]46[/C][C]139793[/C][C]109839.666666667[/C][C]29953.3333333333[/C][/ROW]
[ROW][C]47[/C][C]76348[/C][C]46097.75[/C][C]30250.25[/C][/ROW]
[ROW][C]48[/C][C]188980[/C][C]162000.192307692[/C][C]26979.8076923077[/C][/ROW]
[ROW][C]49[/C][C]172100[/C][C]162000.192307692[/C][C]10099.8076923077[/C][/ROW]
[ROW][C]50[/C][C]146552[/C][C]227012.857142857[/C][C]-80460.8571428571[/C][/ROW]
[ROW][C]51[/C][C]48188[/C][C]46097.75[/C][C]2090.25[/C][/ROW]
[ROW][C]52[/C][C]109185[/C][C]109839.666666667[/C][C]-654.666666666672[/C][/ROW]
[ROW][C]53[/C][C]263652[/C][C]227012.857142857[/C][C]36639.1428571429[/C][/ROW]
[ROW][C]54[/C][C]215609[/C][C]162000.192307692[/C][C]53608.8076923077[/C][/ROW]
[ROW][C]55[/C][C]174876[/C][C]162000.192307692[/C][C]12875.8076923077[/C][/ROW]
[ROW][C]56[/C][C]115124[/C][C]129814.828571429[/C][C]-14690.8285714286[/C][/ROW]
[ROW][C]57[/C][C]179712[/C][C]129814.828571429[/C][C]49897.1714285714[/C][/ROW]
[ROW][C]58[/C][C]70369[/C][C]69381.5[/C][C]987.5[/C][/ROW]
[ROW][C]59[/C][C]109215[/C][C]107068[/C][C]2147[/C][/ROW]
[ROW][C]60[/C][C]166096[/C][C]227012.857142857[/C][C]-60916.8571428571[/C][/ROW]
[ROW][C]61[/C][C]130414[/C][C]129814.828571429[/C][C]599.171428571426[/C][/ROW]
[ROW][C]62[/C][C]102057[/C][C]162000.192307692[/C][C]-59943.1923076923[/C][/ROW]
[ROW][C]63[/C][C]115310[/C][C]109839.666666667[/C][C]5470.33333333333[/C][/ROW]
[ROW][C]64[/C][C]101181[/C][C]107068[/C][C]-5887[/C][/ROW]
[ROW][C]65[/C][C]135228[/C][C]107068[/C][C]28160[/C][/ROW]
[ROW][C]66[/C][C]94982[/C][C]109839.666666667[/C][C]-14857.6666666667[/C][/ROW]
[ROW][C]67[/C][C]166919[/C][C]129814.828571429[/C][C]37104.1714285714[/C][/ROW]
[ROW][C]68[/C][C]118169[/C][C]162000.192307692[/C][C]-43831.1923076923[/C][/ROW]
[ROW][C]69[/C][C]102361[/C][C]109839.666666667[/C][C]-7478.66666666667[/C][/ROW]
[ROW][C]70[/C][C]31970[/C][C]46097.75[/C][C]-14127.75[/C][/ROW]
[ROW][C]71[/C][C]200413[/C][C]227012.857142857[/C][C]-26599.8571428571[/C][/ROW]
[ROW][C]72[/C][C]103381[/C][C]109839.666666667[/C][C]-6458.66666666667[/C][/ROW]
[ROW][C]73[/C][C]94940[/C][C]129814.828571429[/C][C]-34874.8285714286[/C][/ROW]
[ROW][C]74[/C][C]101560[/C][C]129814.828571429[/C][C]-28254.8285714286[/C][/ROW]
[ROW][C]75[/C][C]144176[/C][C]162000.192307692[/C][C]-17824.1923076923[/C][/ROW]
[ROW][C]76[/C][C]71921[/C][C]107068[/C][C]-35147[/C][/ROW]
[ROW][C]77[/C][C]126905[/C][C]129814.828571429[/C][C]-2909.82857142857[/C][/ROW]
[ROW][C]78[/C][C]131184[/C][C]162000.192307692[/C][C]-30816.1923076923[/C][/ROW]
[ROW][C]79[/C][C]60138[/C][C]69381.5[/C][C]-9243.5[/C][/ROW]
[ROW][C]80[/C][C]84971[/C][C]109839.666666667[/C][C]-24868.6666666667[/C][/ROW]
[ROW][C]81[/C][C]80420[/C][C]109839.666666667[/C][C]-29419.6666666667[/C][/ROW]
[ROW][C]82[/C][C]233569[/C][C]162000.192307692[/C][C]71568.8076923077[/C][/ROW]
[ROW][C]83[/C][C]56252[/C][C]69381.5[/C][C]-13129.5[/C][/ROW]
[ROW][C]84[/C][C]97181[/C][C]129814.828571429[/C][C]-32633.8285714286[/C][/ROW]
[ROW][C]85[/C][C]50800[/C][C]69381.5[/C][C]-18581.5[/C][/ROW]
[ROW][C]86[/C][C]125941[/C][C]129814.828571429[/C][C]-3873.82857142857[/C][/ROW]
[ROW][C]87[/C][C]211032[/C][C]162000.192307692[/C][C]49031.8076923077[/C][/ROW]
[ROW][C]88[/C][C]71960[/C][C]69381.5[/C][C]2578.5[/C][/ROW]
[ROW][C]89[/C][C]90379[/C][C]109839.666666667[/C][C]-19460.6666666667[/C][/ROW]
[ROW][C]90[/C][C]125650[/C][C]129814.828571429[/C][C]-4164.82857142857[/C][/ROW]
[ROW][C]91[/C][C]115572[/C][C]129814.828571429[/C][C]-14242.8285714286[/C][/ROW]
[ROW][C]92[/C][C]136266[/C][C]162000.192307692[/C][C]-25734.1923076923[/C][/ROW]
[ROW][C]93[/C][C]146715[/C][C]129814.828571429[/C][C]16900.1714285714[/C][/ROW]
[ROW][C]94[/C][C]124626[/C][C]129814.828571429[/C][C]-5188.82857142857[/C][/ROW]
[ROW][C]95[/C][C]49176[/C][C]69381.5[/C][C]-20205.5[/C][/ROW]
[ROW][C]96[/C][C]212926[/C][C]162000.192307692[/C][C]50925.8076923077[/C][/ROW]
[ROW][C]97[/C][C]173884[/C][C]129814.828571429[/C][C]44069.1714285714[/C][/ROW]
[ROW][C]98[/C][C]19349[/C][C]7165.07142857143[/C][C]12183.9285714286[/C][/ROW]
[ROW][C]99[/C][C]181141[/C][C]162000.192307692[/C][C]19140.8076923077[/C][/ROW]
[ROW][C]100[/C][C]145502[/C][C]227012.857142857[/C][C]-81510.8571428571[/C][/ROW]
[ROW][C]101[/C][C]45448[/C][C]69381.5[/C][C]-23933.5[/C][/ROW]
[ROW][C]102[/C][C]58280[/C][C]69381.5[/C][C]-11101.5[/C][/ROW]
[ROW][C]103[/C][C]115944[/C][C]107068[/C][C]8876[/C][/ROW]
[ROW][C]104[/C][C]94341[/C][C]69381.5[/C][C]24959.5[/C][/ROW]
[ROW][C]105[/C][C]59090[/C][C]46097.75[/C][C]12992.25[/C][/ROW]
[ROW][C]106[/C][C]27676[/C][C]46097.75[/C][C]-18421.75[/C][/ROW]
[ROW][C]107[/C][C]120586[/C][C]109839.666666667[/C][C]10746.3333333333[/C][/ROW]
[ROW][C]108[/C][C]88011[/C][C]69381.5[/C][C]18629.5[/C][/ROW]
[ROW][C]109[/C][C]0[/C][C]7165.07142857143[/C][C]-7165.07142857143[/C][/ROW]
[ROW][C]110[/C][C]85610[/C][C]109839.666666667[/C][C]-24229.6666666667[/C][/ROW]
[ROW][C]111[/C][C]94530[/C][C]107068[/C][C]-12538[/C][/ROW]
[ROW][C]112[/C][C]117769[/C][C]129814.828571429[/C][C]-12045.8285714286[/C][/ROW]
[ROW][C]113[/C][C]107653[/C][C]109839.666666667[/C][C]-2186.66666666667[/C][/ROW]
[ROW][C]114[/C][C]71894[/C][C]109839.666666667[/C][C]-37945.6666666667[/C][/ROW]
[ROW][C]115[/C][C]3616[/C][C]7165.07142857143[/C][C]-3549.07142857143[/C][/ROW]
[ROW][C]116[/C][C]0[/C][C]7165.07142857143[/C][C]-7165.07142857143[/C][/ROW]
[ROW][C]117[/C][C]154806[/C][C]109839.666666667[/C][C]44966.3333333333[/C][/ROW]
[ROW][C]118[/C][C]136061[/C][C]129814.828571429[/C][C]6246.17142857143[/C][/ROW]
[ROW][C]119[/C][C]141822[/C][C]129814.828571429[/C][C]12007.1714285714[/C][/ROW]
[ROW][C]120[/C][C]106515[/C][C]69381.5[/C][C]37133.5[/C][/ROW]
[ROW][C]121[/C][C]43410[/C][C]69381.5[/C][C]-25971.5[/C][/ROW]
[ROW][C]122[/C][C]146920[/C][C]129814.828571429[/C][C]17105.1714285714[/C][/ROW]
[ROW][C]123[/C][C]88874[/C][C]69381.5[/C][C]19492.5[/C][/ROW]
[ROW][C]124[/C][C]111924[/C][C]129814.828571429[/C][C]-17890.8285714286[/C][/ROW]
[ROW][C]125[/C][C]60373[/C][C]46097.75[/C][C]14275.25[/C][/ROW]
[ROW][C]126[/C][C]19764[/C][C]7165.07142857143[/C][C]12598.9285714286[/C][/ROW]
[ROW][C]127[/C][C]121665[/C][C]129814.828571429[/C][C]-8149.82857142857[/C][/ROW]
[ROW][C]128[/C][C]108685[/C][C]109839.666666667[/C][C]-1154.66666666667[/C][/ROW]
[ROW][C]129[/C][C]124493[/C][C]129814.828571429[/C][C]-5321.82857142857[/C][/ROW]
[ROW][C]130[/C][C]11796[/C][C]7165.07142857143[/C][C]4630.92857142857[/C][/ROW]
[ROW][C]131[/C][C]10674[/C][C]7165.07142857143[/C][C]3508.92857142857[/C][/ROW]
[ROW][C]132[/C][C]131263[/C][C]129814.828571429[/C][C]1448.17142857143[/C][/ROW]
[ROW][C]133[/C][C]6836[/C][C]7165.07142857143[/C][C]-329.071428571428[/C][/ROW]
[ROW][C]134[/C][C]153278[/C][C]162000.192307692[/C][C]-8722.19230769231[/C][/ROW]
[ROW][C]135[/C][C]5118[/C][C]7165.07142857143[/C][C]-2047.07142857143[/C][/ROW]
[ROW][C]136[/C][C]40248[/C][C]46097.75[/C][C]-5849.75[/C][/ROW]
[ROW][C]137[/C][C]0[/C][C]7165.07142857143[/C][C]-7165.07142857143[/C][/ROW]
[ROW][C]138[/C][C]100728[/C][C]69381.5[/C][C]31346.5[/C][/ROW]
[ROW][C]139[/C][C]84267[/C][C]69381.5[/C][C]14885.5[/C][/ROW]
[ROW][C]140[/C][C]7131[/C][C]7165.07142857143[/C][C]-34.0714285714284[/C][/ROW]
[ROW][C]141[/C][C]8812[/C][C]7165.07142857143[/C][C]1646.92857142857[/C][/ROW]
[ROW][C]142[/C][C]63952[/C][C]69381.5[/C][C]-5429.5[/C][/ROW]
[ROW][C]143[/C][C]120111[/C][C]109839.666666667[/C][C]10271.3333333333[/C][/ROW]
[ROW][C]144[/C][C]94127[/C][C]107068[/C][C]-12941[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=160640&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160640&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
1150596129814.82857142920781.1714285714
2154801129814.82857142924986.1714285714
372157165.0714285714349.9285714285716
4122139162000.192307692-39861.1923076923
5221399227012.857142857-5613.85714285713
6441870227012.857142857214857.142857143
7134379129814.8285714294564.17142857143
8140428109839.66666666730588.3333333333
9103255129814.828571429-26559.8285714286
10271630227012.85714285744617.1428571429
11121593162000.192307692-40407.1923076923
12172071162000.19230769210070.8076923077
1383707129814.828571429-46107.8285714286
14197412227012.857142857-29600.8571428571
1513439810706827330
16139224129814.8285714299409.17142857143
17134153109839.66666666724313.3333333333
186414969381.5-5232.5
19122294162000.192307692-39706.1923076923
202488946097.75-21208.75
215219769381.5-17184.5
22188915162000.19230769226914.8076923077
23172874162000.19230769210873.8076923077
2498575129814.828571429-31239.8285714286
25143546129814.82857142913731.1714285714
26139780129814.8285714299965.17142857143
27163784162000.1923076921783.80769230769
28152479109839.66666666742639.3333333333
29304108227012.85714285777095.1428571429
30184024227012.857142857-42988.8571428571
31151621129814.82857142921806.1714285714
32164516129814.82857142934701.1714285714
33120289162000.192307692-41711.1923076923
34214701227012.857142857-12311.8571428571
35196865162000.19230769234864.8076923077
3607165.07142857143-7165.07142857143
37191678227012.857142857-35334.8571428571
3893107129814.828571429-36707.8285714286
39129352129814.828571429-462.828571428574
40229143227012.8571428572130.14285714287
41177063162000.19230769215062.8076923077
42126602162000.192307692-35398.1923076923
4393742109839.666666667-16097.6666666667
44152153162000.192307692-9847.19230769231
4595704109839.666666667-14135.6666666667
46139793109839.66666666729953.3333333333
477634846097.7530250.25
48188980162000.19230769226979.8076923077
49172100162000.19230769210099.8076923077
50146552227012.857142857-80460.8571428571
514818846097.752090.25
52109185109839.666666667-654.666666666672
53263652227012.85714285736639.1428571429
54215609162000.19230769253608.8076923077
55174876162000.19230769212875.8076923077
56115124129814.828571429-14690.8285714286
57179712129814.82857142949897.1714285714
587036969381.5987.5
591092151070682147
60166096227012.857142857-60916.8571428571
61130414129814.828571429599.171428571426
62102057162000.192307692-59943.1923076923
63115310109839.6666666675470.33333333333
64101181107068-5887
6513522810706828160
6694982109839.666666667-14857.6666666667
67166919129814.82857142937104.1714285714
68118169162000.192307692-43831.1923076923
69102361109839.666666667-7478.66666666667
703197046097.75-14127.75
71200413227012.857142857-26599.8571428571
72103381109839.666666667-6458.66666666667
7394940129814.828571429-34874.8285714286
74101560129814.828571429-28254.8285714286
75144176162000.192307692-17824.1923076923
7671921107068-35147
77126905129814.828571429-2909.82857142857
78131184162000.192307692-30816.1923076923
796013869381.5-9243.5
8084971109839.666666667-24868.6666666667
8180420109839.666666667-29419.6666666667
82233569162000.19230769271568.8076923077
835625269381.5-13129.5
8497181129814.828571429-32633.8285714286
855080069381.5-18581.5
86125941129814.828571429-3873.82857142857
87211032162000.19230769249031.8076923077
887196069381.52578.5
8990379109839.666666667-19460.6666666667
90125650129814.828571429-4164.82857142857
91115572129814.828571429-14242.8285714286
92136266162000.192307692-25734.1923076923
93146715129814.82857142916900.1714285714
94124626129814.828571429-5188.82857142857
954917669381.5-20205.5
96212926162000.19230769250925.8076923077
97173884129814.82857142944069.1714285714
98193497165.0714285714312183.9285714286
99181141162000.19230769219140.8076923077
100145502227012.857142857-81510.8571428571
1014544869381.5-23933.5
1025828069381.5-11101.5
1031159441070688876
1049434169381.524959.5
1055909046097.7512992.25
1062767646097.75-18421.75
107120586109839.66666666710746.3333333333
1088801169381.518629.5
10907165.07142857143-7165.07142857143
11085610109839.666666667-24229.6666666667
11194530107068-12538
112117769129814.828571429-12045.8285714286
113107653109839.666666667-2186.66666666667
11471894109839.666666667-37945.6666666667
11536167165.07142857143-3549.07142857143
11607165.07142857143-7165.07142857143
117154806109839.66666666744966.3333333333
118136061129814.8285714296246.17142857143
119141822129814.82857142912007.1714285714
12010651569381.537133.5
1214341069381.5-25971.5
122146920129814.82857142917105.1714285714
1238887469381.519492.5
124111924129814.828571429-17890.8285714286
1256037346097.7514275.25
126197647165.0714285714312598.9285714286
127121665129814.828571429-8149.82857142857
128108685109839.666666667-1154.66666666667
129124493129814.828571429-5321.82857142857
130117967165.071428571434630.92857142857
131106747165.071428571433508.92857142857
132131263129814.8285714291448.17142857143
13368367165.07142857143-329.071428571428
134153278162000.192307692-8722.19230769231
13551187165.07142857143-2047.07142857143
1364024846097.75-5849.75
13707165.07142857143-7165.07142857143
13810072869381.531346.5
1398426769381.514885.5
14071317165.07142857143-34.0714285714284
14188127165.071428571431646.92857142857
1426395269381.5-5429.5
143120111109839.66666666710271.3333333333
14494127107068-12941



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