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, 21 Dec 2011 09:35:39 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/21/t1324478448t4eirzbkh3tuf4z.htm/, Retrieved Tue, 07 May 2024 13:44:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=158758, Retrieved Tue, 07 May 2024 13:44:53 +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)] [recursive partiti...] [2011-12-21 14:35:39] [e8e105c2e7d07131df1852088351b05f] [Current]
Feedback Forum

Post a new message
Dataseries X:
1801	159261	91	48	74
1717	189672	59	53	80
192	7215	18	0	0
2295	129098	95	51	84
3450	230632	136	76	124
6861	515038	263	136	140
1795	180745	56	62	88
1681	185559	59	83	115
1897	154581	44	55	109
2974	298001	96	67	104
1946	121844	75	50	63
2330	200907	70	87	118
1839	101647	100	46	71
3183	220269	119	79	112
1486	170952	61	56	63
1567	154647	88	54	86
1756	142018	57	81	132
1247	79030	61	6	54
2779	167047	87	74	134
726	27997	24	13	57
1048	73019	59	22	59
2805	241082	100	99	113
1760	195820	72	38	96
2266	142001	54	59	96
1848	145433	86	50	78
1665	183744	32	50	80
2114	206521	164	63	93
1448	201385	94	90	109
2741	354924	118	60	115
2112	192399	44	52	79
1684	182286	44	61	103
1616	181590	45	60	71
2227	133801	105	53	66
3088	233686	123	76	100
2389	219428	53	63	96
1	0	1	0	0
2099	223044	63	54	109
1669	100129	51	44	51
2137	145864	49	42	119
2153	249965	64	83	136
2390	242379	71	105	84
1701	145794	59	37	136
1049	103623	33	25	84
2161	195891	78	64	92
1276	117156	50	55	103
1190	157787	95	41	82
745	81293	32	23	106
2374	243273	103	77	96
2289	233155	89	59	124
2639	160344	59	68	97
658	48188	28	12	82
1917	161922	69	99	79
2557	307432	74	78	97
2026	235223	79	56	107
1911	195583	59	67	126
1716	146061	56	40	40
1852	208834	67	53	96
981	93764	24	26	100
1177	151985	66	67	91
2849	195506	97	36	136
1688	148922	60	50	124
2162	142670	81	51	79
1331	129561	61	46	74
1307	122204	38	57	96
1256	160930	35	27	97
1294	99184	41	38	122
2311	192811	71	72	144
2897	138708	65	93	90
1103	114408	38	59	93
340	31970	15	5	78
2791	225558	112	53	72
1338	139220	72	40	45
1441	113612	68	72	120
1681	119537	72	53	59
2650	162203	67	81	133
1499	100098	44	27	117
2302	174768	60	94	123
2540	158459	97	71	110
1000	80934	30	20	75
1234	84971	71	34	114
927	80545	68	54	94
2176	287191	64	49	116
957	62974	28	26	86
1551	134091	40	48	90
1014	75555	46	35	87
1772	162154	55	32	99
2630	227638	229	55	132
1205	115367	112	58	96
1392	115603	63	44	91
1524	155537	52	45	77
1829	153133	41	49	104
2229	165618	78	72	97
1233	151517	57	39	94
1365	133686	58	28	60
950	61342	40	24	46
2319	245196	117	52	135
1857	195576	70	96	90
223	19349	12	13	2
2390	225371	105	38	96
1985	153213	78	41	109
700	59117	29	24	15
1062	91762	24	54	68
1311	136769	54	68	88
1157	114798	61	28	84
823	85338	40	36	46
596	27676	22	2	59
1545	153535	48	91	116
1130	122417	37	29	29
0	0	0	0	0
1082	91529	32	46	91
1135	107205	67	25	76
1367	144664	45	51	83
1506	146445	63	60	84
870	76656	60	36	65
78	3616	5	0	0
0	0	0	0	0
1130	183088	44	40	84
1582	144677	84	68	114
2034	159104	98	28	124
970	128944	39	41	92
778	43410	19	7	3
1752	175774	73	70	109
957	95401	42	30	74
2098	134837	55	69	121
731	60493	40	3	48
285	19764	12	10	8
1834	164062	56	46	80
1148	132696	33	34	107
1646	155367	54	54	116
256	11796	9	1	8
98	10674	9	0	0
1404	142261	57	39	56
41	6836	3	0	4
1824	162563	63	48	70
42	5118	3	5	0
528	40248	16	8	14
0	0	0	0	0
1073	122641	47	38	91
1305	88837	38	21	89
81	7131	4	0	0
261	9056	14	0	12
934	76611	24	15	60
1180	132697	51	50	80
1148	100681	20	17	88




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158758&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.8414
R-squared0.708
RMSE19.7612

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8414[/C][/ROW]
[ROW][C]R-squared[/C][C]0.708[/C][/ROW]
[ROW][C]RMSE[/C][C]19.7612[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158758&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158758&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.8414
R-squared0.708
RMSE19.7612







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
17483.1666666666667-9.16666666666667
28083.1666666666667-3.16666666666667
3040.2-40.2
484108.585365853659-24.5853658536585
5124108.58536585365915.4146341463415
6140108.58536585365931.4146341463415
788105.714285714286-17.7142857142857
8115105.7142857142869.28571428571429
910983.166666666666725.8333333333333
10104108.585365853659-4.58536585365853
116383.1666666666667-20.1666666666667
12118108.5853658536599.41463414634147
137183.1666666666667-12.1666666666667
14112108.5853658536593.41463414634147
156383.1666666666667-20.1666666666667
168683.16666666666672.83333333333333
17132105.71428571428626.2857142857143
185483.1666666666667-29.1666666666667
19134108.58536585365925.4146341463415
205740.216.8
215983.1666666666667-24.1666666666667
22113108.5853658536594.41463414634147
239683.166666666666712.8333333333333
2496108.585365853659-12.5853658536585
257883.1666666666667-5.16666666666667
268083.1666666666667-3.16666666666667
2793108.585365853659-15.5853658536585
28109105.7142857142863.28571428571429
29115108.5853658536596.41463414634147
3079108.585365853659-29.5853658536585
31103105.714285714286-2.71428571428571
327183.1666666666667-12.1666666666667
3366108.585365853659-42.5853658536585
34100108.585365853659-8.58536585365853
3596108.585365853659-12.5853658536585
3602.61538461538462-2.61538461538462
37109108.5853658536590.41463414634147
385183.1666666666667-32.1666666666667
39119108.58536585365910.4146341463415
40136108.58536585365927.4146341463415
4184108.585365853659-24.5853658536585
4213683.166666666666752.8333333333333
438483.16666666666670.833333333333329
4492108.585365853659-16.5853658536585
4510383.166666666666719.8333333333333
468283.1666666666667-1.16666666666667
4710683.166666666666722.8333333333333
4896108.585365853659-12.5853658536585
49124108.58536585365915.4146341463415
5097108.585365853659-11.5853658536585
518240.241.8
5279105.714285714286-26.7142857142857
5397108.585365853659-11.5853658536585
54107108.585365853659-1.58536585365853
55126105.71428571428620.2857142857143
564083.1666666666667-43.1666666666667
579683.166666666666712.8333333333333
5810083.166666666666716.8333333333333
5991105.714285714286-14.7142857142857
60136108.58536585365927.4146341463415
6112483.166666666666740.8333333333333
6279108.585365853659-29.5853658536585
637483.1666666666667-9.16666666666667
649683.166666666666712.8333333333333
659783.166666666666713.8333333333333
6612283.166666666666738.8333333333333
67144108.58536585365935.4146341463415
6890108.585365853659-18.5853658536585
699383.16666666666679.83333333333333
707840.237.8
7172108.585365853659-36.5853658536585
724583.1666666666667-38.1666666666667
73120105.71428571428614.2857142857143
745983.1666666666667-24.1666666666667
75133108.58536585365924.4146341463415
7611783.166666666666733.8333333333333
77123108.58536585365914.4146341463415
78110108.5853658536591.41463414634147
797583.1666666666667-8.16666666666667
8011483.166666666666730.8333333333333
819483.166666666666710.8333333333333
82116108.5853658536597.41463414634147
838683.16666666666672.83333333333333
849083.16666666666676.83333333333333
858783.16666666666673.83333333333333
869983.166666666666715.8333333333333
87132108.58536585365923.4146341463415
889683.166666666666712.8333333333333
899183.16666666666677.83333333333333
907783.1666666666667-6.16666666666667
9110483.166666666666720.8333333333333
9297108.585365853659-11.5853658536585
939483.166666666666710.8333333333333
946083.1666666666667-23.1666666666667
954640.25.8
96135108.58536585365926.4146341463415
9790105.714285714286-15.7142857142857
9822.61538461538462-0.615384615384615
9996108.585365853659-12.5853658536585
100109108.5853658536590.41463414634147
1011540.2-25.2
1026883.1666666666667-15.1666666666667
10388105.714285714286-17.7142857142857
1048483.16666666666670.833333333333329
1054683.1666666666667-37.1666666666667
1065940.218.8
107116105.71428571428610.2857142857143
1082983.1666666666667-54.1666666666667
10902.61538461538462-2.61538461538462
1109183.16666666666677.83333333333333
1117683.1666666666667-7.16666666666667
1128383.1666666666667-0.166666666666671
1138483.16666666666670.833333333333329
1146583.1666666666667-18.1666666666667
11502.61538461538462-2.61538461538462
11602.61538461538462-2.61538461538462
1178483.16666666666670.833333333333329
118114105.7142857142868.28571428571429
119124108.58536585365915.4146341463415
1209283.16666666666678.83333333333333
121340.2-37.2
122109105.7142857142863.28571428571429
1237483.1666666666667-9.16666666666667
124121108.58536585365912.4146341463415
1254840.27.8
12682.615384615384625.38461538461539
1278083.1666666666667-3.16666666666667
12810783.166666666666723.8333333333333
12911683.166666666666732.8333333333333
13082.615384615384625.38461538461539
13102.61538461538462-2.61538461538462
1325683.1666666666667-27.1666666666667
13342.615384615384621.38461538461538
1347083.1666666666667-13.1666666666667
13502.61538461538462-2.61538461538462
1361440.2-26.2
13702.61538461538462-2.61538461538462
1389183.16666666666677.83333333333333
1398983.16666666666675.83333333333333
14002.61538461538462-2.61538461538462
141122.615384615384629.38461538461539
1426083.1666666666667-23.1666666666667
1438083.1666666666667-3.16666666666667
1448883.16666666666674.83333333333333

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 74 & 83.1666666666667 & -9.16666666666667 \tabularnewline
2 & 80 & 83.1666666666667 & -3.16666666666667 \tabularnewline
3 & 0 & 40.2 & -40.2 \tabularnewline
4 & 84 & 108.585365853659 & -24.5853658536585 \tabularnewline
5 & 124 & 108.585365853659 & 15.4146341463415 \tabularnewline
6 & 140 & 108.585365853659 & 31.4146341463415 \tabularnewline
7 & 88 & 105.714285714286 & -17.7142857142857 \tabularnewline
8 & 115 & 105.714285714286 & 9.28571428571429 \tabularnewline
9 & 109 & 83.1666666666667 & 25.8333333333333 \tabularnewline
10 & 104 & 108.585365853659 & -4.58536585365853 \tabularnewline
11 & 63 & 83.1666666666667 & -20.1666666666667 \tabularnewline
12 & 118 & 108.585365853659 & 9.41463414634147 \tabularnewline
13 & 71 & 83.1666666666667 & -12.1666666666667 \tabularnewline
14 & 112 & 108.585365853659 & 3.41463414634147 \tabularnewline
15 & 63 & 83.1666666666667 & -20.1666666666667 \tabularnewline
16 & 86 & 83.1666666666667 & 2.83333333333333 \tabularnewline
17 & 132 & 105.714285714286 & 26.2857142857143 \tabularnewline
18 & 54 & 83.1666666666667 & -29.1666666666667 \tabularnewline
19 & 134 & 108.585365853659 & 25.4146341463415 \tabularnewline
20 & 57 & 40.2 & 16.8 \tabularnewline
21 & 59 & 83.1666666666667 & -24.1666666666667 \tabularnewline
22 & 113 & 108.585365853659 & 4.41463414634147 \tabularnewline
23 & 96 & 83.1666666666667 & 12.8333333333333 \tabularnewline
24 & 96 & 108.585365853659 & -12.5853658536585 \tabularnewline
25 & 78 & 83.1666666666667 & -5.16666666666667 \tabularnewline
26 & 80 & 83.1666666666667 & -3.16666666666667 \tabularnewline
27 & 93 & 108.585365853659 & -15.5853658536585 \tabularnewline
28 & 109 & 105.714285714286 & 3.28571428571429 \tabularnewline
29 & 115 & 108.585365853659 & 6.41463414634147 \tabularnewline
30 & 79 & 108.585365853659 & -29.5853658536585 \tabularnewline
31 & 103 & 105.714285714286 & -2.71428571428571 \tabularnewline
32 & 71 & 83.1666666666667 & -12.1666666666667 \tabularnewline
33 & 66 & 108.585365853659 & -42.5853658536585 \tabularnewline
34 & 100 & 108.585365853659 & -8.58536585365853 \tabularnewline
35 & 96 & 108.585365853659 & -12.5853658536585 \tabularnewline
36 & 0 & 2.61538461538462 & -2.61538461538462 \tabularnewline
37 & 109 & 108.585365853659 & 0.41463414634147 \tabularnewline
38 & 51 & 83.1666666666667 & -32.1666666666667 \tabularnewline
39 & 119 & 108.585365853659 & 10.4146341463415 \tabularnewline
40 & 136 & 108.585365853659 & 27.4146341463415 \tabularnewline
41 & 84 & 108.585365853659 & -24.5853658536585 \tabularnewline
42 & 136 & 83.1666666666667 & 52.8333333333333 \tabularnewline
43 & 84 & 83.1666666666667 & 0.833333333333329 \tabularnewline
44 & 92 & 108.585365853659 & -16.5853658536585 \tabularnewline
45 & 103 & 83.1666666666667 & 19.8333333333333 \tabularnewline
46 & 82 & 83.1666666666667 & -1.16666666666667 \tabularnewline
47 & 106 & 83.1666666666667 & 22.8333333333333 \tabularnewline
48 & 96 & 108.585365853659 & -12.5853658536585 \tabularnewline
49 & 124 & 108.585365853659 & 15.4146341463415 \tabularnewline
50 & 97 & 108.585365853659 & -11.5853658536585 \tabularnewline
51 & 82 & 40.2 & 41.8 \tabularnewline
52 & 79 & 105.714285714286 & -26.7142857142857 \tabularnewline
53 & 97 & 108.585365853659 & -11.5853658536585 \tabularnewline
54 & 107 & 108.585365853659 & -1.58536585365853 \tabularnewline
55 & 126 & 105.714285714286 & 20.2857142857143 \tabularnewline
56 & 40 & 83.1666666666667 & -43.1666666666667 \tabularnewline
57 & 96 & 83.1666666666667 & 12.8333333333333 \tabularnewline
58 & 100 & 83.1666666666667 & 16.8333333333333 \tabularnewline
59 & 91 & 105.714285714286 & -14.7142857142857 \tabularnewline
60 & 136 & 108.585365853659 & 27.4146341463415 \tabularnewline
61 & 124 & 83.1666666666667 & 40.8333333333333 \tabularnewline
62 & 79 & 108.585365853659 & -29.5853658536585 \tabularnewline
63 & 74 & 83.1666666666667 & -9.16666666666667 \tabularnewline
64 & 96 & 83.1666666666667 & 12.8333333333333 \tabularnewline
65 & 97 & 83.1666666666667 & 13.8333333333333 \tabularnewline
66 & 122 & 83.1666666666667 & 38.8333333333333 \tabularnewline
67 & 144 & 108.585365853659 & 35.4146341463415 \tabularnewline
68 & 90 & 108.585365853659 & -18.5853658536585 \tabularnewline
69 & 93 & 83.1666666666667 & 9.83333333333333 \tabularnewline
70 & 78 & 40.2 & 37.8 \tabularnewline
71 & 72 & 108.585365853659 & -36.5853658536585 \tabularnewline
72 & 45 & 83.1666666666667 & -38.1666666666667 \tabularnewline
73 & 120 & 105.714285714286 & 14.2857142857143 \tabularnewline
74 & 59 & 83.1666666666667 & -24.1666666666667 \tabularnewline
75 & 133 & 108.585365853659 & 24.4146341463415 \tabularnewline
76 & 117 & 83.1666666666667 & 33.8333333333333 \tabularnewline
77 & 123 & 108.585365853659 & 14.4146341463415 \tabularnewline
78 & 110 & 108.585365853659 & 1.41463414634147 \tabularnewline
79 & 75 & 83.1666666666667 & -8.16666666666667 \tabularnewline
80 & 114 & 83.1666666666667 & 30.8333333333333 \tabularnewline
81 & 94 & 83.1666666666667 & 10.8333333333333 \tabularnewline
82 & 116 & 108.585365853659 & 7.41463414634147 \tabularnewline
83 & 86 & 83.1666666666667 & 2.83333333333333 \tabularnewline
84 & 90 & 83.1666666666667 & 6.83333333333333 \tabularnewline
85 & 87 & 83.1666666666667 & 3.83333333333333 \tabularnewline
86 & 99 & 83.1666666666667 & 15.8333333333333 \tabularnewline
87 & 132 & 108.585365853659 & 23.4146341463415 \tabularnewline
88 & 96 & 83.1666666666667 & 12.8333333333333 \tabularnewline
89 & 91 & 83.1666666666667 & 7.83333333333333 \tabularnewline
90 & 77 & 83.1666666666667 & -6.16666666666667 \tabularnewline
91 & 104 & 83.1666666666667 & 20.8333333333333 \tabularnewline
92 & 97 & 108.585365853659 & -11.5853658536585 \tabularnewline
93 & 94 & 83.1666666666667 & 10.8333333333333 \tabularnewline
94 & 60 & 83.1666666666667 & -23.1666666666667 \tabularnewline
95 & 46 & 40.2 & 5.8 \tabularnewline
96 & 135 & 108.585365853659 & 26.4146341463415 \tabularnewline
97 & 90 & 105.714285714286 & -15.7142857142857 \tabularnewline
98 & 2 & 2.61538461538462 & -0.615384615384615 \tabularnewline
99 & 96 & 108.585365853659 & -12.5853658536585 \tabularnewline
100 & 109 & 108.585365853659 & 0.41463414634147 \tabularnewline
101 & 15 & 40.2 & -25.2 \tabularnewline
102 & 68 & 83.1666666666667 & -15.1666666666667 \tabularnewline
103 & 88 & 105.714285714286 & -17.7142857142857 \tabularnewline
104 & 84 & 83.1666666666667 & 0.833333333333329 \tabularnewline
105 & 46 & 83.1666666666667 & -37.1666666666667 \tabularnewline
106 & 59 & 40.2 & 18.8 \tabularnewline
107 & 116 & 105.714285714286 & 10.2857142857143 \tabularnewline
108 & 29 & 83.1666666666667 & -54.1666666666667 \tabularnewline
109 & 0 & 2.61538461538462 & -2.61538461538462 \tabularnewline
110 & 91 & 83.1666666666667 & 7.83333333333333 \tabularnewline
111 & 76 & 83.1666666666667 & -7.16666666666667 \tabularnewline
112 & 83 & 83.1666666666667 & -0.166666666666671 \tabularnewline
113 & 84 & 83.1666666666667 & 0.833333333333329 \tabularnewline
114 & 65 & 83.1666666666667 & -18.1666666666667 \tabularnewline
115 & 0 & 2.61538461538462 & -2.61538461538462 \tabularnewline
116 & 0 & 2.61538461538462 & -2.61538461538462 \tabularnewline
117 & 84 & 83.1666666666667 & 0.833333333333329 \tabularnewline
118 & 114 & 105.714285714286 & 8.28571428571429 \tabularnewline
119 & 124 & 108.585365853659 & 15.4146341463415 \tabularnewline
120 & 92 & 83.1666666666667 & 8.83333333333333 \tabularnewline
121 & 3 & 40.2 & -37.2 \tabularnewline
122 & 109 & 105.714285714286 & 3.28571428571429 \tabularnewline
123 & 74 & 83.1666666666667 & -9.16666666666667 \tabularnewline
124 & 121 & 108.585365853659 & 12.4146341463415 \tabularnewline
125 & 48 & 40.2 & 7.8 \tabularnewline
126 & 8 & 2.61538461538462 & 5.38461538461539 \tabularnewline
127 & 80 & 83.1666666666667 & -3.16666666666667 \tabularnewline
128 & 107 & 83.1666666666667 & 23.8333333333333 \tabularnewline
129 & 116 & 83.1666666666667 & 32.8333333333333 \tabularnewline
130 & 8 & 2.61538461538462 & 5.38461538461539 \tabularnewline
131 & 0 & 2.61538461538462 & -2.61538461538462 \tabularnewline
132 & 56 & 83.1666666666667 & -27.1666666666667 \tabularnewline
133 & 4 & 2.61538461538462 & 1.38461538461538 \tabularnewline
134 & 70 & 83.1666666666667 & -13.1666666666667 \tabularnewline
135 & 0 & 2.61538461538462 & -2.61538461538462 \tabularnewline
136 & 14 & 40.2 & -26.2 \tabularnewline
137 & 0 & 2.61538461538462 & -2.61538461538462 \tabularnewline
138 & 91 & 83.1666666666667 & 7.83333333333333 \tabularnewline
139 & 89 & 83.1666666666667 & 5.83333333333333 \tabularnewline
140 & 0 & 2.61538461538462 & -2.61538461538462 \tabularnewline
141 & 12 & 2.61538461538462 & 9.38461538461539 \tabularnewline
142 & 60 & 83.1666666666667 & -23.1666666666667 \tabularnewline
143 & 80 & 83.1666666666667 & -3.16666666666667 \tabularnewline
144 & 88 & 83.1666666666667 & 4.83333333333333 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=158758&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]74[/C][C]83.1666666666667[/C][C]-9.16666666666667[/C][/ROW]
[ROW][C]2[/C][C]80[/C][C]83.1666666666667[/C][C]-3.16666666666667[/C][/ROW]
[ROW][C]3[/C][C]0[/C][C]40.2[/C][C]-40.2[/C][/ROW]
[ROW][C]4[/C][C]84[/C][C]108.585365853659[/C][C]-24.5853658536585[/C][/ROW]
[ROW][C]5[/C][C]124[/C][C]108.585365853659[/C][C]15.4146341463415[/C][/ROW]
[ROW][C]6[/C][C]140[/C][C]108.585365853659[/C][C]31.4146341463415[/C][/ROW]
[ROW][C]7[/C][C]88[/C][C]105.714285714286[/C][C]-17.7142857142857[/C][/ROW]
[ROW][C]8[/C][C]115[/C][C]105.714285714286[/C][C]9.28571428571429[/C][/ROW]
[ROW][C]9[/C][C]109[/C][C]83.1666666666667[/C][C]25.8333333333333[/C][/ROW]
[ROW][C]10[/C][C]104[/C][C]108.585365853659[/C][C]-4.58536585365853[/C][/ROW]
[ROW][C]11[/C][C]63[/C][C]83.1666666666667[/C][C]-20.1666666666667[/C][/ROW]
[ROW][C]12[/C][C]118[/C][C]108.585365853659[/C][C]9.41463414634147[/C][/ROW]
[ROW][C]13[/C][C]71[/C][C]83.1666666666667[/C][C]-12.1666666666667[/C][/ROW]
[ROW][C]14[/C][C]112[/C][C]108.585365853659[/C][C]3.41463414634147[/C][/ROW]
[ROW][C]15[/C][C]63[/C][C]83.1666666666667[/C][C]-20.1666666666667[/C][/ROW]
[ROW][C]16[/C][C]86[/C][C]83.1666666666667[/C][C]2.83333333333333[/C][/ROW]
[ROW][C]17[/C][C]132[/C][C]105.714285714286[/C][C]26.2857142857143[/C][/ROW]
[ROW][C]18[/C][C]54[/C][C]83.1666666666667[/C][C]-29.1666666666667[/C][/ROW]
[ROW][C]19[/C][C]134[/C][C]108.585365853659[/C][C]25.4146341463415[/C][/ROW]
[ROW][C]20[/C][C]57[/C][C]40.2[/C][C]16.8[/C][/ROW]
[ROW][C]21[/C][C]59[/C][C]83.1666666666667[/C][C]-24.1666666666667[/C][/ROW]
[ROW][C]22[/C][C]113[/C][C]108.585365853659[/C][C]4.41463414634147[/C][/ROW]
[ROW][C]23[/C][C]96[/C][C]83.1666666666667[/C][C]12.8333333333333[/C][/ROW]
[ROW][C]24[/C][C]96[/C][C]108.585365853659[/C][C]-12.5853658536585[/C][/ROW]
[ROW][C]25[/C][C]78[/C][C]83.1666666666667[/C][C]-5.16666666666667[/C][/ROW]
[ROW][C]26[/C][C]80[/C][C]83.1666666666667[/C][C]-3.16666666666667[/C][/ROW]
[ROW][C]27[/C][C]93[/C][C]108.585365853659[/C][C]-15.5853658536585[/C][/ROW]
[ROW][C]28[/C][C]109[/C][C]105.714285714286[/C][C]3.28571428571429[/C][/ROW]
[ROW][C]29[/C][C]115[/C][C]108.585365853659[/C][C]6.41463414634147[/C][/ROW]
[ROW][C]30[/C][C]79[/C][C]108.585365853659[/C][C]-29.5853658536585[/C][/ROW]
[ROW][C]31[/C][C]103[/C][C]105.714285714286[/C][C]-2.71428571428571[/C][/ROW]
[ROW][C]32[/C][C]71[/C][C]83.1666666666667[/C][C]-12.1666666666667[/C][/ROW]
[ROW][C]33[/C][C]66[/C][C]108.585365853659[/C][C]-42.5853658536585[/C][/ROW]
[ROW][C]34[/C][C]100[/C][C]108.585365853659[/C][C]-8.58536585365853[/C][/ROW]
[ROW][C]35[/C][C]96[/C][C]108.585365853659[/C][C]-12.5853658536585[/C][/ROW]
[ROW][C]36[/C][C]0[/C][C]2.61538461538462[/C][C]-2.61538461538462[/C][/ROW]
[ROW][C]37[/C][C]109[/C][C]108.585365853659[/C][C]0.41463414634147[/C][/ROW]
[ROW][C]38[/C][C]51[/C][C]83.1666666666667[/C][C]-32.1666666666667[/C][/ROW]
[ROW][C]39[/C][C]119[/C][C]108.585365853659[/C][C]10.4146341463415[/C][/ROW]
[ROW][C]40[/C][C]136[/C][C]108.585365853659[/C][C]27.4146341463415[/C][/ROW]
[ROW][C]41[/C][C]84[/C][C]108.585365853659[/C][C]-24.5853658536585[/C][/ROW]
[ROW][C]42[/C][C]136[/C][C]83.1666666666667[/C][C]52.8333333333333[/C][/ROW]
[ROW][C]43[/C][C]84[/C][C]83.1666666666667[/C][C]0.833333333333329[/C][/ROW]
[ROW][C]44[/C][C]92[/C][C]108.585365853659[/C][C]-16.5853658536585[/C][/ROW]
[ROW][C]45[/C][C]103[/C][C]83.1666666666667[/C][C]19.8333333333333[/C][/ROW]
[ROW][C]46[/C][C]82[/C][C]83.1666666666667[/C][C]-1.16666666666667[/C][/ROW]
[ROW][C]47[/C][C]106[/C][C]83.1666666666667[/C][C]22.8333333333333[/C][/ROW]
[ROW][C]48[/C][C]96[/C][C]108.585365853659[/C][C]-12.5853658536585[/C][/ROW]
[ROW][C]49[/C][C]124[/C][C]108.585365853659[/C][C]15.4146341463415[/C][/ROW]
[ROW][C]50[/C][C]97[/C][C]108.585365853659[/C][C]-11.5853658536585[/C][/ROW]
[ROW][C]51[/C][C]82[/C][C]40.2[/C][C]41.8[/C][/ROW]
[ROW][C]52[/C][C]79[/C][C]105.714285714286[/C][C]-26.7142857142857[/C][/ROW]
[ROW][C]53[/C][C]97[/C][C]108.585365853659[/C][C]-11.5853658536585[/C][/ROW]
[ROW][C]54[/C][C]107[/C][C]108.585365853659[/C][C]-1.58536585365853[/C][/ROW]
[ROW][C]55[/C][C]126[/C][C]105.714285714286[/C][C]20.2857142857143[/C][/ROW]
[ROW][C]56[/C][C]40[/C][C]83.1666666666667[/C][C]-43.1666666666667[/C][/ROW]
[ROW][C]57[/C][C]96[/C][C]83.1666666666667[/C][C]12.8333333333333[/C][/ROW]
[ROW][C]58[/C][C]100[/C][C]83.1666666666667[/C][C]16.8333333333333[/C][/ROW]
[ROW][C]59[/C][C]91[/C][C]105.714285714286[/C][C]-14.7142857142857[/C][/ROW]
[ROW][C]60[/C][C]136[/C][C]108.585365853659[/C][C]27.4146341463415[/C][/ROW]
[ROW][C]61[/C][C]124[/C][C]83.1666666666667[/C][C]40.8333333333333[/C][/ROW]
[ROW][C]62[/C][C]79[/C][C]108.585365853659[/C][C]-29.5853658536585[/C][/ROW]
[ROW][C]63[/C][C]74[/C][C]83.1666666666667[/C][C]-9.16666666666667[/C][/ROW]
[ROW][C]64[/C][C]96[/C][C]83.1666666666667[/C][C]12.8333333333333[/C][/ROW]
[ROW][C]65[/C][C]97[/C][C]83.1666666666667[/C][C]13.8333333333333[/C][/ROW]
[ROW][C]66[/C][C]122[/C][C]83.1666666666667[/C][C]38.8333333333333[/C][/ROW]
[ROW][C]67[/C][C]144[/C][C]108.585365853659[/C][C]35.4146341463415[/C][/ROW]
[ROW][C]68[/C][C]90[/C][C]108.585365853659[/C][C]-18.5853658536585[/C][/ROW]
[ROW][C]69[/C][C]93[/C][C]83.1666666666667[/C][C]9.83333333333333[/C][/ROW]
[ROW][C]70[/C][C]78[/C][C]40.2[/C][C]37.8[/C][/ROW]
[ROW][C]71[/C][C]72[/C][C]108.585365853659[/C][C]-36.5853658536585[/C][/ROW]
[ROW][C]72[/C][C]45[/C][C]83.1666666666667[/C][C]-38.1666666666667[/C][/ROW]
[ROW][C]73[/C][C]120[/C][C]105.714285714286[/C][C]14.2857142857143[/C][/ROW]
[ROW][C]74[/C][C]59[/C][C]83.1666666666667[/C][C]-24.1666666666667[/C][/ROW]
[ROW][C]75[/C][C]133[/C][C]108.585365853659[/C][C]24.4146341463415[/C][/ROW]
[ROW][C]76[/C][C]117[/C][C]83.1666666666667[/C][C]33.8333333333333[/C][/ROW]
[ROW][C]77[/C][C]123[/C][C]108.585365853659[/C][C]14.4146341463415[/C][/ROW]
[ROW][C]78[/C][C]110[/C][C]108.585365853659[/C][C]1.41463414634147[/C][/ROW]
[ROW][C]79[/C][C]75[/C][C]83.1666666666667[/C][C]-8.16666666666667[/C][/ROW]
[ROW][C]80[/C][C]114[/C][C]83.1666666666667[/C][C]30.8333333333333[/C][/ROW]
[ROW][C]81[/C][C]94[/C][C]83.1666666666667[/C][C]10.8333333333333[/C][/ROW]
[ROW][C]82[/C][C]116[/C][C]108.585365853659[/C][C]7.41463414634147[/C][/ROW]
[ROW][C]83[/C][C]86[/C][C]83.1666666666667[/C][C]2.83333333333333[/C][/ROW]
[ROW][C]84[/C][C]90[/C][C]83.1666666666667[/C][C]6.83333333333333[/C][/ROW]
[ROW][C]85[/C][C]87[/C][C]83.1666666666667[/C][C]3.83333333333333[/C][/ROW]
[ROW][C]86[/C][C]99[/C][C]83.1666666666667[/C][C]15.8333333333333[/C][/ROW]
[ROW][C]87[/C][C]132[/C][C]108.585365853659[/C][C]23.4146341463415[/C][/ROW]
[ROW][C]88[/C][C]96[/C][C]83.1666666666667[/C][C]12.8333333333333[/C][/ROW]
[ROW][C]89[/C][C]91[/C][C]83.1666666666667[/C][C]7.83333333333333[/C][/ROW]
[ROW][C]90[/C][C]77[/C][C]83.1666666666667[/C][C]-6.16666666666667[/C][/ROW]
[ROW][C]91[/C][C]104[/C][C]83.1666666666667[/C][C]20.8333333333333[/C][/ROW]
[ROW][C]92[/C][C]97[/C][C]108.585365853659[/C][C]-11.5853658536585[/C][/ROW]
[ROW][C]93[/C][C]94[/C][C]83.1666666666667[/C][C]10.8333333333333[/C][/ROW]
[ROW][C]94[/C][C]60[/C][C]83.1666666666667[/C][C]-23.1666666666667[/C][/ROW]
[ROW][C]95[/C][C]46[/C][C]40.2[/C][C]5.8[/C][/ROW]
[ROW][C]96[/C][C]135[/C][C]108.585365853659[/C][C]26.4146341463415[/C][/ROW]
[ROW][C]97[/C][C]90[/C][C]105.714285714286[/C][C]-15.7142857142857[/C][/ROW]
[ROW][C]98[/C][C]2[/C][C]2.61538461538462[/C][C]-0.615384615384615[/C][/ROW]
[ROW][C]99[/C][C]96[/C][C]108.585365853659[/C][C]-12.5853658536585[/C][/ROW]
[ROW][C]100[/C][C]109[/C][C]108.585365853659[/C][C]0.41463414634147[/C][/ROW]
[ROW][C]101[/C][C]15[/C][C]40.2[/C][C]-25.2[/C][/ROW]
[ROW][C]102[/C][C]68[/C][C]83.1666666666667[/C][C]-15.1666666666667[/C][/ROW]
[ROW][C]103[/C][C]88[/C][C]105.714285714286[/C][C]-17.7142857142857[/C][/ROW]
[ROW][C]104[/C][C]84[/C][C]83.1666666666667[/C][C]0.833333333333329[/C][/ROW]
[ROW][C]105[/C][C]46[/C][C]83.1666666666667[/C][C]-37.1666666666667[/C][/ROW]
[ROW][C]106[/C][C]59[/C][C]40.2[/C][C]18.8[/C][/ROW]
[ROW][C]107[/C][C]116[/C][C]105.714285714286[/C][C]10.2857142857143[/C][/ROW]
[ROW][C]108[/C][C]29[/C][C]83.1666666666667[/C][C]-54.1666666666667[/C][/ROW]
[ROW][C]109[/C][C]0[/C][C]2.61538461538462[/C][C]-2.61538461538462[/C][/ROW]
[ROW][C]110[/C][C]91[/C][C]83.1666666666667[/C][C]7.83333333333333[/C][/ROW]
[ROW][C]111[/C][C]76[/C][C]83.1666666666667[/C][C]-7.16666666666667[/C][/ROW]
[ROW][C]112[/C][C]83[/C][C]83.1666666666667[/C][C]-0.166666666666671[/C][/ROW]
[ROW][C]113[/C][C]84[/C][C]83.1666666666667[/C][C]0.833333333333329[/C][/ROW]
[ROW][C]114[/C][C]65[/C][C]83.1666666666667[/C][C]-18.1666666666667[/C][/ROW]
[ROW][C]115[/C][C]0[/C][C]2.61538461538462[/C][C]-2.61538461538462[/C][/ROW]
[ROW][C]116[/C][C]0[/C][C]2.61538461538462[/C][C]-2.61538461538462[/C][/ROW]
[ROW][C]117[/C][C]84[/C][C]83.1666666666667[/C][C]0.833333333333329[/C][/ROW]
[ROW][C]118[/C][C]114[/C][C]105.714285714286[/C][C]8.28571428571429[/C][/ROW]
[ROW][C]119[/C][C]124[/C][C]108.585365853659[/C][C]15.4146341463415[/C][/ROW]
[ROW][C]120[/C][C]92[/C][C]83.1666666666667[/C][C]8.83333333333333[/C][/ROW]
[ROW][C]121[/C][C]3[/C][C]40.2[/C][C]-37.2[/C][/ROW]
[ROW][C]122[/C][C]109[/C][C]105.714285714286[/C][C]3.28571428571429[/C][/ROW]
[ROW][C]123[/C][C]74[/C][C]83.1666666666667[/C][C]-9.16666666666667[/C][/ROW]
[ROW][C]124[/C][C]121[/C][C]108.585365853659[/C][C]12.4146341463415[/C][/ROW]
[ROW][C]125[/C][C]48[/C][C]40.2[/C][C]7.8[/C][/ROW]
[ROW][C]126[/C][C]8[/C][C]2.61538461538462[/C][C]5.38461538461539[/C][/ROW]
[ROW][C]127[/C][C]80[/C][C]83.1666666666667[/C][C]-3.16666666666667[/C][/ROW]
[ROW][C]128[/C][C]107[/C][C]83.1666666666667[/C][C]23.8333333333333[/C][/ROW]
[ROW][C]129[/C][C]116[/C][C]83.1666666666667[/C][C]32.8333333333333[/C][/ROW]
[ROW][C]130[/C][C]8[/C][C]2.61538461538462[/C][C]5.38461538461539[/C][/ROW]
[ROW][C]131[/C][C]0[/C][C]2.61538461538462[/C][C]-2.61538461538462[/C][/ROW]
[ROW][C]132[/C][C]56[/C][C]83.1666666666667[/C][C]-27.1666666666667[/C][/ROW]
[ROW][C]133[/C][C]4[/C][C]2.61538461538462[/C][C]1.38461538461538[/C][/ROW]
[ROW][C]134[/C][C]70[/C][C]83.1666666666667[/C][C]-13.1666666666667[/C][/ROW]
[ROW][C]135[/C][C]0[/C][C]2.61538461538462[/C][C]-2.61538461538462[/C][/ROW]
[ROW][C]136[/C][C]14[/C][C]40.2[/C][C]-26.2[/C][/ROW]
[ROW][C]137[/C][C]0[/C][C]2.61538461538462[/C][C]-2.61538461538462[/C][/ROW]
[ROW][C]138[/C][C]91[/C][C]83.1666666666667[/C][C]7.83333333333333[/C][/ROW]
[ROW][C]139[/C][C]89[/C][C]83.1666666666667[/C][C]5.83333333333333[/C][/ROW]
[ROW][C]140[/C][C]0[/C][C]2.61538461538462[/C][C]-2.61538461538462[/C][/ROW]
[ROW][C]141[/C][C]12[/C][C]2.61538461538462[/C][C]9.38461538461539[/C][/ROW]
[ROW][C]142[/C][C]60[/C][C]83.1666666666667[/C][C]-23.1666666666667[/C][/ROW]
[ROW][C]143[/C][C]80[/C][C]83.1666666666667[/C][C]-3.16666666666667[/C][/ROW]
[ROW][C]144[/C][C]88[/C][C]83.1666666666667[/C][C]4.83333333333333[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=158758&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=158758&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
17483.1666666666667-9.16666666666667
28083.1666666666667-3.16666666666667
3040.2-40.2
484108.585365853659-24.5853658536585
5124108.58536585365915.4146341463415
6140108.58536585365931.4146341463415
788105.714285714286-17.7142857142857
8115105.7142857142869.28571428571429
910983.166666666666725.8333333333333
10104108.585365853659-4.58536585365853
116383.1666666666667-20.1666666666667
12118108.5853658536599.41463414634147
137183.1666666666667-12.1666666666667
14112108.5853658536593.41463414634147
156383.1666666666667-20.1666666666667
168683.16666666666672.83333333333333
17132105.71428571428626.2857142857143
185483.1666666666667-29.1666666666667
19134108.58536585365925.4146341463415
205740.216.8
215983.1666666666667-24.1666666666667
22113108.5853658536594.41463414634147
239683.166666666666712.8333333333333
2496108.585365853659-12.5853658536585
257883.1666666666667-5.16666666666667
268083.1666666666667-3.16666666666667
2793108.585365853659-15.5853658536585
28109105.7142857142863.28571428571429
29115108.5853658536596.41463414634147
3079108.585365853659-29.5853658536585
31103105.714285714286-2.71428571428571
327183.1666666666667-12.1666666666667
3366108.585365853659-42.5853658536585
34100108.585365853659-8.58536585365853
3596108.585365853659-12.5853658536585
3602.61538461538462-2.61538461538462
37109108.5853658536590.41463414634147
385183.1666666666667-32.1666666666667
39119108.58536585365910.4146341463415
40136108.58536585365927.4146341463415
4184108.585365853659-24.5853658536585
4213683.166666666666752.8333333333333
438483.16666666666670.833333333333329
4492108.585365853659-16.5853658536585
4510383.166666666666719.8333333333333
468283.1666666666667-1.16666666666667
4710683.166666666666722.8333333333333
4896108.585365853659-12.5853658536585
49124108.58536585365915.4146341463415
5097108.585365853659-11.5853658536585
518240.241.8
5279105.714285714286-26.7142857142857
5397108.585365853659-11.5853658536585
54107108.585365853659-1.58536585365853
55126105.71428571428620.2857142857143
564083.1666666666667-43.1666666666667
579683.166666666666712.8333333333333
5810083.166666666666716.8333333333333
5991105.714285714286-14.7142857142857
60136108.58536585365927.4146341463415
6112483.166666666666740.8333333333333
6279108.585365853659-29.5853658536585
637483.1666666666667-9.16666666666667
649683.166666666666712.8333333333333
659783.166666666666713.8333333333333
6612283.166666666666738.8333333333333
67144108.58536585365935.4146341463415
6890108.585365853659-18.5853658536585
699383.16666666666679.83333333333333
707840.237.8
7172108.585365853659-36.5853658536585
724583.1666666666667-38.1666666666667
73120105.71428571428614.2857142857143
745983.1666666666667-24.1666666666667
75133108.58536585365924.4146341463415
7611783.166666666666733.8333333333333
77123108.58536585365914.4146341463415
78110108.5853658536591.41463414634147
797583.1666666666667-8.16666666666667
8011483.166666666666730.8333333333333
819483.166666666666710.8333333333333
82116108.5853658536597.41463414634147
838683.16666666666672.83333333333333
849083.16666666666676.83333333333333
858783.16666666666673.83333333333333
869983.166666666666715.8333333333333
87132108.58536585365923.4146341463415
889683.166666666666712.8333333333333
899183.16666666666677.83333333333333
907783.1666666666667-6.16666666666667
9110483.166666666666720.8333333333333
9297108.585365853659-11.5853658536585
939483.166666666666710.8333333333333
946083.1666666666667-23.1666666666667
954640.25.8
96135108.58536585365926.4146341463415
9790105.714285714286-15.7142857142857
9822.61538461538462-0.615384615384615
9996108.585365853659-12.5853658536585
100109108.5853658536590.41463414634147
1011540.2-25.2
1026883.1666666666667-15.1666666666667
10388105.714285714286-17.7142857142857
1048483.16666666666670.833333333333329
1054683.1666666666667-37.1666666666667
1065940.218.8
107116105.71428571428610.2857142857143
1082983.1666666666667-54.1666666666667
10902.61538461538462-2.61538461538462
1109183.16666666666677.83333333333333
1117683.1666666666667-7.16666666666667
1128383.1666666666667-0.166666666666671
1138483.16666666666670.833333333333329
1146583.1666666666667-18.1666666666667
11502.61538461538462-2.61538461538462
11602.61538461538462-2.61538461538462
1178483.16666666666670.833333333333329
118114105.7142857142868.28571428571429
119124108.58536585365915.4146341463415
1209283.16666666666678.83333333333333
121340.2-37.2
122109105.7142857142863.28571428571429
1237483.1666666666667-9.16666666666667
124121108.58536585365912.4146341463415
1254840.27.8
12682.615384615384625.38461538461539
1278083.1666666666667-3.16666666666667
12810783.166666666666723.8333333333333
12911683.166666666666732.8333333333333
13082.615384615384625.38461538461539
13102.61538461538462-2.61538461538462
1325683.1666666666667-27.1666666666667
13342.615384615384621.38461538461538
1347083.1666666666667-13.1666666666667
13502.61538461538462-2.61538461538462
1361440.2-26.2
13702.61538461538462-2.61538461538462
1389183.16666666666677.83333333333333
1398983.16666666666675.83333333333333
14002.61538461538462-2.61538461538462
141122.615384615384629.38461538461539
1426083.1666666666667-23.1666666666667
1438083.1666666666667-3.16666666666667
1448883.16666666666674.83333333333333



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