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 computationThu, 22 Dec 2011 10:18:49 -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/22/t1324567161niv6svzcphhovrg.htm/, Retrieved Fri, 03 May 2024 14:50:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=159588, Retrieved Fri, 03 May 2024 14:50:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact48
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Recursive Partitioning (Regression Trees)] [] [2011-12-22 15:18:49] [6ad33b3268238fa8bcced586c4c02be4] [Current]
Feedback Forum

Post a new message
Dataseries X:
20465	162687	95	39
33629	201906	63	46
1423	7215	18	0
25629	146367	97	54
54002	257045	139	93
151036	524450	266	198
33287	188294	59	42
31172	195674	60	59
28113	177020	45	49
57803	330194	99	83
49830	121844	75	49
52143	203938	72	83
21055	113213	106	39
47007	220751	120	93
28735	173259	65	31
59147	156326	88	29
78950	145178	58	104
13497	89171	61	2
46154	172624	88	46
53249	39790	27	27
10726	87927	62	16
83700	241285	103	108
40400	198587	74	36
33797	146946	57	33
36205	159763	89	46
30165	207078	34	65
58534	212394	166	80
44663	201536	95	81
92556	394662	121	69
40078	217892	46	69
34711	182286	45	37
31076	188748	48	45
74608	137978	107	62
58092	255929	131	33
42009	236489	55	77
0	0	1	0
36022	230761	65	34
23333	132807	54	44
53349	158599	51	43
92596	253254	68	117
49598	269329	72	125
44093	161273	61	49
84205	107181	33	76
63369	213097	81	81
60132	139667	51	111
37403	171101	99	61
24460	81407	33	56
46456	247596	106	54
66616	239807	90	47
41554	172743	60	55
22346	48188	28	14
30874	169355	71	44
68701	325322	77	115
35728	241518	80	57
29010	195583	60	48
23110	159913	57	40
38844	223936	71	51
27084	101694	26	32
35139	157258	68	36
57476	202536	100	47
33277	173505	65	51
31141	150518	84	37
61281	141491	64	52
25820	125612	39	42
23284	166049	36	11
35378	124197	43	47
74990	195043	71	59
29653	138708	66	82
64622	116552	40	49
4157	31970	15	6
29245	258158	115	83
50008	151194	79	56
52338	135926	68	114
13310	119629	73	46
92901	171518	71	46
10956	108949	45	2
34241	183471	60	51
75043	159966	98	96
21152	93786	34	20
42249	84971	72	57
42005	88882	76	49
41152	304603	65	51
14399	75101	30	40
28263	145043	41	40
17215	95827	48	36
48140	173924	59	64
62897	241957	238	117
22883	115367	115	40
41622	118689	65	46
40715	164078	53	61
65897	158931	42	59
76542	184139	83	94
37477	152856	58	36
53216	146159	61	51
40911	62535	43	39
57021	245196	117	62
73116	199841	71	79
3895	19349	12	14
46609	247280	109	45
29351	160833	85	43
2325	72128	30	8
31747	104253	26	41
32665	151090	57	25
19249	146461	67	22
15292	87448	42	18
5842	27676	22	3
33994	170326	52	54
13018	132148	38	6
0	0	0	0
98177	95778	34	50
37941	109001	68	33
31032	158833	46	54
32683	150013	66	63
34545	89887	63	56
0	3616	5	0
0	0	0	0
27525	199005	45	49
66856	160930	93	90
28549	177948	102	51
38610	136061	40	29
2781	43410	19	1
41211	184277	75	68
22698	109873	45	29
41194	151030	59	27
32689	60493	40	4
5752	19764	12	10
26757	177559	56	47
22527	140281	35	44
44810	164249	54	53
0	11796	9	0
0	10674	9	0
100674	151322	59	40
0	6836	3	0
57786	174712	68	57
0	5118	3	0
5444	40248	16	6
0	0	0	0
28470	127628	51	24
61849	88837	38	34
0	7131	4	0
2179	9056	15	10
8019	88589	29	16
39644	144470	53	93
23494	111408	20	28




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'AstonUniversity' @ aston.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 & 'AstonUniversity' @ aston.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159588&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]'AstonUniversity' @ aston.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159588&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159588&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'AstonUniversity' @ aston.wessa.net







