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 09:49:18 -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/t1324565402em0vn7xfms9a6ha.htm/, Retrieved Fri, 03 May 2024 04:24:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=159529, Retrieved Fri, 03 May 2024 04:24:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact107
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 14:49:18] [3eda06f9e914bde86f40a764ca976328] [Current]
Feedback Forum

Post a new message
Dataseries X:
101645	63	371	88	0	20	11	44	38
101011	34	238	41	0	30	13	52	39
7176	17	70	1	0	0	0	0	0
96560	76	503	129	0	42	17	54	38
175824	107	910	107	0	57	20	80	77
341570	168	1276	190	1	94	21	80	78
103597	43	379	66	1	27	16	60	49
112611	41	248	36	0	46	20	78	73
85574	34	351	71	0	37	21	78	36
220801	75	720	105	1	51	18	72	63
92661	61	508	133	1	40	17	45	41
133328	55	506	79	0	56	20	78	56
61361	77	451	51	0	27	12	39	25
125930	75	699	207	4	37	17	68	65
82316	32	245	34	4	27	10	39	38
102010	53	370	66	3	28	13	50	44
101523	42	316	76	0	59	22	88	87
41566	35	229	42	5	0	9	36	27
99923	66	617	115	0	44	25	99	80
22648	19	184	44	0	12	13	39	28
46698	45	274	35	0	14	13	52	33
131698	65	502	74	0	60	19	75	59
91735	35	382	103	0	7	18	71	49
79863	37	438	134	1	29	22	71	49
108043	62	466	29	1	45	14	54	38
98866	18	397	140	0	25	13	49	39
120445	118	457	72	0	36	16	59	56
116048	64	230	45	0	50	20	75	50
250047	81	651	58	0	41	18	71	61
136084	30	671	69	0	27	13	51	41
92499	32	319	57	0	25	18	71	55
135781	31	433	98	2	45	14	47	44
74408	67	434	61	4	29	7	28	21
81240	66	503	89	0	58	17	68	50
133368	36	535	54	1	37	16	64	57
98146	40	459	37	0	15	17	68	48
79619	43	426	123	3	42	11	40	32
59194	31	288	247	6	7	24	80	68
139942	42	498	46	0	54	22	88	87
118612	46	454	72	2	54	12	48	43
72880	33	376	41	0	14	19	76	67
65475	18	225	24	2	16	13	51	46
99643	55	555	45	1	33	17	67	46
71965	35	252	33	1	32	15	59	56
77272	59	208	27	2	21	16	61	48
49289	19	130	36	1	15	24	76	44
135131	66	481	87	0	38	15	60	60
108446	60	389	90	1	22	17	68	65
89746	36	565	114	3	28	18	71	55
44296	25	173	31	0	10	20	76	38
77648	47	278	45	0	31	16	62	52
181528	54	609	69	0	32	16	61	60
134019	53	422	51	0	32	18	67	54
124064	40	445	34	1	43	22	88	86
92630	40	387	60	4	27	8	30	24
121848	39	339	45	0	37	17	64	52
52915	14	181	54	0	20	18	68	49
81872	45	245	25	0	32	16	64	61
58981	36	384	38	7	0	23	91	61
53515	28	212	52	2	5	22	88	81
60812	44	399	67	0	26	13	52	43
56375	30	229	74	7	10	13	49	40
65490	22	224	38	3	27	16	62	40
80949	17	203	30	0	11	16	61	56
76302	31	333	26	0	29	20	76	68
104011	55	384	67	6	25	22	88	79
98104	54	636	132	2	55	17	66	47
67989	21	185	42	0	23	18	71	57
30989	14	93	35	0	5	17	68	41
135458	81	581	118	3	43	12	48	29
73504	35	248	68	0	23	7	25	3
63123	43	304	43	1	34	17	68	60
61254	46	344	76	1	36	14	41	30
74914	30	407	64	0	35	23	90	79
31774	23	170	48	1	0	17	66	47
81437	38	312	64	0	37	14	54	40
87186	54	507	56	0	28	15	59	48
50090	20	224	71	0	16	17	60	36
65745	53	340	75	0	26	21	77	42
56653	45	168	39	0	38	18	68	49
158399	39	443	42	0	23	18	72	57
46455	20	204	39	0	22	17	67	12
73624	24	367	93	0	30	17	64	40
38395	31	210	38	0	16	16	63	43
91899	35	335	60	0	18	15	59	33
139526	151	364	71	0	28	21	84	77
52164	52	178	52	0	32	16	64	43
51567	30	206	27	2	21	14	56	45
70551	31	279	59	0	23	15	54	47
84856	29	387	40	1	29	17	67	43
102538	57	490	79	1	50	15	58	45
86678	40	238	44	0	12	15	59	50
85709	44	343	65	0	21	10	40	35
34662	25	232	10	0	18	6	22	7
150580	77	530	124	0	27	22	83	71
99611	35	291	81	0	41	21	81	67
19349	11	67	15	0	13	1	2	0
99373	63	397	92	1	12	18	72	62
86230	44	467	42	0	21	17	61	54
30837	19	178	10	0	8	4	15	4
31706	13	175	24	0	26	10	32	25
89806	42	299	64	0	27	16	62	40
62088	38	154	45	1	13	16	58	38
40151	29	106	22	0	16	9	36	19
27634	20	189	56	0	2	16	59	17
76990	27	194	94	0	42	17	68	67
37460	20	135	19	0	5	7	21	14
54157	19	201	35	0	37	15	55	30
49862	37	207	32	0	17	14	54	54
84337	26	280	35	0	38	14	55	35
64175	42	260	48	0	37	18	72	59
59382	49	227	49	0	29	12	41	24
119308	30	239	48	0	32	16	61	58
76702	49	333	62	0	35	21	67	42
103425	67	428	96	1	17	19	76	46
70344	28	230	45	0	20	16	64	61
43410	19	292	63	0	7	1	3	3
104838	49	350	71	1	46	16	63	52
62215	27	186	26	0	24	10	40	25
69304	30	326	48	6	40	19	69	40
53117	22	155	29	3	3	12	48	32
19764	12	75	19	1	10	2	8	4
86680	31	361	45	2	37	14	52	49
84105	20	261	45	0	17	17	66	63
77945	20	299	67	0	28	19	76	67
89113	39	300	30	0	19	14	43	32
91005	29	450	36	3	29	11	39	23
40248	16	183	34	1	8	4	14	7
64187	27	238	36	0	10	16	61	54
50857	21	165	34	0	15	20	71	37
56613	19	234	37	1	15	12	44	35
62792	35	176	46	0	28	15	60	51
72535	14	329	44	0	17	16	64	39




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.

