Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_regression_trees1.wasp
Title produced by softwareRecursive Partitioning (Regression Trees)
Date of computationFri, 23 Dec 2011 10:26:01 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/23/t1324654078zs9t9jt86zr1i7x.htm/, Retrieved Mon, 29 Apr 2024 23:11:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=160500, Retrieved Mon, 29 Apr 2024 23:11:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact167
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Kendall tau Correlation Matrix] [WS10] [2011-12-09 08:45:50] [09e53a95f5780167f20e6b4304200573]
-       [Kendall tau Correlation Matrix] [ws10] [2011-12-14 11:08:27] [36a3a57407ee290845630953d646934e]
- RMP     [Multiple Regression] [] [2011-12-14 12:44:04] [36a3a57407ee290845630953d646934e]
- RMPD        [Recursive Partitioning (Regression Trees)] [Regression trees:...] [2011-12-23 15:26:01] [7a9c06361804aa08030831b1a7a7bafa] [Current]
Feedback Forum

Post a new message
Dataseries X:
101645	63	20	38	17140	28
101011	34	30	39	27570	35
7176	17	0	0	1423	0
96560	76	42	38	22996	47
175824	107	57	77	39992	70
341570	168	94	78	117105	135
103597	43	27	49	23789	26
112611	41	46	73	26706	48
85574	34	37	36	24266	40
220801	75	51	63	44418	66
92661	61	40	41	35232	39
133328	55	56	56	40909	66
61361	77	27	25	13294	27
125930	75	37	65	32387	65
82316	32	27	38	21233	25
102010	53	28	44	44332	26
101523	42	59	87	61056	77
41566	35	0	27	13497	2
99923	66	44	80	32334	36
22648	19	12	28	44339	24
46698	45	14	33	10288	14
131698	65	60	59	65622	78
91735	35	7	49	16563	15
79863	37	29	49	29011	24
108043	62	45	38	34553	40
98866	18	25	39	23517	50
120445	118	36	56	51009	63
116048	64	50	50	33416	63
250047	81	41	61	83305	55
136084	30	27	41	27142	40
92499	32	25	55	21399	21
135781	31	45	44	24874	32
74408	67	29	21	34988	36
81240	66	58	50	45549	13
133368	36	37	57	32755	57
98146	40	15	48	27114	21
79619	43	42	32	20760	43
59194	31	7	68	37636	20
139942	42	54	87	65461	82
118612	46	54	43	30080	90
72880	33	14	67	24094	25
65475	18	16	46	69008	60
99643	55	33	46	54968	61
71965	35	32	56	46090	85
77272	59	21	48	27507	43
49289	19	15	44	10672	25
135131	66	38	60	34029	41
108446	60	22	65	46300	26
89746	36	28	55	24760	38
44296	25	10	38	18779	12
77648	47	31	52	21280	29
181528	54	32	60	40662	49
134019	53	32	54	28987	46
124064	40	43	86	22827	41
92630	40	27	24	18513	31
121848	39	37	52	30594	41
52915	14	20	49	24006	26
81872	45	32	61	27913	23
58981	36	0	61	42744	14
53515	28	5	81	12934	16
60812	44	26	43	22574	25
56375	30	10	40	41385	21
65490	22	27	40	18653	32
80949	17	11	56	18472	9
76302	31	29	68	30976	35
104011	55	25	79	63339	42
98104	54	55	47	25568	68
67989	21	23	57	33747	32
30989	14	5	41	4154	6
135458	81	43	29	19474	68
73504	35	23	3	35130	33
63123	43	34	60	39067	84
61254	46	36	30	13310	46
74914	30	35	79	65892	30
31774	23	0	47	4143	0
81437	38	37	40	28579	36
87186	54	28	48	51776	47
50090	20	16	36	21152	20
65745	53	26	42	38084	50
56653	45	38	49	27717	30
158399	39	23	57	32928	30
46455	20	22	12	11342	34
73624	24	30	40	19499	33
38395	31	16	43	16380	34
91899	35	18	33	36874	37
139526	151	28	77	48259	83
52164	52	32	43	16734	32
51567	30	21	45	28207	30
70551	31	23	47	30143	43
84856	29	29	43	41369	41
102538	57	50	45	45833	51
86678	40	12	50	29156	19
85709	44	21	35	35944	37
34662	25	18	7	36278	33
150580	77	27	71	45588	41
99611	35	41	67	45097	54
19349	11	13	0	3895	14
99373	63	12	62	28394	25
86230	44	21	54	18632	25
30837	19	8	4	2325	8
31706	13	26	25	25139	26
89806	42	27	40	27975	20
62088	38	13	38	14483	11
40151	29	16	19	13127	14
27634	20	2	17	5839	3
76990	27	42	67	24069	40
37460	20	5	14	3738	5
54157	19	37	30	18625	38
49862	37	17	54	36341	32
84337	26	38	35	24548	41
64175	42	37	59	21792	46
59382	49	29	24	26263	47
119308	30	32	58	23686	37
76702	49	35	42	49303	51
103425	67	17	46	25659	49
70344	28	20	61	28904	21
43410	19	7	3	2781	1
104838	49	46	52	29236	44
62215	27	24	25	19546	26
69304	30	40	40	22818	21
53117	22	3	32	32689	4
19764	12	10	4	5752	10
86680	31	37	49	22197	43
84105	20	17	63	20055	34
77945	20	28	67	25272	32
89113	39	19	32	82206	20
91005	29	29	23	32073	34
40248	16	8	7	5444	6
64187	27	10	54	20154	12
50857	21	15	37	36944	24
56613	19	15	35	8019	16
62792	35	28	51	30884	72
72535	14	17	39	19540	27




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gertrude Mary Cox' @ cox.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 & 4 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.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=160500&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]'Gertrude Mary Cox' @ cox.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=160500&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160500&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'Gertrude Mary Cox' @ cox.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.7411
R-squared0.5493
RMSE29455.9853

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.7411[/C][/ROW]
[ROW][C]R-squared[/C][C]0.5493[/C][/ROW]
[ROW][C]RMSE[/C][C]29455.9853[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=160500&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160500&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.7411
R-squared0.5493
RMSE29455.9853







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
110164588013.56451612913631.435483871
210101188013.56451612912997.435483871
3717630022.0909090909-22846.0909090909
496560165282-68722
517582416528210542
6341570165282176288
710359788013.56451612915583.435483871
8112611113886.2-1275.2
98557488013.564516129-2439.56451612903
1022080116528255519
119266188013.5645161294647.43548387097
12133328113886.219441.8
1361361165282-103921
14125930165282-39352
158231688013.564516129-5697.56451612903
1610201088013.56451612913996.435483871
17101523113886.2-12363.2
184156630022.090909090911543.9090909091
1999923113886.2-13963.2
202264830022.0909090909-7374.09090909091
214669848927.3846153846-2229.38461538462
22131698113886.217811.8
239173576563.815171.2
247986388013.564516129-8150.56451612903
25108043113886.2-5843.2
269886688013.56451612910852.435483871
27120445165282-44837
28116048113886.22161.8
2925004716528284765
3013608488013.56451612948070.435483871
319249988013.5645161294485.43548387097
32135781113886.221894.8
337440861943.454545454512464.5454545455
3481240113886.2-32646.2
3513336888013.56451612945354.435483871
369814676563.821582.2
377961988013.564516129-8394.56451612903
385919476563.8-17369.8
39139942113886.226055.8
40118612113886.24725.8
417288076563.8-3683.8
426547548927.384615384616547.6153846154
439964388013.56451612911629.435483871
447196588013.564516129-16048.564516129
457727288013.564516129-10741.564516129
464928948927.3846153846361.615384615383
4713513188013.56451612947117.435483871
4810844688013.56451612920432.435483871
498974688013.5645161291732.43548387097
504429648927.3846153846-4631.38461538462
517764888013.564516129-10365.564516129
5218152888013.56451612993514.435483871
5313401988013.56451612946005.435483871
54124064113886.210177.8
559263061943.454545454530686.5454545455
5612184888013.56451612933834.435483871
575291588013.564516129-35098.564516129
588187288013.564516129-6141.56451612903
595898176563.8-17582.8
605351576563.8-23048.8
616081288013.564516129-27201.564516129
625637548927.38461538467447.61538461538
636549088013.564516129-22523.564516129
648094976563.84385.2
657630288013.564516129-11711.564516129
6610401188013.56451612915997.435483871
6798104113886.2-15782.2
686798988013.564516129-20024.564516129
693098948927.3846153846-17938.3846153846
70135458165282-29824
717350461943.454545454511560.5454545455
726312388013.564516129-24890.564516129
736125461943.4545454545-689.454545454544
747491488013.564516129-13099.564516129
753177448927.3846153846-17153.3846153846
768143788013.564516129-6576.56451612903
778718688013.564516129-827.56451612903
785009048927.38461538461162.61538461538
796574588013.564516129-22268.564516129
805665388013.564516129-31360.564516129
8115839988013.56451612970385.435483871
824645561943.4545454545-15488.4545454545
837362488013.564516129-14389.564516129
843839548927.3846153846-10532.3846153846
859189988013.5645161293885.43548387097
86139526165282-25756
875216488013.564516129-35849.564516129
885156788013.564516129-36446.564516129
897055188013.564516129-17462.564516129
908485688013.564516129-3157.56451612903
91102538113886.2-11348.2
928667876563.810114.2
938570988013.564516129-2304.56451612903
943466261943.4545454545-27281.4545454545
95150580165282-14702
969961188013.56451612911597.435483871
971934930022.0909090909-10673.0909090909
989937376563.822809.2
998623088013.564516129-1783.56451612903
1003083730022.0909090909814.909090909092
1013170661943.4545454545-30237.4545454545
1028980688013.5645161291792.43548387097
1036208848927.384615384613160.6153846154
1044015130022.090909090910128.9090909091
1052763430022.0909090909-2388.09090909091
1067699088013.564516129-11023.564516129
1073746030022.09090909097437.90909090909
1085415761943.4545454545-7786.45454545454
1094986288013.564516129-38151.564516129
1108433788013.564516129-3676.56451612903
1116417588013.564516129-23838.564516129
1125938261943.4545454545-2561.45454545454
11311930888013.56451612931294.435483871
1147670288013.564516129-11311.564516129
11510342588013.56451612915411.435483871
1167034488013.564516129-17669.564516129
1174341030022.090909090913387.9090909091
118104838113886.2-9048.2
1196221561943.4545454545271.545454545456
1206930488013.564516129-18709.564516129
1215311748927.38461538464189.61538461538
1221976430022.0909090909-10258.0909090909
1238668088013.564516129-1333.56451612903
1248410588013.564516129-3908.56451612903
1257794588013.564516129-10068.564516129
1268911388013.5645161291099.43548387097
1279100561943.454545454529061.5454545455
1284024830022.090909090910225.9090909091
1296418776563.8-12376.8
1305085748927.38461538461929.61538461538
1315661348927.38461538467685.61538461538
1326279288013.564516129-25221.564516129
1337253588013.564516129-15478.564516129

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 101645 & 88013.564516129 & 13631.435483871 \tabularnewline
2 & 101011 & 88013.564516129 & 12997.435483871 \tabularnewline
3 & 7176 & 30022.0909090909 & -22846.0909090909 \tabularnewline
4 & 96560 & 165282 & -68722 \tabularnewline
5 & 175824 & 165282 & 10542 \tabularnewline
6 & 341570 & 165282 & 176288 \tabularnewline
7 & 103597 & 88013.564516129 & 15583.435483871 \tabularnewline
8 & 112611 & 113886.2 & -1275.2 \tabularnewline
9 & 85574 & 88013.564516129 & -2439.56451612903 \tabularnewline
10 & 220801 & 165282 & 55519 \tabularnewline
11 & 92661 & 88013.564516129 & 4647.43548387097 \tabularnewline
12 & 133328 & 113886.2 & 19441.8 \tabularnewline
13 & 61361 & 165282 & -103921 \tabularnewline
14 & 125930 & 165282 & -39352 \tabularnewline
15 & 82316 & 88013.564516129 & -5697.56451612903 \tabularnewline
16 & 102010 & 88013.564516129 & 13996.435483871 \tabularnewline
17 & 101523 & 113886.2 & -12363.2 \tabularnewline
18 & 41566 & 30022.0909090909 & 11543.9090909091 \tabularnewline
19 & 99923 & 113886.2 & -13963.2 \tabularnewline
20 & 22648 & 30022.0909090909 & -7374.09090909091 \tabularnewline
21 & 46698 & 48927.3846153846 & -2229.38461538462 \tabularnewline
22 & 131698 & 113886.2 & 17811.8 \tabularnewline
23 & 91735 & 76563.8 & 15171.2 \tabularnewline
24 & 79863 & 88013.564516129 & -8150.56451612903 \tabularnewline
25 & 108043 & 113886.2 & -5843.2 \tabularnewline
26 & 98866 & 88013.564516129 & 10852.435483871 \tabularnewline
27 & 120445 & 165282 & -44837 \tabularnewline
28 & 116048 & 113886.2 & 2161.8 \tabularnewline
29 & 250047 & 165282 & 84765 \tabularnewline
30 & 136084 & 88013.564516129 & 48070.435483871 \tabularnewline
31 & 92499 & 88013.564516129 & 4485.43548387097 \tabularnewline
32 & 135781 & 113886.2 & 21894.8 \tabularnewline
33 & 74408 & 61943.4545454545 & 12464.5454545455 \tabularnewline
34 & 81240 & 113886.2 & -32646.2 \tabularnewline
35 & 133368 & 88013.564516129 & 45354.435483871 \tabularnewline
36 & 98146 & 76563.8 & 21582.2 \tabularnewline
37 & 79619 & 88013.564516129 & -8394.56451612903 \tabularnewline
38 & 59194 & 76563.8 & -17369.8 \tabularnewline
39 & 139942 & 113886.2 & 26055.8 \tabularnewline
40 & 118612 & 113886.2 & 4725.8 \tabularnewline
41 & 72880 & 76563.8 & -3683.8 \tabularnewline
42 & 65475 & 48927.3846153846 & 16547.6153846154 \tabularnewline
43 & 99643 & 88013.564516129 & 11629.435483871 \tabularnewline
44 & 71965 & 88013.564516129 & -16048.564516129 \tabularnewline
45 & 77272 & 88013.564516129 & -10741.564516129 \tabularnewline
46 & 49289 & 48927.3846153846 & 361.615384615383 \tabularnewline
47 & 135131 & 88013.564516129 & 47117.435483871 \tabularnewline
48 & 108446 & 88013.564516129 & 20432.435483871 \tabularnewline
49 & 89746 & 88013.564516129 & 1732.43548387097 \tabularnewline
50 & 44296 & 48927.3846153846 & -4631.38461538462 \tabularnewline
51 & 77648 & 88013.564516129 & -10365.564516129 \tabularnewline
52 & 181528 & 88013.564516129 & 93514.435483871 \tabularnewline
53 & 134019 & 88013.564516129 & 46005.435483871 \tabularnewline
54 & 124064 & 113886.2 & 10177.8 \tabularnewline
55 & 92630 & 61943.4545454545 & 30686.5454545455 \tabularnewline
56 & 121848 & 88013.564516129 & 33834.435483871 \tabularnewline
57 & 52915 & 88013.564516129 & -35098.564516129 \tabularnewline
58 & 81872 & 88013.564516129 & -6141.56451612903 \tabularnewline
59 & 58981 & 76563.8 & -17582.8 \tabularnewline
60 & 53515 & 76563.8 & -23048.8 \tabularnewline
61 & 60812 & 88013.564516129 & -27201.564516129 \tabularnewline
62 & 56375 & 48927.3846153846 & 7447.61538461538 \tabularnewline
63 & 65490 & 88013.564516129 & -22523.564516129 \tabularnewline
64 & 80949 & 76563.8 & 4385.2 \tabularnewline
65 & 76302 & 88013.564516129 & -11711.564516129 \tabularnewline
66 & 104011 & 88013.564516129 & 15997.435483871 \tabularnewline
67 & 98104 & 113886.2 & -15782.2 \tabularnewline
68 & 67989 & 88013.564516129 & -20024.564516129 \tabularnewline
69 & 30989 & 48927.3846153846 & -17938.3846153846 \tabularnewline
70 & 135458 & 165282 & -29824 \tabularnewline
71 & 73504 & 61943.4545454545 & 11560.5454545455 \tabularnewline
72 & 63123 & 88013.564516129 & -24890.564516129 \tabularnewline
73 & 61254 & 61943.4545454545 & -689.454545454544 \tabularnewline
74 & 74914 & 88013.564516129 & -13099.564516129 \tabularnewline
75 & 31774 & 48927.3846153846 & -17153.3846153846 \tabularnewline
76 & 81437 & 88013.564516129 & -6576.56451612903 \tabularnewline
77 & 87186 & 88013.564516129 & -827.56451612903 \tabularnewline
78 & 50090 & 48927.3846153846 & 1162.61538461538 \tabularnewline
79 & 65745 & 88013.564516129 & -22268.564516129 \tabularnewline
80 & 56653 & 88013.564516129 & -31360.564516129 \tabularnewline
81 & 158399 & 88013.564516129 & 70385.435483871 \tabularnewline
82 & 46455 & 61943.4545454545 & -15488.4545454545 \tabularnewline
83 & 73624 & 88013.564516129 & -14389.564516129 \tabularnewline
84 & 38395 & 48927.3846153846 & -10532.3846153846 \tabularnewline
85 & 91899 & 88013.564516129 & 3885.43548387097 \tabularnewline
86 & 139526 & 165282 & -25756 \tabularnewline
87 & 52164 & 88013.564516129 & -35849.564516129 \tabularnewline
88 & 51567 & 88013.564516129 & -36446.564516129 \tabularnewline
89 & 70551 & 88013.564516129 & -17462.564516129 \tabularnewline
90 & 84856 & 88013.564516129 & -3157.56451612903 \tabularnewline
91 & 102538 & 113886.2 & -11348.2 \tabularnewline
92 & 86678 & 76563.8 & 10114.2 \tabularnewline
93 & 85709 & 88013.564516129 & -2304.56451612903 \tabularnewline
94 & 34662 & 61943.4545454545 & -27281.4545454545 \tabularnewline
95 & 150580 & 165282 & -14702 \tabularnewline
96 & 99611 & 88013.564516129 & 11597.435483871 \tabularnewline
97 & 19349 & 30022.0909090909 & -10673.0909090909 \tabularnewline
98 & 99373 & 76563.8 & 22809.2 \tabularnewline
99 & 86230 & 88013.564516129 & -1783.56451612903 \tabularnewline
100 & 30837 & 30022.0909090909 & 814.909090909092 \tabularnewline
101 & 31706 & 61943.4545454545 & -30237.4545454545 \tabularnewline
102 & 89806 & 88013.564516129 & 1792.43548387097 \tabularnewline
103 & 62088 & 48927.3846153846 & 13160.6153846154 \tabularnewline
104 & 40151 & 30022.0909090909 & 10128.9090909091 \tabularnewline
105 & 27634 & 30022.0909090909 & -2388.09090909091 \tabularnewline
106 & 76990 & 88013.564516129 & -11023.564516129 \tabularnewline
107 & 37460 & 30022.0909090909 & 7437.90909090909 \tabularnewline
108 & 54157 & 61943.4545454545 & -7786.45454545454 \tabularnewline
109 & 49862 & 88013.564516129 & -38151.564516129 \tabularnewline
110 & 84337 & 88013.564516129 & -3676.56451612903 \tabularnewline
111 & 64175 & 88013.564516129 & -23838.564516129 \tabularnewline
112 & 59382 & 61943.4545454545 & -2561.45454545454 \tabularnewline
113 & 119308 & 88013.564516129 & 31294.435483871 \tabularnewline
114 & 76702 & 88013.564516129 & -11311.564516129 \tabularnewline
115 & 103425 & 88013.564516129 & 15411.435483871 \tabularnewline
116 & 70344 & 88013.564516129 & -17669.564516129 \tabularnewline
117 & 43410 & 30022.0909090909 & 13387.9090909091 \tabularnewline
118 & 104838 & 113886.2 & -9048.2 \tabularnewline
119 & 62215 & 61943.4545454545 & 271.545454545456 \tabularnewline
120 & 69304 & 88013.564516129 & -18709.564516129 \tabularnewline
121 & 53117 & 48927.3846153846 & 4189.61538461538 \tabularnewline
122 & 19764 & 30022.0909090909 & -10258.0909090909 \tabularnewline
123 & 86680 & 88013.564516129 & -1333.56451612903 \tabularnewline
124 & 84105 & 88013.564516129 & -3908.56451612903 \tabularnewline
125 & 77945 & 88013.564516129 & -10068.564516129 \tabularnewline
126 & 89113 & 88013.564516129 & 1099.43548387097 \tabularnewline
127 & 91005 & 61943.4545454545 & 29061.5454545455 \tabularnewline
128 & 40248 & 30022.0909090909 & 10225.9090909091 \tabularnewline
129 & 64187 & 76563.8 & -12376.8 \tabularnewline
130 & 50857 & 48927.3846153846 & 1929.61538461538 \tabularnewline
131 & 56613 & 48927.3846153846 & 7685.61538461538 \tabularnewline
132 & 62792 & 88013.564516129 & -25221.564516129 \tabularnewline
133 & 72535 & 88013.564516129 & -15478.564516129 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=160500&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]88013.564516129[/C][C]13631.435483871[/C][/ROW]
[ROW][C]2[/C][C]101011[/C][C]88013.564516129[/C][C]12997.435483871[/C][/ROW]
[ROW][C]3[/C][C]7176[/C][C]30022.0909090909[/C][C]-22846.0909090909[/C][/ROW]
[ROW][C]4[/C][C]96560[/C][C]165282[/C][C]-68722[/C][/ROW]
[ROW][C]5[/C][C]175824[/C][C]165282[/C][C]10542[/C][/ROW]
[ROW][C]6[/C][C]341570[/C][C]165282[/C][C]176288[/C][/ROW]
[ROW][C]7[/C][C]103597[/C][C]88013.564516129[/C][C]15583.435483871[/C][/ROW]
[ROW][C]8[/C][C]112611[/C][C]113886.2[/C][C]-1275.2[/C][/ROW]
[ROW][C]9[/C][C]85574[/C][C]88013.564516129[/C][C]-2439.56451612903[/C][/ROW]
[ROW][C]10[/C][C]220801[/C][C]165282[/C][C]55519[/C][/ROW]
[ROW][C]11[/C][C]92661[/C][C]88013.564516129[/C][C]4647.43548387097[/C][/ROW]
[ROW][C]12[/C][C]133328[/C][C]113886.2[/C][C]19441.8[/C][/ROW]
[ROW][C]13[/C][C]61361[/C][C]165282[/C][C]-103921[/C][/ROW]
[ROW][C]14[/C][C]125930[/C][C]165282[/C][C]-39352[/C][/ROW]
[ROW][C]15[/C][C]82316[/C][C]88013.564516129[/C][C]-5697.56451612903[/C][/ROW]
[ROW][C]16[/C][C]102010[/C][C]88013.564516129[/C][C]13996.435483871[/C][/ROW]
[ROW][C]17[/C][C]101523[/C][C]113886.2[/C][C]-12363.2[/C][/ROW]
[ROW][C]18[/C][C]41566[/C][C]30022.0909090909[/C][C]11543.9090909091[/C][/ROW]
[ROW][C]19[/C][C]99923[/C][C]113886.2[/C][C]-13963.2[/C][/ROW]
[ROW][C]20[/C][C]22648[/C][C]30022.0909090909[/C][C]-7374.09090909091[/C][/ROW]
[ROW][C]21[/C][C]46698[/C][C]48927.3846153846[/C][C]-2229.38461538462[/C][/ROW]
[ROW][C]22[/C][C]131698[/C][C]113886.2[/C][C]17811.8[/C][/ROW]
[ROW][C]23[/C][C]91735[/C][C]76563.8[/C][C]15171.2[/C][/ROW]
[ROW][C]24[/C][C]79863[/C][C]88013.564516129[/C][C]-8150.56451612903[/C][/ROW]
[ROW][C]25[/C][C]108043[/C][C]113886.2[/C][C]-5843.2[/C][/ROW]
[ROW][C]26[/C][C]98866[/C][C]88013.564516129[/C][C]10852.435483871[/C][/ROW]
[ROW][C]27[/C][C]120445[/C][C]165282[/C][C]-44837[/C][/ROW]
[ROW][C]28[/C][C]116048[/C][C]113886.2[/C][C]2161.8[/C][/ROW]
[ROW][C]29[/C][C]250047[/C][C]165282[/C][C]84765[/C][/ROW]
[ROW][C]30[/C][C]136084[/C][C]88013.564516129[/C][C]48070.435483871[/C][/ROW]
[ROW][C]31[/C][C]92499[/C][C]88013.564516129[/C][C]4485.43548387097[/C][/ROW]
[ROW][C]32[/C][C]135781[/C][C]113886.2[/C][C]21894.8[/C][/ROW]
[ROW][C]33[/C][C]74408[/C][C]61943.4545454545[/C][C]12464.5454545455[/C][/ROW]
[ROW][C]34[/C][C]81240[/C][C]113886.2[/C][C]-32646.2[/C][/ROW]
[ROW][C]35[/C][C]133368[/C][C]88013.564516129[/C][C]45354.435483871[/C][/ROW]
[ROW][C]36[/C][C]98146[/C][C]76563.8[/C][C]21582.2[/C][/ROW]
[ROW][C]37[/C][C]79619[/C][C]88013.564516129[/C][C]-8394.56451612903[/C][/ROW]
[ROW][C]38[/C][C]59194[/C][C]76563.8[/C][C]-17369.8[/C][/ROW]
[ROW][C]39[/C][C]139942[/C][C]113886.2[/C][C]26055.8[/C][/ROW]
[ROW][C]40[/C][C]118612[/C][C]113886.2[/C][C]4725.8[/C][/ROW]
[ROW][C]41[/C][C]72880[/C][C]76563.8[/C][C]-3683.8[/C][/ROW]
[ROW][C]42[/C][C]65475[/C][C]48927.3846153846[/C][C]16547.6153846154[/C][/ROW]
[ROW][C]43[/C][C]99643[/C][C]88013.564516129[/C][C]11629.435483871[/C][/ROW]
[ROW][C]44[/C][C]71965[/C][C]88013.564516129[/C][C]-16048.564516129[/C][/ROW]
[ROW][C]45[/C][C]77272[/C][C]88013.564516129[/C][C]-10741.564516129[/C][/ROW]
[ROW][C]46[/C][C]49289[/C][C]48927.3846153846[/C][C]361.615384615383[/C][/ROW]
[ROW][C]47[/C][C]135131[/C][C]88013.564516129[/C][C]47117.435483871[/C][/ROW]
[ROW][C]48[/C][C]108446[/C][C]88013.564516129[/C][C]20432.435483871[/C][/ROW]
[ROW][C]49[/C][C]89746[/C][C]88013.564516129[/C][C]1732.43548387097[/C][/ROW]
[ROW][C]50[/C][C]44296[/C][C]48927.3846153846[/C][C]-4631.38461538462[/C][/ROW]
[ROW][C]51[/C][C]77648[/C][C]88013.564516129[/C][C]-10365.564516129[/C][/ROW]
[ROW][C]52[/C][C]181528[/C][C]88013.564516129[/C][C]93514.435483871[/C][/ROW]
[ROW][C]53[/C][C]134019[/C][C]88013.564516129[/C][C]46005.435483871[/C][/ROW]
[ROW][C]54[/C][C]124064[/C][C]113886.2[/C][C]10177.8[/C][/ROW]
[ROW][C]55[/C][C]92630[/C][C]61943.4545454545[/C][C]30686.5454545455[/C][/ROW]
[ROW][C]56[/C][C]121848[/C][C]88013.564516129[/C][C]33834.435483871[/C][/ROW]
[ROW][C]57[/C][C]52915[/C][C]88013.564516129[/C][C]-35098.564516129[/C][/ROW]
[ROW][C]58[/C][C]81872[/C][C]88013.564516129[/C][C]-6141.56451612903[/C][/ROW]
[ROW][C]59[/C][C]58981[/C][C]76563.8[/C][C]-17582.8[/C][/ROW]
[ROW][C]60[/C][C]53515[/C][C]76563.8[/C][C]-23048.8[/C][/ROW]
[ROW][C]61[/C][C]60812[/C][C]88013.564516129[/C][C]-27201.564516129[/C][/ROW]
[ROW][C]62[/C][C]56375[/C][C]48927.3846153846[/C][C]7447.61538461538[/C][/ROW]
[ROW][C]63[/C][C]65490[/C][C]88013.564516129[/C][C]-22523.564516129[/C][/ROW]
[ROW][C]64[/C][C]80949[/C][C]76563.8[/C][C]4385.2[/C][/ROW]
[ROW][C]65[/C][C]76302[/C][C]88013.564516129[/C][C]-11711.564516129[/C][/ROW]
[ROW][C]66[/C][C]104011[/C][C]88013.564516129[/C][C]15997.435483871[/C][/ROW]
[ROW][C]67[/C][C]98104[/C][C]113886.2[/C][C]-15782.2[/C][/ROW]
[ROW][C]68[/C][C]67989[/C][C]88013.564516129[/C][C]-20024.564516129[/C][/ROW]
[ROW][C]69[/C][C]30989[/C][C]48927.3846153846[/C][C]-17938.3846153846[/C][/ROW]
[ROW][C]70[/C][C]135458[/C][C]165282[/C][C]-29824[/C][/ROW]
[ROW][C]71[/C][C]73504[/C][C]61943.4545454545[/C][C]11560.5454545455[/C][/ROW]
[ROW][C]72[/C][C]63123[/C][C]88013.564516129[/C][C]-24890.564516129[/C][/ROW]
[ROW][C]73[/C][C]61254[/C][C]61943.4545454545[/C][C]-689.454545454544[/C][/ROW]
[ROW][C]74[/C][C]74914[/C][C]88013.564516129[/C][C]-13099.564516129[/C][/ROW]
[ROW][C]75[/C][C]31774[/C][C]48927.3846153846[/C][C]-17153.3846153846[/C][/ROW]
[ROW][C]76[/C][C]81437[/C][C]88013.564516129[/C][C]-6576.56451612903[/C][/ROW]
[ROW][C]77[/C][C]87186[/C][C]88013.564516129[/C][C]-827.56451612903[/C][/ROW]
[ROW][C]78[/C][C]50090[/C][C]48927.3846153846[/C][C]1162.61538461538[/C][/ROW]
[ROW][C]79[/C][C]65745[/C][C]88013.564516129[/C][C]-22268.564516129[/C][/ROW]
[ROW][C]80[/C][C]56653[/C][C]88013.564516129[/C][C]-31360.564516129[/C][/ROW]
[ROW][C]81[/C][C]158399[/C][C]88013.564516129[/C][C]70385.435483871[/C][/ROW]
[ROW][C]82[/C][C]46455[/C][C]61943.4545454545[/C][C]-15488.4545454545[/C][/ROW]
[ROW][C]83[/C][C]73624[/C][C]88013.564516129[/C][C]-14389.564516129[/C][/ROW]
[ROW][C]84[/C][C]38395[/C][C]48927.3846153846[/C][C]-10532.3846153846[/C][/ROW]
[ROW][C]85[/C][C]91899[/C][C]88013.564516129[/C][C]3885.43548387097[/C][/ROW]
[ROW][C]86[/C][C]139526[/C][C]165282[/C][C]-25756[/C][/ROW]
[ROW][C]87[/C][C]52164[/C][C]88013.564516129[/C][C]-35849.564516129[/C][/ROW]
[ROW][C]88[/C][C]51567[/C][C]88013.564516129[/C][C]-36446.564516129[/C][/ROW]
[ROW][C]89[/C][C]70551[/C][C]88013.564516129[/C][C]-17462.564516129[/C][/ROW]
[ROW][C]90[/C][C]84856[/C][C]88013.564516129[/C][C]-3157.56451612903[/C][/ROW]
[ROW][C]91[/C][C]102538[/C][C]113886.2[/C][C]-11348.2[/C][/ROW]
[ROW][C]92[/C][C]86678[/C][C]76563.8[/C][C]10114.2[/C][/ROW]
[ROW][C]93[/C][C]85709[/C][C]88013.564516129[/C][C]-2304.56451612903[/C][/ROW]
[ROW][C]94[/C][C]34662[/C][C]61943.4545454545[/C][C]-27281.4545454545[/C][/ROW]
[ROW][C]95[/C][C]150580[/C][C]165282[/C][C]-14702[/C][/ROW]
[ROW][C]96[/C][C]99611[/C][C]88013.564516129[/C][C]11597.435483871[/C][/ROW]
[ROW][C]97[/C][C]19349[/C][C]30022.0909090909[/C][C]-10673.0909090909[/C][/ROW]
[ROW][C]98[/C][C]99373[/C][C]76563.8[/C][C]22809.2[/C][/ROW]
[ROW][C]99[/C][C]86230[/C][C]88013.564516129[/C][C]-1783.56451612903[/C][/ROW]
[ROW][C]100[/C][C]30837[/C][C]30022.0909090909[/C][C]814.909090909092[/C][/ROW]
[ROW][C]101[/C][C]31706[/C][C]61943.4545454545[/C][C]-30237.4545454545[/C][/ROW]
[ROW][C]102[/C][C]89806[/C][C]88013.564516129[/C][C]1792.43548387097[/C][/ROW]
[ROW][C]103[/C][C]62088[/C][C]48927.3846153846[/C][C]13160.6153846154[/C][/ROW]
[ROW][C]104[/C][C]40151[/C][C]30022.0909090909[/C][C]10128.9090909091[/C][/ROW]
[ROW][C]105[/C][C]27634[/C][C]30022.0909090909[/C][C]-2388.09090909091[/C][/ROW]
[ROW][C]106[/C][C]76990[/C][C]88013.564516129[/C][C]-11023.564516129[/C][/ROW]
[ROW][C]107[/C][C]37460[/C][C]30022.0909090909[/C][C]7437.90909090909[/C][/ROW]
[ROW][C]108[/C][C]54157[/C][C]61943.4545454545[/C][C]-7786.45454545454[/C][/ROW]
[ROW][C]109[/C][C]49862[/C][C]88013.564516129[/C][C]-38151.564516129[/C][/ROW]
[ROW][C]110[/C][C]84337[/C][C]88013.564516129[/C][C]-3676.56451612903[/C][/ROW]
[ROW][C]111[/C][C]64175[/C][C]88013.564516129[/C][C]-23838.564516129[/C][/ROW]
[ROW][C]112[/C][C]59382[/C][C]61943.4545454545[/C][C]-2561.45454545454[/C][/ROW]
[ROW][C]113[/C][C]119308[/C][C]88013.564516129[/C][C]31294.435483871[/C][/ROW]
[ROW][C]114[/C][C]76702[/C][C]88013.564516129[/C][C]-11311.564516129[/C][/ROW]
[ROW][C]115[/C][C]103425[/C][C]88013.564516129[/C][C]15411.435483871[/C][/ROW]
[ROW][C]116[/C][C]70344[/C][C]88013.564516129[/C][C]-17669.564516129[/C][/ROW]
[ROW][C]117[/C][C]43410[/C][C]30022.0909090909[/C][C]13387.9090909091[/C][/ROW]
[ROW][C]118[/C][C]104838[/C][C]113886.2[/C][C]-9048.2[/C][/ROW]
[ROW][C]119[/C][C]62215[/C][C]61943.4545454545[/C][C]271.545454545456[/C][/ROW]
[ROW][C]120[/C][C]69304[/C][C]88013.564516129[/C][C]-18709.564516129[/C][/ROW]
[ROW][C]121[/C][C]53117[/C][C]48927.3846153846[/C][C]4189.61538461538[/C][/ROW]
[ROW][C]122[/C][C]19764[/C][C]30022.0909090909[/C][C]-10258.0909090909[/C][/ROW]
[ROW][C]123[/C][C]86680[/C][C]88013.564516129[/C][C]-1333.56451612903[/C][/ROW]
[ROW][C]124[/C][C]84105[/C][C]88013.564516129[/C][C]-3908.56451612903[/C][/ROW]
[ROW][C]125[/C][C]77945[/C][C]88013.564516129[/C][C]-10068.564516129[/C][/ROW]
[ROW][C]126[/C][C]89113[/C][C]88013.564516129[/C][C]1099.43548387097[/C][/ROW]
[ROW][C]127[/C][C]91005[/C][C]61943.4545454545[/C][C]29061.5454545455[/C][/ROW]
[ROW][C]128[/C][C]40248[/C][C]30022.0909090909[/C][C]10225.9090909091[/C][/ROW]
[ROW][C]129[/C][C]64187[/C][C]76563.8[/C][C]-12376.8[/C][/ROW]
[ROW][C]130[/C][C]50857[/C][C]48927.3846153846[/C][C]1929.61538461538[/C][/ROW]
[ROW][C]131[/C][C]56613[/C][C]48927.3846153846[/C][C]7685.61538461538[/C][/ROW]
[ROW][C]132[/C][C]62792[/C][C]88013.564516129[/C][C]-25221.564516129[/C][/ROW]
[ROW][C]133[/C][C]72535[/C][C]88013.564516129[/C][C]-15478.564516129[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=160500&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=160500&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
110164588013.56451612913631.435483871
210101188013.56451612912997.435483871
3717630022.0909090909-22846.0909090909
496560165282-68722
517582416528210542
6341570165282176288
710359788013.56451612915583.435483871
8112611113886.2-1275.2
98557488013.564516129-2439.56451612903
1022080116528255519
119266188013.5645161294647.43548387097
12133328113886.219441.8
1361361165282-103921
14125930165282-39352
158231688013.564516129-5697.56451612903
1610201088013.56451612913996.435483871
17101523113886.2-12363.2
184156630022.090909090911543.9090909091
1999923113886.2-13963.2
202264830022.0909090909-7374.09090909091
214669848927.3846153846-2229.38461538462
22131698113886.217811.8
239173576563.815171.2
247986388013.564516129-8150.56451612903
25108043113886.2-5843.2
269886688013.56451612910852.435483871
27120445165282-44837
28116048113886.22161.8
2925004716528284765
3013608488013.56451612948070.435483871
319249988013.5645161294485.43548387097
32135781113886.221894.8
337440861943.454545454512464.5454545455
3481240113886.2-32646.2
3513336888013.56451612945354.435483871
369814676563.821582.2
377961988013.564516129-8394.56451612903
385919476563.8-17369.8
39139942113886.226055.8
40118612113886.24725.8
417288076563.8-3683.8
426547548927.384615384616547.6153846154
439964388013.56451612911629.435483871
447196588013.564516129-16048.564516129
457727288013.564516129-10741.564516129
464928948927.3846153846361.615384615383
4713513188013.56451612947117.435483871
4810844688013.56451612920432.435483871
498974688013.5645161291732.43548387097
504429648927.3846153846-4631.38461538462
517764888013.564516129-10365.564516129
5218152888013.56451612993514.435483871
5313401988013.56451612946005.435483871
54124064113886.210177.8
559263061943.454545454530686.5454545455
5612184888013.56451612933834.435483871
575291588013.564516129-35098.564516129
588187288013.564516129-6141.56451612903
595898176563.8-17582.8
605351576563.8-23048.8
616081288013.564516129-27201.564516129
625637548927.38461538467447.61538461538
636549088013.564516129-22523.564516129
648094976563.84385.2
657630288013.564516129-11711.564516129
6610401188013.56451612915997.435483871
6798104113886.2-15782.2
686798988013.564516129-20024.564516129
693098948927.3846153846-17938.3846153846
70135458165282-29824
717350461943.454545454511560.5454545455
726312388013.564516129-24890.564516129
736125461943.4545454545-689.454545454544
747491488013.564516129-13099.564516129
753177448927.3846153846-17153.3846153846
768143788013.564516129-6576.56451612903
778718688013.564516129-827.56451612903
785009048927.38461538461162.61538461538
796574588013.564516129-22268.564516129
805665388013.564516129-31360.564516129
8115839988013.56451612970385.435483871
824645561943.4545454545-15488.4545454545
837362488013.564516129-14389.564516129
843839548927.3846153846-10532.3846153846
859189988013.5645161293885.43548387097
86139526165282-25756
875216488013.564516129-35849.564516129
885156788013.564516129-36446.564516129
897055188013.564516129-17462.564516129
908485688013.564516129-3157.56451612903
91102538113886.2-11348.2
928667876563.810114.2
938570988013.564516129-2304.56451612903
943466261943.4545454545-27281.4545454545
95150580165282-14702
969961188013.56451612911597.435483871
971934930022.0909090909-10673.0909090909
989937376563.822809.2
998623088013.564516129-1783.56451612903
1003083730022.0909090909814.909090909092
1013170661943.4545454545-30237.4545454545
1028980688013.5645161291792.43548387097
1036208848927.384615384613160.6153846154
1044015130022.090909090910128.9090909091
1052763430022.0909090909-2388.09090909091
1067699088013.564516129-11023.564516129
1073746030022.09090909097437.90909090909
1085415761943.4545454545-7786.45454545454
1094986288013.564516129-38151.564516129
1108433788013.564516129-3676.56451612903
1116417588013.564516129-23838.564516129
1125938261943.4545454545-2561.45454545454
11311930888013.56451612931294.435483871
1147670288013.564516129-11311.564516129
11510342588013.56451612915411.435483871
1167034488013.564516129-17669.564516129
1174341030022.090909090913387.9090909091
118104838113886.2-9048.2
1196221561943.4545454545271.545454545456
1206930488013.564516129-18709.564516129
1215311748927.38461538464189.61538461538
1221976430022.0909090909-10258.0909090909
1238668088013.564516129-1333.56451612903
1248410588013.564516129-3908.56451612903
1257794588013.564516129-10068.564516129
1268911388013.5645161291099.43548387097
1279100561943.454545454529061.5454545455
1284024830022.090909090910225.9090909091
1296418776563.8-12376.8
1305085748927.38461538461929.61538461538
1315661348927.38461538467685.61538461538
1326279288013.564516129-25221.564516129
1337253588013.564516129-15478.564516129



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