Goodness of Fit
Correlation0.7599
R-squared0.5774
RMSE16264.5822

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.7599[/C][/ROW]
[ROW][C]R-squared[/C][C]0.5774[/C][/ROW]
[ROW][C]RMSE[/C][C]16264.5822[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159588&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159588&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.7599
R-squared0.5774
RMSE16264.5822







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
12046539093.3815789474-18628.3815789474
23362939093.3815789474-5464.38157894737
314231748.5-325.5
42562939093.3815789474-13464.3815789474
55400252181.0370370371820.96296296296
615103677412.090909090973623.9090909091
73328739093.3815789474-5806.38157894737
83117252181.037037037-21009.037037037
92811339093.3815789474-10980.3815789474
105780352181.0370370375621.96296296296
114983039093.381578947410736.6184210526
125214352181.037037037-38.0370370370365
132105539093.3815789474-18038.3815789474
144700752181.037037037-5174.03703703704
152873539093.3815789474-10358.3815789474
165914739093.381578947420053.6184210526
177895077412.09090909091537.90909090909
181349716046.0833333333-2549.08333333333
194615439093.38157894747060.61842105263
205324939093.381578947414155.6184210526
211072616046.0833333333-5320.08333333333
228370077412.09090909096287.90909090909
234040039093.38157894741306.61842105263
243379739093.3815789474-5296.38157894737
253620539093.3815789474-2888.38157894737
263016552181.037037037-22016.037037037
275853452181.0370370376352.96296296296
284466352181.037037037-7518.03703703704
299255652181.03703703740374.962962963
304007852181.037037037-12103.037037037
313471139093.3815789474-4382.38157894737
323107639093.3815789474-8017.38157894737
337460852181.03703703722426.962962963
345809239093.381578947418998.6184210526
354200952181.037037037-10172.037037037
3601748.5-1748.5
373602239093.3815789474-3071.38157894737
382333339093.3815789474-15760.3815789474
395334939093.381578947414255.6184210526
409259677412.090909090915183.9090909091
414959877412.0909090909-27814.0909090909
424409339093.38157894744999.61842105263
438420552181.03703703732023.962962963
446336952181.03703703711187.962962963
456013277412.0909090909-17280.0909090909
463740352181.037037037-14778.037037037
472446039093.3815789474-14633.3815789474
484645639093.38157894747362.61842105263
496661639093.381578947427522.6184210526
504155439093.38157894742460.61842105263
512234616046.08333333336299.91666666667
523087439093.3815789474-8219.38157894737
536870177412.0909090909-8711.09090909091
543572839093.3815789474-3365.38157894737
552901039093.3815789474-10083.3815789474
562311039093.3815789474-15983.3815789474
573884439093.3815789474-249.381578947367
582708439093.3815789474-12009.3815789474
593513939093.3815789474-3954.38157894737
605747639093.381578947418382.6184210526
613327739093.3815789474-5816.38157894737
623114139093.3815789474-7952.38157894737
636128139093.381578947422187.6184210526
642582039093.3815789474-13273.3815789474
652328416046.08333333337237.91666666667
663537839093.3815789474-3715.38157894737
677499052181.03703703722808.962962963
682965352181.037037037-22528.037037037
696462239093.381578947425528.6184210526
7041571748.52408.5
712924552181.037037037-22936.037037037
725000839093.381578947410914.6184210526
735233877412.0909090909-25074.0909090909
741331039093.3815789474-25783.3815789474
759290139093.381578947453807.6184210526
761095616046.0833333333-5090.08333333333
773424139093.3815789474-4852.38157894737
787504377412.0909090909-2369.09090909091
792115216046.08333333335105.91666666667
804224939093.38157894743155.61842105263
814200539093.38157894742911.61842105263
824115239093.38157894742058.61842105263
831439939093.3815789474-24694.3815789474
842826339093.3815789474-10830.3815789474
851721539093.3815789474-21878.3815789474
864814052181.037037037-4041.03703703704
876289777412.0909090909-14515.0909090909
882288339093.3815789474-16210.3815789474
894162239093.38157894742528.61842105263
904071552181.037037037-11466.037037037
916589752181.03703703713715.962962963
927654277412.0909090909-870.090909090912
933747739093.3815789474-1616.38157894737
945321639093.381578947414122.6184210526
954091139093.38157894741817.61842105263
965702152181.0370370374839.96296296296
977311652181.03703703720934.962962963
9838951748.52146.5
994660939093.38157894747515.61842105263
1002935139093.3815789474-9742.38157894737
101232516046.0833333333-13721.0833333333
1023174739093.3815789474-7346.38157894737
1033266539093.3815789474-6428.38157894737
1041924916046.08333333333202.91666666667
1051529216046.0833333333-754.083333333334
10658421748.54093.5
1073399439093.3815789474-5099.38157894737
1081301816046.0833333333-3028.08333333333
10901748.5-1748.5
1109817739093.381578947459083.6184210526
1113794139093.3815789474-1152.38157894737
1123103239093.3815789474-8061.38157894737
1133268352181.037037037-19498.037037037
1143454539093.3815789474-4548.38157894737
11501748.5-1748.5
11601748.5-1748.5
1172752539093.3815789474-11568.3815789474
1186685652181.03703703714674.962962963
1192854939093.3815789474-10544.3815789474
1203861039093.3815789474-483.381578947367
12127811748.51032.5
1224121152181.037037037-10970.037037037
1232269839093.3815789474-16395.3815789474
1244119439093.38157894742100.61842105263
1253268916046.083333333316642.9166666667
12657521748.54003.5
1272675739093.3815789474-12336.3815789474
1282252739093.3815789474-16566.3815789474
1294481039093.38157894745716.61842105263
13001748.5-1748.5
13101748.5-1748.5
13210067439093.381578947461580.6184210526
13301748.5-1748.5
1345778639093.381578947418692.6184210526
13501748.5-1748.5
13654441748.53695.5
13701748.5-1748.5
1382847039093.3815789474-10623.3815789474
1396184939093.381578947422755.6184210526
14001748.5-1748.5
14121791748.5430.5
142801916046.0833333333-8027.08333333333
1433964452181.037037037-12537.037037037
1442349439093.3815789474-15599.3815789474

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 20465 & 39093.3815789474 & -18628.3815789474 \tabularnewline
2 & 33629 & 39093.3815789474 & -5464.38157894737 \tabularnewline
3 & 1423 & 1748.5 & -325.5 \tabularnewline
4 & 25629 & 39093.3815789474 & -13464.3815789474 \tabularnewline
5 & 54002 & 52181.037037037 & 1820.96296296296 \tabularnewline
6 & 151036 & 77412.0909090909 & 73623.9090909091 \tabularnewline
7 & 33287 & 39093.3815789474 & -5806.38157894737 \tabularnewline
8 & 31172 & 52181.037037037 & -21009.037037037 \tabularnewline
9 & 28113 & 39093.3815789474 & -10980.3815789474 \tabularnewline
10 & 57803 & 52181.037037037 & 5621.96296296296 \tabularnewline
11 & 49830 & 39093.3815789474 & 10736.6184210526 \tabularnewline
12 & 52143 & 52181.037037037 & -38.0370370370365 \tabularnewline
13 & 21055 & 39093.3815789474 & -18038.3815789474 \tabularnewline
14 & 47007 & 52181.037037037 & -5174.03703703704 \tabularnewline
15 & 28735 & 39093.3815789474 & -10358.3815789474 \tabularnewline
16 & 59147 & 39093.3815789474 & 20053.6184210526 \tabularnewline
17 & 78950 & 77412.0909090909 & 1537.90909090909 \tabularnewline
18 & 13497 & 16046.0833333333 & -2549.08333333333 \tabularnewline
19 & 46154 & 39093.3815789474 & 7060.61842105263 \tabularnewline
20 & 53249 & 39093.3815789474 & 14155.6184210526 \tabularnewline
21 & 10726 & 16046.0833333333 & -5320.08333333333 \tabularnewline
22 & 83700 & 77412.0909090909 & 6287.90909090909 \tabularnewline
23 & 40400 & 39093.3815789474 & 1306.61842105263 \tabularnewline
24 & 33797 & 39093.3815789474 & -5296.38157894737 \tabularnewline
25 & 36205 & 39093.3815789474 & -2888.38157894737 \tabularnewline
26 & 30165 & 52181.037037037 & -22016.037037037 \tabularnewline
27 & 58534 & 52181.037037037 & 6352.96296296296 \tabularnewline
28 & 44663 & 52181.037037037 & -7518.03703703704 \tabularnewline
29 & 92556 & 52181.037037037 & 40374.962962963 \tabularnewline
30 & 40078 & 52181.037037037 & -12103.037037037 \tabularnewline
31 & 34711 & 39093.3815789474 & -4382.38157894737 \tabularnewline
32 & 31076 & 39093.3815789474 & -8017.38157894737 \tabularnewline
33 & 74608 & 52181.037037037 & 22426.962962963 \tabularnewline
34 & 58092 & 39093.3815789474 & 18998.6184210526 \tabularnewline
35 & 42009 & 52181.037037037 & -10172.037037037 \tabularnewline
36 & 0 & 1748.5 & -1748.5 \tabularnewline
37 & 36022 & 39093.3815789474 & -3071.38157894737 \tabularnewline
38 & 23333 & 39093.3815789474 & -15760.3815789474 \tabularnewline
39 & 53349 & 39093.3815789474 & 14255.6184210526 \tabularnewline
40 & 92596 & 77412.0909090909 & 15183.9090909091 \tabularnewline
41 & 49598 & 77412.0909090909 & -27814.0909090909 \tabularnewline
42 & 44093 & 39093.3815789474 & 4999.61842105263 \tabularnewline
43 & 84205 & 52181.037037037 & 32023.962962963 \tabularnewline
44 & 63369 & 52181.037037037 & 11187.962962963 \tabularnewline
45 & 60132 & 77412.0909090909 & -17280.0909090909 \tabularnewline
46 & 37403 & 52181.037037037 & -14778.037037037 \tabularnewline
47 & 24460 & 39093.3815789474 & -14633.3815789474 \tabularnewline
48 & 46456 & 39093.3815789474 & 7362.61842105263 \tabularnewline
49 & 66616 & 39093.3815789474 & 27522.6184210526 \tabularnewline
50 & 41554 & 39093.3815789474 & 2460.61842105263 \tabularnewline
51 & 22346 & 16046.0833333333 & 6299.91666666667 \tabularnewline
52 & 30874 & 39093.3815789474 & -8219.38157894737 \tabularnewline
53 & 68701 & 77412.0909090909 & -8711.09090909091 \tabularnewline
54 & 35728 & 39093.3815789474 & -3365.38157894737 \tabularnewline
55 & 29010 & 39093.3815789474 & -10083.3815789474 \tabularnewline
56 & 23110 & 39093.3815789474 & -15983.3815789474 \tabularnewline
57 & 38844 & 39093.3815789474 & -249.381578947367 \tabularnewline
58 & 27084 & 39093.3815789474 & -12009.3815789474 \tabularnewline
59 & 35139 & 39093.3815789474 & -3954.38157894737 \tabularnewline
60 & 57476 & 39093.3815789474 & 18382.6184210526 \tabularnewline
61 & 33277 & 39093.3815789474 & -5816.38157894737 \tabularnewline
62 & 31141 & 39093.3815789474 & -7952.38157894737 \tabularnewline
63 & 61281 & 39093.3815789474 & 22187.6184210526 \tabularnewline
64 & 25820 & 39093.3815789474 & -13273.3815789474 \tabularnewline
65 & 23284 & 16046.0833333333 & 7237.91666666667 \tabularnewline
66 & 35378 & 39093.3815789474 & -3715.38157894737 \tabularnewline
67 & 74990 & 52181.037037037 & 22808.962962963 \tabularnewline
68 & 29653 & 52181.037037037 & -22528.037037037 \tabularnewline
69 & 64622 & 39093.3815789474 & 25528.6184210526 \tabularnewline
70 & 4157 & 1748.5 & 2408.5 \tabularnewline
71 & 29245 & 52181.037037037 & -22936.037037037 \tabularnewline
72 & 50008 & 39093.3815789474 & 10914.6184210526 \tabularnewline
73 & 52338 & 77412.0909090909 & -25074.0909090909 \tabularnewline
74 & 13310 & 39093.3815789474 & -25783.3815789474 \tabularnewline
75 & 92901 & 39093.3815789474 & 53807.6184210526 \tabularnewline
76 & 10956 & 16046.0833333333 & -5090.08333333333 \tabularnewline
77 & 34241 & 39093.3815789474 & -4852.38157894737 \tabularnewline
78 & 75043 & 77412.0909090909 & -2369.09090909091 \tabularnewline
79 & 21152 & 16046.0833333333 & 5105.91666666667 \tabularnewline
80 & 42249 & 39093.3815789474 & 3155.61842105263 \tabularnewline
81 & 42005 & 39093.3815789474 & 2911.61842105263 \tabularnewline
82 & 41152 & 39093.3815789474 & 2058.61842105263 \tabularnewline
83 & 14399 & 39093.3815789474 & -24694.3815789474 \tabularnewline
84 & 28263 & 39093.3815789474 & -10830.3815789474 \tabularnewline
85 & 17215 & 39093.3815789474 & -21878.3815789474 \tabularnewline
86 & 48140 & 52181.037037037 & -4041.03703703704 \tabularnewline
87 & 62897 & 77412.0909090909 & -14515.0909090909 \tabularnewline
88 & 22883 & 39093.3815789474 & -16210.3815789474 \tabularnewline
89 & 41622 & 39093.3815789474 & 2528.61842105263 \tabularnewline
90 & 40715 & 52181.037037037 & -11466.037037037 \tabularnewline
91 & 65897 & 52181.037037037 & 13715.962962963 \tabularnewline
92 & 76542 & 77412.0909090909 & -870.090909090912 \tabularnewline
93 & 37477 & 39093.3815789474 & -1616.38157894737 \tabularnewline
94 & 53216 & 39093.3815789474 & 14122.6184210526 \tabularnewline
95 & 40911 & 39093.3815789474 & 1817.61842105263 \tabularnewline
96 & 57021 & 52181.037037037 & 4839.96296296296 \tabularnewline
97 & 73116 & 52181.037037037 & 20934.962962963 \tabularnewline
98 & 3895 & 1748.5 & 2146.5 \tabularnewline
99 & 46609 & 39093.3815789474 & 7515.61842105263 \tabularnewline
100 & 29351 & 39093.3815789474 & -9742.38157894737 \tabularnewline
101 & 2325 & 16046.0833333333 & -13721.0833333333 \tabularnewline
102 & 31747 & 39093.3815789474 & -7346.38157894737 \tabularnewline
103 & 32665 & 39093.3815789474 & -6428.38157894737 \tabularnewline
104 & 19249 & 16046.0833333333 & 3202.91666666667 \tabularnewline
105 & 15292 & 16046.0833333333 & -754.083333333334 \tabularnewline
106 & 5842 & 1748.5 & 4093.5 \tabularnewline
107 & 33994 & 39093.3815789474 & -5099.38157894737 \tabularnewline
108 & 13018 & 16046.0833333333 & -3028.08333333333 \tabularnewline
109 & 0 & 1748.5 & -1748.5 \tabularnewline
110 & 98177 & 39093.3815789474 & 59083.6184210526 \tabularnewline
111 & 37941 & 39093.3815789474 & -1152.38157894737 \tabularnewline
112 & 31032 & 39093.3815789474 & -8061.38157894737 \tabularnewline
113 & 32683 & 52181.037037037 & -19498.037037037 \tabularnewline
114 & 34545 & 39093.3815789474 & -4548.38157894737 \tabularnewline
115 & 0 & 1748.5 & -1748.5 \tabularnewline
116 & 0 & 1748.5 & -1748.5 \tabularnewline
117 & 27525 & 39093.3815789474 & -11568.3815789474 \tabularnewline
118 & 66856 & 52181.037037037 & 14674.962962963 \tabularnewline
119 & 28549 & 39093.3815789474 & -10544.3815789474 \tabularnewline
120 & 38610 & 39093.3815789474 & -483.381578947367 \tabularnewline
121 & 2781 & 1748.5 & 1032.5 \tabularnewline
122 & 41211 & 52181.037037037 & -10970.037037037 \tabularnewline
123 & 22698 & 39093.3815789474 & -16395.3815789474 \tabularnewline
124 & 41194 & 39093.3815789474 & 2100.61842105263 \tabularnewline
125 & 32689 & 16046.0833333333 & 16642.9166666667 \tabularnewline
126 & 5752 & 1748.5 & 4003.5 \tabularnewline
127 & 26757 & 39093.3815789474 & -12336.3815789474 \tabularnewline
128 & 22527 & 39093.3815789474 & -16566.3815789474 \tabularnewline
129 & 44810 & 39093.3815789474 & 5716.61842105263 \tabularnewline
130 & 0 & 1748.5 & -1748.5 \tabularnewline
131 & 0 & 1748.5 & -1748.5 \tabularnewline
132 & 100674 & 39093.3815789474 & 61580.6184210526 \tabularnewline
133 & 0 & 1748.5 & -1748.5 \tabularnewline
134 & 57786 & 39093.3815789474 & 18692.6184210526 \tabularnewline
135 & 0 & 1748.5 & -1748.5 \tabularnewline
136 & 5444 & 1748.5 & 3695.5 \tabularnewline
137 & 0 & 1748.5 & -1748.5 \tabularnewline
138 & 28470 & 39093.3815789474 & -10623.3815789474 \tabularnewline
139 & 61849 & 39093.3815789474 & 22755.6184210526 \tabularnewline
140 & 0 & 1748.5 & -1748.5 \tabularnewline
141 & 2179 & 1748.5 & 430.5 \tabularnewline
142 & 8019 & 16046.0833333333 & -8027.08333333333 \tabularnewline
143 & 39644 & 52181.037037037 & -12537.037037037 \tabularnewline
144 & 23494 & 39093.3815789474 & -15599.3815789474 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159588&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]20465[/C][C]39093.3815789474[/C][C]-18628.3815789474[/C][/ROW]
[ROW][C]2[/C][C]33629[/C][C]39093.3815789474[/C][C]-5464.38157894737[/C][/ROW]
[ROW][C]3[/C][C]1423[/C][C]1748.5[/C][C]-325.5[/C][/ROW]
[ROW][C]4[/C][C]25629[/C][C]39093.3815789474[/C][C]-13464.3815789474[/C][/ROW]
[ROW][C]5[/C][C]54002[/C][C]52181.037037037[/C][C]1820.96296296296[/C][/ROW]
[ROW][C]6[/C][C]151036[/C][C]77412.0909090909[/C][C]73623.9090909091[/C][/ROW]
[ROW][C]7[/C][C]33287[/C][C]39093.3815789474[/C][C]-5806.38157894737[/C][/ROW]
[ROW][C]8[/C][C]31172[/C][C]52181.037037037[/C][C]-21009.037037037[/C][/ROW]
[ROW][C]9[/C][C]28113[/C][C]39093.3815789474[/C][C]-10980.3815789474[/C][/ROW]
[ROW][C]10[/C][C]57803[/C][C]52181.037037037[/C][C]5621.96296296296[/C][/ROW]
[ROW][C]11[/C][C]49830[/C][C]39093.3815789474[/C][C]10736.6184210526[/C][/ROW]
[ROW][C]12[/C][C]52143[/C][C]52181.037037037[/C][C]-38.0370370370365[/C][/ROW]
[ROW][C]13[/C][C]21055[/C][C]39093.3815789474[/C][C]-18038.3815789474[/C][/ROW]
[ROW][C]14[/C][C]47007[/C][C]52181.037037037[/C][C]-5174.03703703704[/C][/ROW]
[ROW][C]15[/C][C]28735[/C][C]39093.3815789474[/C][C]-10358.3815789474[/C][/ROW]
[ROW][C]16[/C][C]59147[/C][C]39093.3815789474[/C][C]20053.6184210526[/C][/ROW]
[ROW][C]17[/C][C]78950[/C][C]77412.0909090909[/C][C]1537.90909090909[/C][/ROW]
[ROW][C]18[/C][C]13497[/C][C]16046.0833333333[/C][C]-2549.08333333333[/C][/ROW]
[ROW][C]19[/C][C]46154[/C][C]39093.3815789474[/C][C]7060.61842105263[/C][/ROW]
[ROW][C]20[/C][C]53249[/C][C]39093.3815789474[/C][C]14155.6184210526[/C][/ROW]
[ROW][C]21[/C][C]10726[/C][C]16046.0833333333[/C][C]-5320.08333333333[/C][/ROW]
[ROW][C]22[/C][C]83700[/C][C]77412.0909090909[/C][C]6287.90909090909[/C][/ROW]
[ROW][C]23[/C][C]40400[/C][C]39093.3815789474[/C][C]1306.61842105263[/C][/ROW]
[ROW][C]24[/C][C]33797[/C][C]39093.3815789474[/C][C]-5296.38157894737[/C][/ROW]
[ROW][C]25[/C][C]36205[/C][C]39093.3815789474[/C][C]-2888.38157894737[/C][/ROW]
[ROW][C]26[/C][C]30165[/C][C]52181.037037037[/C][C]-22016.037037037[/C][/ROW]
[ROW][C]27[/C][C]58534[/C][C]52181.037037037[/C][C]6352.96296296296[/C][/ROW]
[ROW][C]28[/C][C]44663[/C][C]52181.037037037[/C][C]-7518.03703703704[/C][/ROW]
[ROW][C]29[/C][C]92556[/C][C]52181.037037037[/C][C]40374.962962963[/C][/ROW]
[ROW][C]30[/C][C]40078[/C][C]52181.037037037[/C][C]-12103.037037037[/C][/ROW]
[ROW][C]31[/C][C]34711[/C][C]39093.3815789474[/C][C]-4382.38157894737[/C][/ROW]
[ROW][C]32[/C][C]31076[/C][C]39093.3815789474[/C][C]-8017.38157894737[/C][/ROW]
[ROW][C]33[/C][C]74608[/C][C]52181.037037037[/C][C]22426.962962963[/C][/ROW]
[ROW][C]34[/C][C]58092[/C][C]39093.3815789474[/C][C]18998.6184210526[/C][/ROW]
[ROW][C]35[/C][C]42009[/C][C]52181.037037037[/C][C]-10172.037037037[/C][/ROW]
[ROW][C]36[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]37[/C][C]36022[/C][C]39093.3815789474[/C][C]-3071.38157894737[/C][/ROW]
[ROW][C]38[/C][C]23333[/C][C]39093.3815789474[/C][C]-15760.3815789474[/C][/ROW]
[ROW][C]39[/C][C]53349[/C][C]39093.3815789474[/C][C]14255.6184210526[/C][/ROW]
[ROW][C]40[/C][C]92596[/C][C]77412.0909090909[/C][C]15183.9090909091[/C][/ROW]
[ROW][C]41[/C][C]49598[/C][C]77412.0909090909[/C][C]-27814.0909090909[/C][/ROW]
[ROW][C]42[/C][C]44093[/C][C]39093.3815789474[/C][C]4999.61842105263[/C][/ROW]
[ROW][C]43[/C][C]84205[/C][C]52181.037037037[/C][C]32023.962962963[/C][/ROW]
[ROW][C]44[/C][C]63369[/C][C]52181.037037037[/C][C]11187.962962963[/C][/ROW]
[ROW][C]45[/C][C]60132[/C][C]77412.0909090909[/C][C]-17280.0909090909[/C][/ROW]
[ROW][C]46[/C][C]37403[/C][C]52181.037037037[/C][C]-14778.037037037[/C][/ROW]
[ROW][C]47[/C][C]24460[/C][C]39093.3815789474[/C][C]-14633.3815789474[/C][/ROW]
[ROW][C]48[/C][C]46456[/C][C]39093.3815789474[/C][C]7362.61842105263[/C][/ROW]
[ROW][C]49[/C][C]66616[/C][C]39093.3815789474[/C][C]27522.6184210526[/C][/ROW]
[ROW][C]50[/C][C]41554[/C][C]39093.3815789474[/C][C]2460.61842105263[/C][/ROW]
[ROW][C]51[/C][C]22346[/C][C]16046.0833333333[/C][C]6299.91666666667[/C][/ROW]
[ROW][C]52[/C][C]30874[/C][C]39093.3815789474[/C][C]-8219.38157894737[/C][/ROW]
[ROW][C]53[/C][C]68701[/C][C]77412.0909090909[/C][C]-8711.09090909091[/C][/ROW]
[ROW][C]54[/C][C]35728[/C][C]39093.3815789474[/C][C]-3365.38157894737[/C][/ROW]
[ROW][C]55[/C][C]29010[/C][C]39093.3815789474[/C][C]-10083.3815789474[/C][/ROW]
[ROW][C]56[/C][C]23110[/C][C]39093.3815789474[/C][C]-15983.3815789474[/C][/ROW]
[ROW][C]57[/C][C]38844[/C][C]39093.3815789474[/C][C]-249.381578947367[/C][/ROW]
[ROW][C]58[/C][C]27084[/C][C]39093.3815789474[/C][C]-12009.3815789474[/C][/ROW]
[ROW][C]59[/C][C]35139[/C][C]39093.3815789474[/C][C]-3954.38157894737[/C][/ROW]
[ROW][C]60[/C][C]57476[/C][C]39093.3815789474[/C][C]18382.6184210526[/C][/ROW]
[ROW][C]61[/C][C]33277[/C][C]39093.3815789474[/C][C]-5816.38157894737[/C][/ROW]
[ROW][C]62[/C][C]31141[/C][C]39093.3815789474[/C][C]-7952.38157894737[/C][/ROW]
[ROW][C]63[/C][C]61281[/C][C]39093.3815789474[/C][C]22187.6184210526[/C][/ROW]
[ROW][C]64[/C][C]25820[/C][C]39093.3815789474[/C][C]-13273.3815789474[/C][/ROW]
[ROW][C]65[/C][C]23284[/C][C]16046.0833333333[/C][C]7237.91666666667[/C][/ROW]
[ROW][C]66[/C][C]35378[/C][C]39093.3815789474[/C][C]-3715.38157894737[/C][/ROW]
[ROW][C]67[/C][C]74990[/C][C]52181.037037037[/C][C]22808.962962963[/C][/ROW]
[ROW][C]68[/C][C]29653[/C][C]52181.037037037[/C][C]-22528.037037037[/C][/ROW]
[ROW][C]69[/C][C]64622[/C][C]39093.3815789474[/C][C]25528.6184210526[/C][/ROW]
[ROW][C]70[/C][C]4157[/C][C]1748.5[/C][C]2408.5[/C][/ROW]
[ROW][C]71[/C][C]29245[/C][C]52181.037037037[/C][C]-22936.037037037[/C][/ROW]
[ROW][C]72[/C][C]50008[/C][C]39093.3815789474[/C][C]10914.6184210526[/C][/ROW]
[ROW][C]73[/C][C]52338[/C][C]77412.0909090909[/C][C]-25074.0909090909[/C][/ROW]
[ROW][C]74[/C][C]13310[/C][C]39093.3815789474[/C][C]-25783.3815789474[/C][/ROW]
[ROW][C]75[/C][C]92901[/C][C]39093.3815789474[/C][C]53807.6184210526[/C][/ROW]
[ROW][C]76[/C][C]10956[/C][C]16046.0833333333[/C][C]-5090.08333333333[/C][/ROW]
[ROW][C]77[/C][C]34241[/C][C]39093.3815789474[/C][C]-4852.38157894737[/C][/ROW]
[ROW][C]78[/C][C]75043[/C][C]77412.0909090909[/C][C]-2369.09090909091[/C][/ROW]
[ROW][C]79[/C][C]21152[/C][C]16046.0833333333[/C][C]5105.91666666667[/C][/ROW]
[ROW][C]80[/C][C]42249[/C][C]39093.3815789474[/C][C]3155.61842105263[/C][/ROW]
[ROW][C]81[/C][C]42005[/C][C]39093.3815789474[/C][C]2911.61842105263[/C][/ROW]
[ROW][C]82[/C][C]41152[/C][C]39093.3815789474[/C][C]2058.61842105263[/C][/ROW]
[ROW][C]83[/C][C]14399[/C][C]39093.3815789474[/C][C]-24694.3815789474[/C][/ROW]
[ROW][C]84[/C][C]28263[/C][C]39093.3815789474[/C][C]-10830.3815789474[/C][/ROW]
[ROW][C]85[/C][C]17215[/C][C]39093.3815789474[/C][C]-21878.3815789474[/C][/ROW]
[ROW][C]86[/C][C]48140[/C][C]52181.037037037[/C][C]-4041.03703703704[/C][/ROW]
[ROW][C]87[/C][C]62897[/C][C]77412.0909090909[/C][C]-14515.0909090909[/C][/ROW]
[ROW][C]88[/C][C]22883[/C][C]39093.3815789474[/C][C]-16210.3815789474[/C][/ROW]
[ROW][C]89[/C][C]41622[/C][C]39093.3815789474[/C][C]2528.61842105263[/C][/ROW]
[ROW][C]90[/C][C]40715[/C][C]52181.037037037[/C][C]-11466.037037037[/C][/ROW]
[ROW][C]91[/C][C]65897[/C][C]52181.037037037[/C][C]13715.962962963[/C][/ROW]
[ROW][C]92[/C][C]76542[/C][C]77412.0909090909[/C][C]-870.090909090912[/C][/ROW]
[ROW][C]93[/C][C]37477[/C][C]39093.3815789474[/C][C]-1616.38157894737[/C][/ROW]
[ROW][C]94[/C][C]53216[/C][C]39093.3815789474[/C][C]14122.6184210526[/C][/ROW]
[ROW][C]95[/C][C]40911[/C][C]39093.3815789474[/C][C]1817.61842105263[/C][/ROW]
[ROW][C]96[/C][C]57021[/C][C]52181.037037037[/C][C]4839.96296296296[/C][/ROW]
[ROW][C]97[/C][C]73116[/C][C]52181.037037037[/C][C]20934.962962963[/C][/ROW]
[ROW][C]98[/C][C]3895[/C][C]1748.5[/C][C]2146.5[/C][/ROW]
[ROW][C]99[/C][C]46609[/C][C]39093.3815789474[/C][C]7515.61842105263[/C][/ROW]
[ROW][C]100[/C][C]29351[/C][C]39093.3815789474[/C][C]-9742.38157894737[/C][/ROW]
[ROW][C]101[/C][C]2325[/C][C]16046.0833333333[/C][C]-13721.0833333333[/C][/ROW]
[ROW][C]102[/C][C]31747[/C][C]39093.3815789474[/C][C]-7346.38157894737[/C][/ROW]
[ROW][C]103[/C][C]32665[/C][C]39093.3815789474[/C][C]-6428.38157894737[/C][/ROW]
[ROW][C]104[/C][C]19249[/C][C]16046.0833333333[/C][C]3202.91666666667[/C][/ROW]
[ROW][C]105[/C][C]15292[/C][C]16046.0833333333[/C][C]-754.083333333334[/C][/ROW]
[ROW][C]106[/C][C]5842[/C][C]1748.5[/C][C]4093.5[/C][/ROW]
[ROW][C]107[/C][C]33994[/C][C]39093.3815789474[/C][C]-5099.38157894737[/C][/ROW]
[ROW][C]108[/C][C]13018[/C][C]16046.0833333333[/C][C]-3028.08333333333[/C][/ROW]
[ROW][C]109[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]110[/C][C]98177[/C][C]39093.3815789474[/C][C]59083.6184210526[/C][/ROW]
[ROW][C]111[/C][C]37941[/C][C]39093.3815789474[/C][C]-1152.38157894737[/C][/ROW]
[ROW][C]112[/C][C]31032[/C][C]39093.3815789474[/C][C]-8061.38157894737[/C][/ROW]
[ROW][C]113[/C][C]32683[/C][C]52181.037037037[/C][C]-19498.037037037[/C][/ROW]
[ROW][C]114[/C][C]34545[/C][C]39093.3815789474[/C][C]-4548.38157894737[/C][/ROW]
[ROW][C]115[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]116[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]117[/C][C]27525[/C][C]39093.3815789474[/C][C]-11568.3815789474[/C][/ROW]
[ROW][C]118[/C][C]66856[/C][C]52181.037037037[/C][C]14674.962962963[/C][/ROW]
[ROW][C]119[/C][C]28549[/C][C]39093.3815789474[/C][C]-10544.3815789474[/C][/ROW]
[ROW][C]120[/C][C]38610[/C][C]39093.3815789474[/C][C]-483.381578947367[/C][/ROW]
[ROW][C]121[/C][C]2781[/C][C]1748.5[/C][C]1032.5[/C][/ROW]
[ROW][C]122[/C][C]41211[/C][C]52181.037037037[/C][C]-10970.037037037[/C][/ROW]
[ROW][C]123[/C][C]22698[/C][C]39093.3815789474[/C][C]-16395.3815789474[/C][/ROW]
[ROW][C]124[/C][C]41194[/C][C]39093.3815789474[/C][C]2100.61842105263[/C][/ROW]
[ROW][C]125[/C][C]32689[/C][C]16046.0833333333[/C][C]16642.9166666667[/C][/ROW]
[ROW][C]126[/C][C]5752[/C][C]1748.5[/C][C]4003.5[/C][/ROW]
[ROW][C]127[/C][C]26757[/C][C]39093.3815789474[/C][C]-12336.3815789474[/C][/ROW]
[ROW][C]128[/C][C]22527[/C][C]39093.3815789474[/C][C]-16566.3815789474[/C][/ROW]
[ROW][C]129[/C][C]44810[/C][C]39093.3815789474[/C][C]5716.61842105263[/C][/ROW]
[ROW][C]130[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]131[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]132[/C][C]100674[/C][C]39093.3815789474[/C][C]61580.6184210526[/C][/ROW]
[ROW][C]133[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]134[/C][C]57786[/C][C]39093.3815789474[/C][C]18692.6184210526[/C][/ROW]
[ROW][C]135[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]136[/C][C]5444[/C][C]1748.5[/C][C]3695.5[/C][/ROW]
[ROW][C]137[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]138[/C][C]28470[/C][C]39093.3815789474[/C][C]-10623.3815789474[/C][/ROW]
[ROW][C]139[/C][C]61849[/C][C]39093.3815789474[/C][C]22755.6184210526[/C][/ROW]
[ROW][C]140[/C][C]0[/C][C]1748.5[/C][C]-1748.5[/C][/ROW]
[ROW][C]141[/C][C]2179[/C][C]1748.5[/C][C]430.5[/C][/ROW]
[ROW][C]142[/C][C]8019[/C][C]16046.0833333333[/C][C]-8027.08333333333[/C][/ROW]
[ROW][C]143[/C][C]39644[/C][C]52181.037037037[/C][C]-12537.037037037[/C][/ROW]
[ROW][C]144[/C][C]23494[/C][C]39093.3815789474[/C][C]-15599.3815789474[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159588&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159588&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
12046539093.3815789474-18628.3815789474
23362939093.3815789474-5464.38157894737
314231748.5-325.5
42562939093.3815789474-13464.3815789474
55400252181.0370370371820.96296296296
615103677412.090909090973623.9090909091
73328739093.3815789474-5806.38157894737
83117252181.037037037-21009.037037037
92811339093.3815789474-10980.3815789474
105780352181.0370370375621.96296296296
114983039093.381578947410736.6184210526
125214352181.037037037-38.0370370370365
132105539093.3815789474-18038.3815789474
144700752181.037037037-5174.03703703704
152873539093.3815789474-10358.3815789474
165914739093.381578947420053.6184210526
177895077412.09090909091537.90909090909
181349716046.0833333333-2549.08333333333
194615439093.38157894747060.61842105263
205324939093.381578947414155.6184210526
211072616046.0833333333-5320.08333333333
228370077412.09090909096287.90909090909
234040039093.38157894741306.61842105263
243379739093.3815789474-5296.38157894737
253620539093.3815789474-2888.38157894737
263016552181.037037037-22016.037037037
275853452181.0370370376352.96296296296
284466352181.037037037-7518.03703703704
299255652181.03703703740374.962962963
304007852181.037037037-12103.037037037
313471139093.3815789474-4382.38157894737
323107639093.3815789474-8017.38157894737
337460852181.03703703722426.962962963
345809239093.381578947418998.6184210526
354200952181.037037037-10172.037037037
3601748.5-1748.5
373602239093.3815789474-3071.38157894737
382333339093.3815789474-15760.3815789474
395334939093.381578947414255.6184210526
409259677412.090909090915183.9090909091
414959877412.0909090909-27814.0909090909
424409339093.38157894744999.61842105263
438420552181.03703703732023.962962963
446336952181.03703703711187.962962963
456013277412.0909090909-17280.0909090909
463740352181.037037037-14778.037037037
472446039093.3815789474-14633.3815789474
484645639093.38157894747362.61842105263
496661639093.381578947427522.6184210526
504155439093.38157894742460.61842105263
512234616046.08333333336299.91666666667
523087439093.3815789474-8219.38157894737
536870177412.0909090909-8711.09090909091
543572839093.3815789474-3365.38157894737
552901039093.3815789474-10083.3815789474
562311039093.3815789474-15983.3815789474
573884439093.3815789474-249.381578947367
582708439093.3815789474-12009.3815789474
593513939093.3815789474-3954.38157894737
605747639093.381578947418382.6184210526
613327739093.3815789474-5816.38157894737
623114139093.3815789474-7952.38157894737
636128139093.381578947422187.6184210526
642582039093.3815789474-13273.3815789474
652328416046.08333333337237.91666666667
663537839093.3815789474-3715.38157894737
677499052181.03703703722808.962962963
682965352181.037037037-22528.037037037
696462239093.381578947425528.6184210526
7041571748.52408.5
712924552181.037037037-22936.037037037
725000839093.381578947410914.6184210526
735233877412.0909090909-25074.0909090909
741331039093.3815789474-25783.3815789474
759290139093.381578947453807.6184210526
761095616046.0833333333-5090.08333333333
773424139093.3815789474-4852.38157894737
787504377412.0909090909-2369.09090909091
792115216046.08333333335105.91666666667
804224939093.38157894743155.61842105263
814200539093.38157894742911.61842105263
824115239093.38157894742058.61842105263
831439939093.3815789474-24694.3815789474
842826339093.3815789474-10830.3815789474
851721539093.3815789474-21878.3815789474
864814052181.037037037-4041.03703703704
876289777412.0909090909-14515.0909090909
882288339093.3815789474-16210.3815789474
894162239093.38157894742528.61842105263
904071552181.037037037-11466.037037037
916589752181.03703703713715.962962963
927654277412.0909090909-870.090909090912
933747739093.3815789474-1616.38157894737
945321639093.381578947414122.6184210526
954091139093.38157894741817.61842105263
965702152181.0370370374839.96296296296
977311652181.03703703720934.962962963
9838951748.52146.5
994660939093.38157894747515.61842105263
1002935139093.3815789474-9742.38157894737
101232516046.0833333333-13721.0833333333
1023174739093.3815789474-7346.38157894737
1033266539093.3815789474-6428.38157894737
1041924916046.08333333333202.91666666667
1051529216046.0833333333-754.083333333334
10658421748.54093.5
1073399439093.3815789474-5099.38157894737
1081301816046.0833333333-3028.08333333333
10901748.5-1748.5
1109817739093.381578947459083.6184210526
1113794139093.3815789474-1152.38157894737
1123103239093.3815789474-8061.38157894737
1133268352181.037037037-19498.037037037
1143454539093.3815789474-4548.38157894737
11501748.5-1748.5
11601748.5-1748.5
1172752539093.3815789474-11568.3815789474
1186685652181.03703703714674.962962963
1192854939093.3815789474-10544.3815789474
1203861039093.3815789474-483.381578947367
12127811748.51032.5
1224121152181.037037037-10970.037037037
1232269839093.3815789474-16395.3815789474
1244119439093.38157894742100.61842105263
1253268916046.083333333316642.9166666667
12657521748.54003.5
1272675739093.3815789474-12336.3815789474
1282252739093.3815789474-16566.3815789474
1294481039093.38157894745716.61842105263
13001748.5-1748.5
13101748.5-1748.5
13210067439093.381578947461580.6184210526
13301748.5-1748.5
1345778639093.381578947418692.6184210526
13501748.5-1748.5
13654441748.53695.5
13701748.5-1748.5
1382847039093.3815789474-10623.3815789474
1396184939093.381578947422755.6184210526
14001748.5-1748.5
14121791748.5430.5
142801916046.0833333333-8027.08333333333
1433964452181.037037037-12537.037037037
1442349439093.3815789474-15599.3815789474



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')
}