\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 & 5 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
R Framework error message & 
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=159529&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=159529&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159529&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 time5 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.







Goodness of Fit
Correlation0.8241
R-squared0.6792
RMSE24850.2593

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8241[/C][/ROW]
[ROW][C]R-squared[/C][C]0.6792[/C][/ROW]
[ROW][C]RMSE[/C][C]24850.2593[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159529&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159529&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.8241
R-squared0.6792
RMSE24850.2593







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
1101645102965.142857143-1320.14285714286
210101185273.789473684215737.2105263158
3717629168.2857142857-21992.2857142857
49656095794766
5175824176526.9-702.899999999994
6341570176526.9165043.1
710359785273.789473684218323.2105263158
811261185273.789473684227337.2105263158
98557485273.7894736842300.210526315786
10220801176526.944274.1
119266195794-3133
12133328136328.333333333-3000.33333333334
136136195794-34433
14125930176526.9-50596.9
158231685273.7894736842-2957.78947368421
16102010102965.142857143-955.142857142855
1710152385273.789473684216249.2105263158
184156647075.4583333333-5509.45833333334
1999923176526.9-76603.9
202264847075.4583333333-24427.4583333333
214669865470.375-18772.375
22131698136328.333333333-4630.33333333334
239173565470.37526264.625
247986395794-15931
251080439579412249
269886685273.789473684213592.2105263158
27120445136328.333333333-15883.3333333333
2811604869575.363636363646472.6363636364
29250047176526.973520.1
30136084176526.9-40442.9
319249985273.78947368427225.21052631579
321357819579439987
337440895794-21386
348124095794-14554
35133368136328.333333333-2960.33333333334
3698146957942352
377961995794-16175
385919465470.375-6276.375
39139942136328.3333333333613.66666666666
401186129579422818
417288065470.3757409.625
426547547075.458333333318399.5416666667
4399643957943849
447196585273.7894736842-13308.7894736842
457727269575.36363636367696.63636363637
464928929168.285714285720120.7142857143
47135131136328.333333333-1197.33333333334
48108446102965.1428571435480.85714285714
498974695794-6048
504429647075.4583333333-2779.45833333334
517764885273.7894736842-7625.78947368421
52181528176526.95001.10000000001
531340199579438225
54124064136328.333333333-12264.3333333333
559263085273.78947368427356.21052631579
5612184885273.789473684236574.2105263158
575291569575.3636363636-16660.3636363636
588187285273.7894736842-3401.78947368421
595898165470.375-6489.375
605351569575.3636363636-16060.3636363636
616081285273.7894736842-24461.7894736842
625637547075.45833333339299.54166666666
636549047075.458333333318414.5416666667
648094969575.363636363611373.6363636364
657630285273.7894736842-8971.78947368421
66104011102965.1428571431045.85714285714
6798104176526.9-78422.9
686798969575.3636363636-1586.36363636363
693098929168.28571428571820.71428571429
70135458176526.9-41068.9
717350485273.7894736842-11769.7894736842
726312385273.7894736842-22150.7894736842
736125485273.7894736842-24019.7894736842
747491485273.7894736842-10359.7894736842
753177447075.4583333333-15301.4583333333
768143785273.7894736842-3836.78947368421
778718695794-8608
785009047075.45833333333014.54166666666
7965745102965.142857143-37220.1428571429
805665369575.3636363636-12922.3636363636
81158399136328.33333333322070.6666666667
824645547075.4583333333-620.458333333336
837362485273.7894736842-11649.7894736842
843839547075.4583333333-8680.45833333334
859189985273.78947368426625.21052631579
86139526102965.14285714336560.8571428571
875216447075.45833333335088.54166666666
885156747075.45833333334491.54166666666
897055185273.7894736842-14722.7894736842
908485685273.7894736842-417.789473684214
91102538957946744
928667865470.37521207.625
938570985273.7894736842435.210526315786
943466247075.4583333333-12413.4583333333
95150580136328.33333333314251.6666666667
969961185273.789473684214337.2105263158
971934929168.2857142857-9819.28571428571
9899373102965.142857143-3592.14285714286
998623095794-9564
1003083747075.4583333333-16238.4583333333
1013170647075.4583333333-15369.4583333333
1028980685273.78947368424532.21052631579
1036208847075.458333333315012.5416666667
1044015129168.285714285710982.7142857143
1052763447075.4583333333-19441.4583333333
1067699069575.36363636367414.63636363637
1073746029168.28571428578291.71428571429
1085415747075.45833333337081.54166666666
1094986269575.3636363636-19713.3636363636
1108433785273.7894736842-936.789473684214
1116417585273.7894736842-21098.7894736842
1125938247075.458333333312306.5416666667
11311930885273.789473684234034.2105263158
1147670285273.7894736842-8571.78947368421
115103425957947631
1167034469575.3636363636768.636363636368
1174341065470.375-22060.375
11810483885273.789473684219564.2105263158
1196221547075.458333333315139.5416666667
1206930485273.7894736842-15969.7894736842
1215311747075.45833333336041.54166666666
1221976429168.2857142857-9404.28571428571
1238668085273.78947368421406.21052631579
1248410585273.7894736842-1168.78947368421
1257794585273.7894736842-7328.78947368421
1268911385273.78947368423839.21052631579
1279100595794-4789
1284024847075.4583333333-6827.45833333334
1296418765470.375-1283.375
1305085747075.45833333333781.54166666666
1315661347075.45833333339537.54166666666
1326279269575.3636363636-6783.36363636363
1337253585273.7894736842-12738.7894736842

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 101645 & 102965.142857143 & -1320.14285714286 \tabularnewline
2 & 101011 & 85273.7894736842 & 15737.2105263158 \tabularnewline
3 & 7176 & 29168.2857142857 & -21992.2857142857 \tabularnewline
4 & 96560 & 95794 & 766 \tabularnewline
5 & 175824 & 176526.9 & -702.899999999994 \tabularnewline
6 & 341570 & 176526.9 & 165043.1 \tabularnewline
7 & 103597 & 85273.7894736842 & 18323.2105263158 \tabularnewline
8 & 112611 & 85273.7894736842 & 27337.2105263158 \tabularnewline
9 & 85574 & 85273.7894736842 & 300.210526315786 \tabularnewline
10 & 220801 & 176526.9 & 44274.1 \tabularnewline
11 & 92661 & 95794 & -3133 \tabularnewline
12 & 133328 & 136328.333333333 & -3000.33333333334 \tabularnewline
13 & 61361 & 95794 & -34433 \tabularnewline
14 & 125930 & 176526.9 & -50596.9 \tabularnewline
15 & 82316 & 85273.7894736842 & -2957.78947368421 \tabularnewline
16 & 102010 & 102965.142857143 & -955.142857142855 \tabularnewline
17 & 101523 & 85273.7894736842 & 16249.2105263158 \tabularnewline
18 & 41566 & 47075.4583333333 & -5509.45833333334 \tabularnewline
19 & 99923 & 176526.9 & -76603.9 \tabularnewline
20 & 22648 & 47075.4583333333 & -24427.4583333333 \tabularnewline
21 & 46698 & 65470.375 & -18772.375 \tabularnewline
22 & 131698 & 136328.333333333 & -4630.33333333334 \tabularnewline
23 & 91735 & 65470.375 & 26264.625 \tabularnewline
24 & 79863 & 95794 & -15931 \tabularnewline
25 & 108043 & 95794 & 12249 \tabularnewline
26 & 98866 & 85273.7894736842 & 13592.2105263158 \tabularnewline
27 & 120445 & 136328.333333333 & -15883.3333333333 \tabularnewline
28 & 116048 & 69575.3636363636 & 46472.6363636364 \tabularnewline
29 & 250047 & 176526.9 & 73520.1 \tabularnewline
30 & 136084 & 176526.9 & -40442.9 \tabularnewline
31 & 92499 & 85273.7894736842 & 7225.21052631579 \tabularnewline
32 & 135781 & 95794 & 39987 \tabularnewline
33 & 74408 & 95794 & -21386 \tabularnewline
34 & 81240 & 95794 & -14554 \tabularnewline
35 & 133368 & 136328.333333333 & -2960.33333333334 \tabularnewline
36 & 98146 & 95794 & 2352 \tabularnewline
37 & 79619 & 95794 & -16175 \tabularnewline
38 & 59194 & 65470.375 & -6276.375 \tabularnewline
39 & 139942 & 136328.333333333 & 3613.66666666666 \tabularnewline
40 & 118612 & 95794 & 22818 \tabularnewline
41 & 72880 & 65470.375 & 7409.625 \tabularnewline
42 & 65475 & 47075.4583333333 & 18399.5416666667 \tabularnewline
43 & 99643 & 95794 & 3849 \tabularnewline
44 & 71965 & 85273.7894736842 & -13308.7894736842 \tabularnewline
45 & 77272 & 69575.3636363636 & 7696.63636363637 \tabularnewline
46 & 49289 & 29168.2857142857 & 20120.7142857143 \tabularnewline
47 & 135131 & 136328.333333333 & -1197.33333333334 \tabularnewline
48 & 108446 & 102965.142857143 & 5480.85714285714 \tabularnewline
49 & 89746 & 95794 & -6048 \tabularnewline
50 & 44296 & 47075.4583333333 & -2779.45833333334 \tabularnewline
51 & 77648 & 85273.7894736842 & -7625.78947368421 \tabularnewline
52 & 181528 & 176526.9 & 5001.10000000001 \tabularnewline
53 & 134019 & 95794 & 38225 \tabularnewline
54 & 124064 & 136328.333333333 & -12264.3333333333 \tabularnewline
55 & 92630 & 85273.7894736842 & 7356.21052631579 \tabularnewline
56 & 121848 & 85273.7894736842 & 36574.2105263158 \tabularnewline
57 & 52915 & 69575.3636363636 & -16660.3636363636 \tabularnewline
58 & 81872 & 85273.7894736842 & -3401.78947368421 \tabularnewline
59 & 58981 & 65470.375 & -6489.375 \tabularnewline
60 & 53515 & 69575.3636363636 & -16060.3636363636 \tabularnewline
61 & 60812 & 85273.7894736842 & -24461.7894736842 \tabularnewline
62 & 56375 & 47075.4583333333 & 9299.54166666666 \tabularnewline
63 & 65490 & 47075.4583333333 & 18414.5416666667 \tabularnewline
64 & 80949 & 69575.3636363636 & 11373.6363636364 \tabularnewline
65 & 76302 & 85273.7894736842 & -8971.78947368421 \tabularnewline
66 & 104011 & 102965.142857143 & 1045.85714285714 \tabularnewline
67 & 98104 & 176526.9 & -78422.9 \tabularnewline
68 & 67989 & 69575.3636363636 & -1586.36363636363 \tabularnewline
69 & 30989 & 29168.2857142857 & 1820.71428571429 \tabularnewline
70 & 135458 & 176526.9 & -41068.9 \tabularnewline
71 & 73504 & 85273.7894736842 & -11769.7894736842 \tabularnewline
72 & 63123 & 85273.7894736842 & -22150.7894736842 \tabularnewline
73 & 61254 & 85273.7894736842 & -24019.7894736842 \tabularnewline
74 & 74914 & 85273.7894736842 & -10359.7894736842 \tabularnewline
75 & 31774 & 47075.4583333333 & -15301.4583333333 \tabularnewline
76 & 81437 & 85273.7894736842 & -3836.78947368421 \tabularnewline
77 & 87186 & 95794 & -8608 \tabularnewline
78 & 50090 & 47075.4583333333 & 3014.54166666666 \tabularnewline
79 & 65745 & 102965.142857143 & -37220.1428571429 \tabularnewline
80 & 56653 & 69575.3636363636 & -12922.3636363636 \tabularnewline
81 & 158399 & 136328.333333333 & 22070.6666666667 \tabularnewline
82 & 46455 & 47075.4583333333 & -620.458333333336 \tabularnewline
83 & 73624 & 85273.7894736842 & -11649.7894736842 \tabularnewline
84 & 38395 & 47075.4583333333 & -8680.45833333334 \tabularnewline
85 & 91899 & 85273.7894736842 & 6625.21052631579 \tabularnewline
86 & 139526 & 102965.142857143 & 36560.8571428571 \tabularnewline
87 & 52164 & 47075.4583333333 & 5088.54166666666 \tabularnewline
88 & 51567 & 47075.4583333333 & 4491.54166666666 \tabularnewline
89 & 70551 & 85273.7894736842 & -14722.7894736842 \tabularnewline
90 & 84856 & 85273.7894736842 & -417.789473684214 \tabularnewline
91 & 102538 & 95794 & 6744 \tabularnewline
92 & 86678 & 65470.375 & 21207.625 \tabularnewline
93 & 85709 & 85273.7894736842 & 435.210526315786 \tabularnewline
94 & 34662 & 47075.4583333333 & -12413.4583333333 \tabularnewline
95 & 150580 & 136328.333333333 & 14251.6666666667 \tabularnewline
96 & 99611 & 85273.7894736842 & 14337.2105263158 \tabularnewline
97 & 19349 & 29168.2857142857 & -9819.28571428571 \tabularnewline
98 & 99373 & 102965.142857143 & -3592.14285714286 \tabularnewline
99 & 86230 & 95794 & -9564 \tabularnewline
100 & 30837 & 47075.4583333333 & -16238.4583333333 \tabularnewline
101 & 31706 & 47075.4583333333 & -15369.4583333333 \tabularnewline
102 & 89806 & 85273.7894736842 & 4532.21052631579 \tabularnewline
103 & 62088 & 47075.4583333333 & 15012.5416666667 \tabularnewline
104 & 40151 & 29168.2857142857 & 10982.7142857143 \tabularnewline
105 & 27634 & 47075.4583333333 & -19441.4583333333 \tabularnewline
106 & 76990 & 69575.3636363636 & 7414.63636363637 \tabularnewline
107 & 37460 & 29168.2857142857 & 8291.71428571429 \tabularnewline
108 & 54157 & 47075.4583333333 & 7081.54166666666 \tabularnewline
109 & 49862 & 69575.3636363636 & -19713.3636363636 \tabularnewline
110 & 84337 & 85273.7894736842 & -936.789473684214 \tabularnewline
111 & 64175 & 85273.7894736842 & -21098.7894736842 \tabularnewline
112 & 59382 & 47075.4583333333 & 12306.5416666667 \tabularnewline
113 & 119308 & 85273.7894736842 & 34034.2105263158 \tabularnewline
114 & 76702 & 85273.7894736842 & -8571.78947368421 \tabularnewline
115 & 103425 & 95794 & 7631 \tabularnewline
116 & 70344 & 69575.3636363636 & 768.636363636368 \tabularnewline
117 & 43410 & 65470.375 & -22060.375 \tabularnewline
118 & 104838 & 85273.7894736842 & 19564.2105263158 \tabularnewline
119 & 62215 & 47075.4583333333 & 15139.5416666667 \tabularnewline
120 & 69304 & 85273.7894736842 & -15969.7894736842 \tabularnewline
121 & 53117 & 47075.4583333333 & 6041.54166666666 \tabularnewline
122 & 19764 & 29168.2857142857 & -9404.28571428571 \tabularnewline
123 & 86680 & 85273.7894736842 & 1406.21052631579 \tabularnewline
124 & 84105 & 85273.7894736842 & -1168.78947368421 \tabularnewline
125 & 77945 & 85273.7894736842 & -7328.78947368421 \tabularnewline
126 & 89113 & 85273.7894736842 & 3839.21052631579 \tabularnewline
127 & 91005 & 95794 & -4789 \tabularnewline
128 & 40248 & 47075.4583333333 & -6827.45833333334 \tabularnewline
129 & 64187 & 65470.375 & -1283.375 \tabularnewline
130 & 50857 & 47075.4583333333 & 3781.54166666666 \tabularnewline
131 & 56613 & 47075.4583333333 & 9537.54166666666 \tabularnewline
132 & 62792 & 69575.3636363636 & -6783.36363636363 \tabularnewline
133 & 72535 & 85273.7894736842 & -12738.7894736842 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159529&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]101645[/C][C]102965.142857143[/C][C]-1320.14285714286[/C][/ROW]
[ROW][C]2[/C][C]101011[/C][C]85273.7894736842[/C][C]15737.2105263158[/C][/ROW]
[ROW][C]3[/C][C]7176[/C][C]29168.2857142857[/C][C]-21992.2857142857[/C][/ROW]
[ROW][C]4[/C][C]96560[/C][C]95794[/C][C]766[/C][/ROW]
[ROW][C]5[/C][C]175824[/C][C]176526.9[/C][C]-702.899999999994[/C][/ROW]
[ROW][C]6[/C][C]341570[/C][C]176526.9[/C][C]165043.1[/C][/ROW]
[ROW][C]7[/C][C]103597[/C][C]85273.7894736842[/C][C]18323.2105263158[/C][/ROW]
[ROW][C]8[/C][C]112611[/C][C]85273.7894736842[/C][C]27337.2105263158[/C][/ROW]
[ROW][C]9[/C][C]85574[/C][C]85273.7894736842[/C][C]300.210526315786[/C][/ROW]
[ROW][C]10[/C][C]220801[/C][C]176526.9[/C][C]44274.1[/C][/ROW]
[ROW][C]11[/C][C]92661[/C][C]95794[/C][C]-3133[/C][/ROW]
[ROW][C]12[/C][C]133328[/C][C]136328.333333333[/C][C]-3000.33333333334[/C][/ROW]
[ROW][C]13[/C][C]61361[/C][C]95794[/C][C]-34433[/C][/ROW]
[ROW][C]14[/C][C]125930[/C][C]176526.9[/C][C]-50596.9[/C][/ROW]
[ROW][C]15[/C][C]82316[/C][C]85273.7894736842[/C][C]-2957.78947368421[/C][/ROW]
[ROW][C]16[/C][C]102010[/C][C]102965.142857143[/C][C]-955.142857142855[/C][/ROW]
[ROW][C]17[/C][C]101523[/C][C]85273.7894736842[/C][C]16249.2105263158[/C][/ROW]
[ROW][C]18[/C][C]41566[/C][C]47075.4583333333[/C][C]-5509.45833333334[/C][/ROW]
[ROW][C]19[/C][C]99923[/C][C]176526.9[/C][C]-76603.9[/C][/ROW]
[ROW][C]20[/C][C]22648[/C][C]47075.4583333333[/C][C]-24427.4583333333[/C][/ROW]
[ROW][C]21[/C][C]46698[/C][C]65470.375[/C][C]-18772.375[/C][/ROW]
[ROW][C]22[/C][C]131698[/C][C]136328.333333333[/C][C]-4630.33333333334[/C][/ROW]
[ROW][C]23[/C][C]91735[/C][C]65470.375[/C][C]26264.625[/C][/ROW]
[ROW][C]24[/C][C]79863[/C][C]95794[/C][C]-15931[/C][/ROW]
[ROW][C]25[/C][C]108043[/C][C]95794[/C][C]12249[/C][/ROW]
[ROW][C]26[/C][C]98866[/C][C]85273.7894736842[/C][C]13592.2105263158[/C][/ROW]
[ROW][C]27[/C][C]120445[/C][C]136328.333333333[/C][C]-15883.3333333333[/C][/ROW]
[ROW][C]28[/C][C]116048[/C][C]69575.3636363636[/C][C]46472.6363636364[/C][/ROW]
[ROW][C]29[/C][C]250047[/C][C]176526.9[/C][C]73520.1[/C][/ROW]
[ROW][C]30[/C][C]136084[/C][C]176526.9[/C][C]-40442.9[/C][/ROW]
[ROW][C]31[/C][C]92499[/C][C]85273.7894736842[/C][C]7225.21052631579[/C][/ROW]
[ROW][C]32[/C][C]135781[/C][C]95794[/C][C]39987[/C][/ROW]
[ROW][C]33[/C][C]74408[/C][C]95794[/C][C]-21386[/C][/ROW]
[ROW][C]34[/C][C]81240[/C][C]95794[/C][C]-14554[/C][/ROW]
[ROW][C]35[/C][C]133368[/C][C]136328.333333333[/C][C]-2960.33333333334[/C][/ROW]
[ROW][C]36[/C][C]98146[/C][C]95794[/C][C]2352[/C][/ROW]
[ROW][C]37[/C][C]79619[/C][C]95794[/C][C]-16175[/C][/ROW]
[ROW][C]38[/C][C]59194[/C][C]65470.375[/C][C]-6276.375[/C][/ROW]
[ROW][C]39[/C][C]139942[/C][C]136328.333333333[/C][C]3613.66666666666[/C][/ROW]
[ROW][C]40[/C][C]118612[/C][C]95794[/C][C]22818[/C][/ROW]
[ROW][C]41[/C][C]72880[/C][C]65470.375[/C][C]7409.625[/C][/ROW]
[ROW][C]42[/C][C]65475[/C][C]47075.4583333333[/C][C]18399.5416666667[/C][/ROW]
[ROW][C]43[/C][C]99643[/C][C]95794[/C][C]3849[/C][/ROW]
[ROW][C]44[/C][C]71965[/C][C]85273.7894736842[/C][C]-13308.7894736842[/C][/ROW]
[ROW][C]45[/C][C]77272[/C][C]69575.3636363636[/C][C]7696.63636363637[/C][/ROW]
[ROW][C]46[/C][C]49289[/C][C]29168.2857142857[/C][C]20120.7142857143[/C][/ROW]
[ROW][C]47[/C][C]135131[/C][C]136328.333333333[/C][C]-1197.33333333334[/C][/ROW]
[ROW][C]48[/C][C]108446[/C][C]102965.142857143[/C][C]5480.85714285714[/C][/ROW]
[ROW][C]49[/C][C]89746[/C][C]95794[/C][C]-6048[/C][/ROW]
[ROW][C]50[/C][C]44296[/C][C]47075.4583333333[/C][C]-2779.45833333334[/C][/ROW]
[ROW][C]51[/C][C]77648[/C][C]85273.7894736842[/C][C]-7625.78947368421[/C][/ROW]
[ROW][C]52[/C][C]181528[/C][C]176526.9[/C][C]5001.10000000001[/C][/ROW]
[ROW][C]53[/C][C]134019[/C][C]95794[/C][C]38225[/C][/ROW]
[ROW][C]54[/C][C]124064[/C][C]136328.333333333[/C][C]-12264.3333333333[/C][/ROW]
[ROW][C]55[/C][C]92630[/C][C]85273.7894736842[/C][C]7356.21052631579[/C][/ROW]
[ROW][C]56[/C][C]121848[/C][C]85273.7894736842[/C][C]36574.2105263158[/C][/ROW]
[ROW][C]57[/C][C]52915[/C][C]69575.3636363636[/C][C]-16660.3636363636[/C][/ROW]
[ROW][C]58[/C][C]81872[/C][C]85273.7894736842[/C][C]-3401.78947368421[/C][/ROW]
[ROW][C]59[/C][C]58981[/C][C]65470.375[/C][C]-6489.375[/C][/ROW]
[ROW][C]60[/C][C]53515[/C][C]69575.3636363636[/C][C]-16060.3636363636[/C][/ROW]
[ROW][C]61[/C][C]60812[/C][C]85273.7894736842[/C][C]-24461.7894736842[/C][/ROW]
[ROW][C]62[/C][C]56375[/C][C]47075.4583333333[/C][C]9299.54166666666[/C][/ROW]
[ROW][C]63[/C][C]65490[/C][C]47075.4583333333[/C][C]18414.5416666667[/C][/ROW]
[ROW][C]64[/C][C]80949[/C][C]69575.3636363636[/C][C]11373.6363636364[/C][/ROW]
[ROW][C]65[/C][C]76302[/C][C]85273.7894736842[/C][C]-8971.78947368421[/C][/ROW]
[ROW][C]66[/C][C]104011[/C][C]102965.142857143[/C][C]1045.85714285714[/C][/ROW]
[ROW][C]67[/C][C]98104[/C][C]176526.9[/C][C]-78422.9[/C][/ROW]
[ROW][C]68[/C][C]67989[/C][C]69575.3636363636[/C][C]-1586.36363636363[/C][/ROW]
[ROW][C]69[/C][C]30989[/C][C]29168.2857142857[/C][C]1820.71428571429[/C][/ROW]
[ROW][C]70[/C][C]135458[/C][C]176526.9[/C][C]-41068.9[/C][/ROW]
[ROW][C]71[/C][C]73504[/C][C]85273.7894736842[/C][C]-11769.7894736842[/C][/ROW]
[ROW][C]72[/C][C]63123[/C][C]85273.7894736842[/C][C]-22150.7894736842[/C][/ROW]
[ROW][C]73[/C][C]61254[/C][C]85273.7894736842[/C][C]-24019.7894736842[/C][/ROW]
[ROW][C]74[/C][C]74914[/C][C]85273.7894736842[/C][C]-10359.7894736842[/C][/ROW]
[ROW][C]75[/C][C]31774[/C][C]47075.4583333333[/C][C]-15301.4583333333[/C][/ROW]
[ROW][C]76[/C][C]81437[/C][C]85273.7894736842[/C][C]-3836.78947368421[/C][/ROW]
[ROW][C]77[/C][C]87186[/C][C]95794[/C][C]-8608[/C][/ROW]
[ROW][C]78[/C][C]50090[/C][C]47075.4583333333[/C][C]3014.54166666666[/C][/ROW]
[ROW][C]79[/C][C]65745[/C][C]102965.142857143[/C][C]-37220.1428571429[/C][/ROW]
[ROW][C]80[/C][C]56653[/C][C]69575.3636363636[/C][C]-12922.3636363636[/C][/ROW]
[ROW][C]81[/C][C]158399[/C][C]136328.333333333[/C][C]22070.6666666667[/C][/ROW]
[ROW][C]82[/C][C]46455[/C][C]47075.4583333333[/C][C]-620.458333333336[/C][/ROW]
[ROW][C]83[/C][C]73624[/C][C]85273.7894736842[/C][C]-11649.7894736842[/C][/ROW]
[ROW][C]84[/C][C]38395[/C][C]47075.4583333333[/C][C]-8680.45833333334[/C][/ROW]
[ROW][C]85[/C][C]91899[/C][C]85273.7894736842[/C][C]6625.21052631579[/C][/ROW]
[ROW][C]86[/C][C]139526[/C][C]102965.142857143[/C][C]36560.8571428571[/C][/ROW]
[ROW][C]87[/C][C]52164[/C][C]47075.4583333333[/C][C]5088.54166666666[/C][/ROW]
[ROW][C]88[/C][C]51567[/C][C]47075.4583333333[/C][C]4491.54166666666[/C][/ROW]
[ROW][C]89[/C][C]70551[/C][C]85273.7894736842[/C][C]-14722.7894736842[/C][/ROW]
[ROW][C]90[/C][C]84856[/C][C]85273.7894736842[/C][C]-417.789473684214[/C][/ROW]
[ROW][C]91[/C][C]102538[/C][C]95794[/C][C]6744[/C][/ROW]
[ROW][C]92[/C][C]86678[/C][C]65470.375[/C][C]21207.625[/C][/ROW]
[ROW][C]93[/C][C]85709[/C][C]85273.7894736842[/C][C]435.210526315786[/C][/ROW]
[ROW][C]94[/C][C]34662[/C][C]47075.4583333333[/C][C]-12413.4583333333[/C][/ROW]
[ROW][C]95[/C][C]150580[/C][C]136328.333333333[/C][C]14251.6666666667[/C][/ROW]
[ROW][C]96[/C][C]99611[/C][C]85273.7894736842[/C][C]14337.2105263158[/C][/ROW]
[ROW][C]97[/C][C]19349[/C][C]29168.2857142857[/C][C]-9819.28571428571[/C][/ROW]
[ROW][C]98[/C][C]99373[/C][C]102965.142857143[/C][C]-3592.14285714286[/C][/ROW]
[ROW][C]99[/C][C]86230[/C][C]95794[/C][C]-9564[/C][/ROW]
[ROW][C]100[/C][C]30837[/C][C]47075.4583333333[/C][C]-16238.4583333333[/C][/ROW]
[ROW][C]101[/C][C]31706[/C][C]47075.4583333333[/C][C]-15369.4583333333[/C][/ROW]
[ROW][C]102[/C][C]89806[/C][C]85273.7894736842[/C][C]4532.21052631579[/C][/ROW]
[ROW][C]103[/C][C]62088[/C][C]47075.4583333333[/C][C]15012.5416666667[/C][/ROW]
[ROW][C]104[/C][C]40151[/C][C]29168.2857142857[/C][C]10982.7142857143[/C][/ROW]
[ROW][C]105[/C][C]27634[/C][C]47075.4583333333[/C][C]-19441.4583333333[/C][/ROW]
[ROW][C]106[/C][C]76990[/C][C]69575.3636363636[/C][C]7414.63636363637[/C][/ROW]
[ROW][C]107[/C][C]37460[/C][C]29168.2857142857[/C][C]8291.71428571429[/C][/ROW]
[ROW][C]108[/C][C]54157[/C][C]47075.4583333333[/C][C]7081.54166666666[/C][/ROW]
[ROW][C]109[/C][C]49862[/C][C]69575.3636363636[/C][C]-19713.3636363636[/C][/ROW]
[ROW][C]110[/C][C]84337[/C][C]85273.7894736842[/C][C]-936.789473684214[/C][/ROW]
[ROW][C]111[/C][C]64175[/C][C]85273.7894736842[/C][C]-21098.7894736842[/C][/ROW]
[ROW][C]112[/C][C]59382[/C][C]47075.4583333333[/C][C]12306.5416666667[/C][/ROW]
[ROW][C]113[/C][C]119308[/C][C]85273.7894736842[/C][C]34034.2105263158[/C][/ROW]
[ROW][C]114[/C][C]76702[/C][C]85273.7894736842[/C][C]-8571.78947368421[/C][/ROW]
[ROW][C]115[/C][C]103425[/C][C]95794[/C][C]7631[/C][/ROW]
[ROW][C]116[/C][C]70344[/C][C]69575.3636363636[/C][C]768.636363636368[/C][/ROW]
[ROW][C]117[/C][C]43410[/C][C]65470.375[/C][C]-22060.375[/C][/ROW]
[ROW][C]118[/C][C]104838[/C][C]85273.7894736842[/C][C]19564.2105263158[/C][/ROW]
[ROW][C]119[/C][C]62215[/C][C]47075.4583333333[/C][C]15139.5416666667[/C][/ROW]
[ROW][C]120[/C][C]69304[/C][C]85273.7894736842[/C][C]-15969.7894736842[/C][/ROW]
[ROW][C]121[/C][C]53117[/C][C]47075.4583333333[/C][C]6041.54166666666[/C][/ROW]
[ROW][C]122[/C][C]19764[/C][C]29168.2857142857[/C][C]-9404.28571428571[/C][/ROW]
[ROW][C]123[/C][C]86680[/C][C]85273.7894736842[/C][C]1406.21052631579[/C][/ROW]
[ROW][C]124[/C][C]84105[/C][C]85273.7894736842[/C][C]-1168.78947368421[/C][/ROW]
[ROW][C]125[/C][C]77945[/C][C]85273.7894736842[/C][C]-7328.78947368421[/C][/ROW]
[ROW][C]126[/C][C]89113[/C][C]85273.7894736842[/C][C]3839.21052631579[/C][/ROW]
[ROW][C]127[/C][C]91005[/C][C]95794[/C][C]-4789[/C][/ROW]
[ROW][C]128[/C][C]40248[/C][C]47075.4583333333[/C][C]-6827.45833333334[/C][/ROW]
[ROW][C]129[/C][C]64187[/C][C]65470.375[/C][C]-1283.375[/C][/ROW]
[ROW][C]130[/C][C]50857[/C][C]47075.4583333333[/C][C]3781.54166666666[/C][/ROW]
[ROW][C]131[/C][C]56613[/C][C]47075.4583333333[/C][C]9537.54166666666[/C][/ROW]
[ROW][C]132[/C][C]62792[/C][C]69575.3636363636[/C][C]-6783.36363636363[/C][/ROW]
[ROW][C]133[/C][C]72535[/C][C]85273.7894736842[/C][C]-12738.7894736842[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159529&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159529&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
1101645102965.142857143-1320.14285714286
210101185273.789473684215737.2105263158
3717629168.2857142857-21992.2857142857
49656095794766
5175824176526.9-702.899999999994
6341570176526.9165043.1
710359785273.789473684218323.2105263158
811261185273.789473684227337.2105263158
98557485273.7894736842300.210526315786
10220801176526.944274.1
119266195794-3133
12133328136328.333333333-3000.33333333334
136136195794-34433
14125930176526.9-50596.9
158231685273.7894736842-2957.78947368421
16102010102965.142857143-955.142857142855
1710152385273.789473684216249.2105263158
184156647075.4583333333-5509.45833333334
1999923176526.9-76603.9
202264847075.4583333333-24427.4583333333
214669865470.375-18772.375
22131698136328.333333333-4630.33333333334
239173565470.37526264.625
247986395794-15931
251080439579412249
269886685273.789473684213592.2105263158
27120445136328.333333333-15883.3333333333
2811604869575.363636363646472.6363636364
29250047176526.973520.1
30136084176526.9-40442.9
319249985273.78947368427225.21052631579
321357819579439987
337440895794-21386
348124095794-14554
35133368136328.333333333-2960.33333333334
3698146957942352
377961995794-16175
385919465470.375-6276.375
39139942136328.3333333333613.66666666666
401186129579422818
417288065470.3757409.625
426547547075.458333333318399.5416666667
4399643957943849
447196585273.7894736842-13308.7894736842
457727269575.36363636367696.63636363637
464928929168.285714285720120.7142857143
47135131136328.333333333-1197.33333333334
48108446102965.1428571435480.85714285714
498974695794-6048
504429647075.4583333333-2779.45833333334
517764885273.7894736842-7625.78947368421
52181528176526.95001.10000000001
531340199579438225
54124064136328.333333333-12264.3333333333
559263085273.78947368427356.21052631579
5612184885273.789473684236574.2105263158
575291569575.3636363636-16660.3636363636
588187285273.7894736842-3401.78947368421
595898165470.375-6489.375
605351569575.3636363636-16060.3636363636
616081285273.7894736842-24461.7894736842
625637547075.45833333339299.54166666666
636549047075.458333333318414.5416666667
648094969575.363636363611373.6363636364
657630285273.7894736842-8971.78947368421
66104011102965.1428571431045.85714285714
6798104176526.9-78422.9
686798969575.3636363636-1586.36363636363
693098929168.28571428571820.71428571429
70135458176526.9-41068.9
717350485273.7894736842-11769.7894736842
726312385273.7894736842-22150.7894736842
736125485273.7894736842-24019.7894736842
747491485273.7894736842-10359.7894736842
753177447075.4583333333-15301.4583333333
768143785273.7894736842-3836.78947368421
778718695794-8608
785009047075.45833333333014.54166666666
7965745102965.142857143-37220.1428571429
805665369575.3636363636-12922.3636363636
81158399136328.33333333322070.6666666667
824645547075.4583333333-620.458333333336
837362485273.7894736842-11649.7894736842
843839547075.4583333333-8680.45833333334
859189985273.78947368426625.21052631579
86139526102965.14285714336560.8571428571
875216447075.45833333335088.54166666666
885156747075.45833333334491.54166666666
897055185273.7894736842-14722.7894736842
908485685273.7894736842-417.789473684214
91102538957946744
928667865470.37521207.625
938570985273.7894736842435.210526315786
943466247075.4583333333-12413.4583333333
95150580136328.33333333314251.6666666667
969961185273.789473684214337.2105263158
971934929168.2857142857-9819.28571428571
9899373102965.142857143-3592.14285714286
998623095794-9564
1003083747075.4583333333-16238.4583333333
1013170647075.4583333333-15369.4583333333
1028980685273.78947368424532.21052631579
1036208847075.458333333315012.5416666667
1044015129168.285714285710982.7142857143
1052763447075.4583333333-19441.4583333333
1067699069575.36363636367414.63636363637
1073746029168.28571428578291.71428571429
1085415747075.45833333337081.54166666666
1094986269575.3636363636-19713.3636363636
1108433785273.7894736842-936.789473684214
1116417585273.7894736842-21098.7894736842
1125938247075.458333333312306.5416666667
11311930885273.789473684234034.2105263158
1147670285273.7894736842-8571.78947368421
115103425957947631
1167034469575.3636363636768.636363636368
1174341065470.375-22060.375
11810483885273.789473684219564.2105263158
1196221547075.458333333315139.5416666667
1206930485273.7894736842-15969.7894736842
1215311747075.45833333336041.54166666666
1221976429168.2857142857-9404.28571428571
1238668085273.78947368421406.21052631579
1248410585273.7894736842-1168.78947368421
1257794585273.7894736842-7328.78947368421
1268911385273.78947368423839.21052631579
1279100595794-4789
1284024847075.4583333333-6827.45833333334
1296418765470.375-1283.375
1305085747075.45833333333781.54166666666
1315661347075.45833333339537.54166666666
1326279269575.3636363636-6783.36363636363
1337253585273.7894736842-12738.7894736842



Parameters (Session):
Parameters (R input):
par1 = 1 ; par2 = none ; par3 = 3 ; par4 = no ;
R code (references can be found in the software module):
library(party)
library(Hmisc)
par1 <- as.numeric(par1)
par3 <- as.numeric(par3)
x <- data.frame(t(y))
is.data.frame(x)
x <- x[!is.na(x[,par1]),]
k <- length(x[1,])
n <- length(x[,1])
colnames(x)[par1]
x[,par1]
if (par2 == 'kmeans') {
cl <- kmeans(x[,par1], par3)
print(cl)
clm <- matrix(cbind(cl$centers,1:par3),ncol=2)
clm <- clm[sort.list(clm[,1]),]
for (i in 1:par3) {
cl$cluster[cl$cluster==clm[i,2]] <- paste('C',i,sep='')
}
cl$cluster <- as.factor(cl$cluster)
print(cl$cluster)
x[,par1] <- cl$cluster
}
if (par2 == 'quantiles') {
x[,par1] <- cut2(x[,par1],g=par3)
}
if (par2 == 'hclust') {
hc <- hclust(dist(x[,par1])^2, 'cen')
print(hc)
memb <- cutree(hc, k = par3)
dum <- c(mean(x[memb==1,par1]))
for (i in 2:par3) {
dum <- c(dum, mean(x[memb==i,par1]))
}
hcm <- matrix(cbind(dum,1:par3),ncol=2)
hcm <- hcm[sort.list(hcm[,1]),]
for (i in 1:par3) {
memb[memb==hcm[i,2]] <- paste('C',i,sep='')
}
memb <- as.factor(memb)
print(memb)
x[,par1] <- memb
}
if (par2=='equal') {
ed <- cut(as.numeric(x[,par1]),par3,labels=paste('C',1:par3,sep=''))
x[,par1] <- as.factor(ed)
}
table(x[,par1])
colnames(x)
colnames(x)[par1]
x[,par1]
if (par2 == 'none') {
m <- ctree(as.formula(paste(colnames(x)[par1],' ~ .',sep='')),data = x)
}
load(file='createtable')
if (par2 != 'none') {
m <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data = x)
if (par4=='yes') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'10-Fold Cross Validation',3+2*par3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
a<-table.element(a,'Prediction (training)',par3+1,TRUE)
a<-table.element(a,'Prediction (testing)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Actual',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
a<-table.row.end(a)
for (i in 1:10) {
ind <- sample(2, nrow(x), replace=T, prob=c(0.9,0.1))
m.ct <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data =x[ind==1,])
if (i==1) {
m.ct.i.pred <- predict(m.ct, newdata=x[ind==1,])
m.ct.i.actu <- x[ind==1,par1]
m.ct.x.pred <- predict(m.ct, newdata=x[ind==2,])
m.ct.x.actu <- x[ind==2,par1]
} else {
m.ct.i.pred <- c(m.ct.i.pred,predict(m.ct, newdata=x[ind==1,]))
m.ct.i.actu <- c(m.ct.i.actu,x[ind==1,par1])
m.ct.x.pred <- c(m.ct.x.pred,predict(m.ct, newdata=x[ind==2,]))
m.ct.x.actu <- c(m.ct.x.actu,x[ind==2,par1])
}
}
print(m.ct.i.tab <- table(m.ct.i.actu,m.ct.i.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.i.tab[i,i] / sum(m.ct.i.tab[i,]))
numer <- numer + m.ct.i.tab[i,i]
}
print(m.ct.i.cp <- numer / sum(m.ct.i.tab))
print(m.ct.x.tab <- table(m.ct.x.actu,m.ct.x.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.x.tab[i,i] / sum(m.ct.x.tab[i,]))
numer <- numer + m.ct.x.tab[i,i]
}
print(m.ct.x.cp <- numer / sum(m.ct.x.tab))
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (jjj in 1:par3) a<-table.element(a,m.ct.i.tab[i,jjj])
a<-table.element(a,round(m.ct.i.tab[i,i]/sum(m.ct.i.tab[i,]),4))
for (jjj in 1:par3) a<-table.element(a,m.ct.x.tab[i,jjj])
a<-table.element(a,round(m.ct.x.tab[i,i]/sum(m.ct.x.tab[i,]),4))
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a,'Overall',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.i.cp,4))
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.x.cp,4))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
}
}
m
bitmap(file='test1.png')
plot(m)
dev.off()
bitmap(file='test1a.png')
plot(x[,par1] ~ as.factor(where(m)),main='Response by Terminal Node',xlab='Terminal Node',ylab='Response')
dev.off()
if (par2 == 'none') {
forec <- predict(m)
result <- as.data.frame(cbind(x[,par1],forec,x[,par1]-forec))
colnames(result) <- c('Actuals','Forecasts','Residuals')
print(result)
}
if (par2 != 'none') {
print(cbind(as.factor(x[,par1]),predict(m)))
myt <- table(as.factor(x[,par1]),predict(m))
print(myt)
}
bitmap(file='test2.png')
if(par2=='none') {
op <- par(mfrow=c(2,2))
plot(density(result$Actuals),main='Kernel Density Plot of Actuals')
plot(density(result$Residuals),main='Kernel Density Plot of Residuals')
plot(result$Forecasts,result$Actuals,main='Actuals versus Predictions',xlab='Predictions',ylab='Actuals')
plot(density(result$Forecasts),main='Kernel Density Plot of Predictions')
par(op)
}
if(par2!='none') {
plot(myt,main='Confusion Matrix',xlab='Actual',ylab='Predicted')
}
dev.off()
if (par2 == 'none') {
detcoef <- cor(result$Forecasts,result$Actuals)
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goodness of Fit',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Correlation',1,TRUE)
a<-table.element(a,round(detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'R-squared',1,TRUE)
a<-table.element(a,round(detcoef*detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'RMSE',1,TRUE)
a<-table.element(a,round(sqrt(mean((result$Residuals)^2)),4))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Actuals, Predictions, and Residuals',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'#',header=TRUE)
a<-table.element(a,'Actuals',header=TRUE)
a<-table.element(a,'Forecasts',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(result$Actuals)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,result$Actuals[i])
a<-table.element(a,result$Forecasts[i])
a<-table.element(a,result$Residuals[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
}
if (par2 != 'none') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Confusion Matrix (predicted in columns / actuals in rows)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
for (i in 1:par3) {
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
}
a<-table.row.end(a)
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (j in 1:par3) {
a<-table.element(a,myt[i,j])
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
}