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 computationSat, 17 Dec 2011 09:38:48 -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/17/t1324132747vv7e8nutdo3oihk.htm/, Retrieved Fri, 26 Apr 2024 16:23:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=156346, Retrieved Fri, 26 Apr 2024 16:23:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact90
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Recursive Partitioning (Regression Trees)] [] [2010-12-05 20:06:20] [b98453cac15ba1066b407e146608df68]
- R PD  [Recursive Partitioning (Regression Trees)] [] [2011-12-17 14:36:40] [8fcdd1f5b88bf5ac5d2a0b8a91219b89]
-    D      [Recursive Partitioning (Regression Trees)] [] [2011-12-17 14:38:48] [888ed98a09d01be7e0be9dfdea403736] [Current]
-    D        [Recursive Partitioning (Regression Trees)] [] [2011-12-17 14:40:27] [8fcdd1f5b88bf5ac5d2a0b8a91219b89]
-   P         [Recursive Partitioning (Regression Trees)] [] [2011-12-17 15:21:03] [8fcdd1f5b88bf5ac5d2a0b8a91219b89]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=156346&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.7053
R-squared0.4975
RMSE31103.7614

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.7053[/C][/ROW]
[ROW][C]R-squared[/C][C]0.4975[/C][/ROW]
[ROW][C]RMSE[/C][C]31103.7614[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=156346&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=156346&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.7053
R-squared0.4975
RMSE31103.7614







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
1101645108337.388888889-6692.38888888889
210101179469.614035087721541.3859649123
3717631106.7777777778-23930.7777777778
496560108203.923076923-11643.9230769231
5175824161647.45454545514176.5454545454
6341570161647.454545455179922.545454545
710359779469.614035087724127.3859649123
8112611108203.9230769234407.07692307692
985574108337.388888889-22763.3888888889
10220801161647.45454545559153.5454545454
1192661108337.388888889-15676.3888888889
12133328161647.454545455-28319.4545454546
136136179469.6140350877-18108.6140350877
14125930108337.38888888917592.6111111111
158231679469.61403508772846.38596491228
1610201079469.614035087722540.3859649123
17101523161647.454545455-60124.4545454546
184156631106.777777777810459.2222222222
1999923108203.923076923-8280.92307692308
202264858079.04-35431.04
214669858079.04-11381.04
22131698161647.454545455-29949.4545454546
239173558079.0433655.96
2479863108337.388888889-28474.3888888889
25108043108203.923076923-160.923076923078
2698866108337.388888889-9471.38888888889
27120445108337.38888888912107.6111111111
28116048108203.9230769237844.07692307692
29250047161647.45454545588399.5454545454
30136084108337.38888888927746.6111111111
319249979469.614035087713029.3859649123
32135781108203.92307692327577.0769230769
337440879469.6140350877-5061.61403508772
3481240161647.454545455-80407.4545454546
3513336879469.614035087753898.3859649123
3679619108203.923076923-28584.9230769231
375919458079.041114.96
38139942161647.454545455-21705.4545454546
39118612108203.92307692310408.0769230769
407288058079.0414800.96
416547558079.047395.96
429964379469.614035087720173.3859649123
437196579469.6140350877-7504.61403508772
447727279469.6140350877-2197.61403508772
454928958079.04-8790.04
46135131108337.38888888926793.6111111111
47108446108337.388888889108.611111111109
4889746108337.388888889-18591.3888888889
494429658079.04-13783.04
507764879469.6140350877-1821.61403508772
51181528108337.38888888973190.6111111111
5213401979469.614035087754549.3859649123
53124064108203.92307692315860.0769230769
549263079469.614035087713160.3859649123
5512184879469.614035087742378.3859649123
565291579469.6140350877-26554.6140350877
578187279469.61403508772402.38596491228
585898158079.04901.96
595351558079.04-4564.04
606081279469.6140350877-18657.6140350877
615637558079.04-1704.04
626549079469.6140350877-13979.6140350877
638094958079.0422869.96
647630279469.6140350877-3167.61403508772
6510401179469.614035087724541.3859649123
6698104108203.923076923-10099.9230769231
676798979469.6140350877-11480.6140350877
683098958079.04-27090.04
69135458108203.92307692327254.0769230769
707350479469.6140350877-5965.61403508772
716312379469.6140350877-16346.6140350877
7261254108337.388888889-47083.3888888889
737491479469.6140350877-4555.61403508772
743177458079.04-26305.04
758143779469.61403508771967.38596491228
768718679469.61403508777716.38596491228
775009058079.04-7989.04
7865745108337.388888889-42592.3888888889
795665379469.6140350877-22816.6140350877
8015839979469.614035087778929.3859649123
814645579469.6140350877-33014.6140350877
8273624108337.388888889-34713.3888888889
833839558079.04-19684.04
849189979469.614035087712429.3859649123
85139526108337.38888888931188.6111111111
865216479469.6140350877-27305.6140350877
875156779469.6140350877-27902.6140350877
887055179469.6140350877-8918.61403508772
898485679469.61403508775386.38596491228
90102538161647.454545455-59109.4545454546
918667858079.0428598.96
928570979469.61403508776239.38596491228
933466279469.6140350877-44807.6140350877
94150580108337.38888888942242.6111111111
9599611161647.454545455-62036.4545454546
961934931106.7777777778-11757.7777777778
979937358079.0441293.96
988623079469.61403508776760.38596491228
993083731106.7777777778-269.777777777777
1003170679469.6140350877-47763.6140350877
1018980679469.614035087710336.3859649123
1026208858079.044008.96
1034015131106.77777777789044.22222222222
1042763458079.04-30445.04
10576990108203.923076923-31213.9230769231
1063746031106.77777777786353.22222222222
1075415779469.6140350877-25312.6140350877
1084986279469.6140350877-29607.6140350877
1098433779469.61403508774867.38596491228
1106417579469.6140350877-15294.6140350877
1115938279469.6140350877-20087.6140350877
11211930879469.614035087739838.3859649123
1137670279469.6140350877-2767.61403508772
114103425108337.388888889-4912.38888888889
1157034479469.6140350877-9125.61403508772
1164341031106.777777777812303.2222222222
117104838108203.923076923-3365.92307692308
1186221579469.6140350877-17254.6140350877
1196930479469.6140350877-10165.6140350877
1205311758079.04-4962.04
1211976431106.7777777778-11342.7777777778
1228668079469.61403508777210.38596491228
1238410579469.61403508774635.38596491228
1247794579469.6140350877-1524.61403508772
1258911379469.61403508779643.38596491228
1269100579469.614035087711535.3859649123
1274024831106.77777777789141.22222222222
1286418758079.046107.96
1295085758079.04-7222.04
1305661358079.04-1466.04
1316279279469.6140350877-16677.6140350877
1327253579469.6140350877-6934.61403508772
1339814658079.0440066.96

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 101645 & 108337.388888889 & -6692.38888888889 \tabularnewline
2 & 101011 & 79469.6140350877 & 21541.3859649123 \tabularnewline
3 & 7176 & 31106.7777777778 & -23930.7777777778 \tabularnewline
4 & 96560 & 108203.923076923 & -11643.9230769231 \tabularnewline
5 & 175824 & 161647.454545455 & 14176.5454545454 \tabularnewline
6 & 341570 & 161647.454545455 & 179922.545454545 \tabularnewline
7 & 103597 & 79469.6140350877 & 24127.3859649123 \tabularnewline
8 & 112611 & 108203.923076923 & 4407.07692307692 \tabularnewline
9 & 85574 & 108337.388888889 & -22763.3888888889 \tabularnewline
10 & 220801 & 161647.454545455 & 59153.5454545454 \tabularnewline
11 & 92661 & 108337.388888889 & -15676.3888888889 \tabularnewline
12 & 133328 & 161647.454545455 & -28319.4545454546 \tabularnewline
13 & 61361 & 79469.6140350877 & -18108.6140350877 \tabularnewline
14 & 125930 & 108337.388888889 & 17592.6111111111 \tabularnewline
15 & 82316 & 79469.6140350877 & 2846.38596491228 \tabularnewline
16 & 102010 & 79469.6140350877 & 22540.3859649123 \tabularnewline
17 & 101523 & 161647.454545455 & -60124.4545454546 \tabularnewline
18 & 41566 & 31106.7777777778 & 10459.2222222222 \tabularnewline
19 & 99923 & 108203.923076923 & -8280.92307692308 \tabularnewline
20 & 22648 & 58079.04 & -35431.04 \tabularnewline
21 & 46698 & 58079.04 & -11381.04 \tabularnewline
22 & 131698 & 161647.454545455 & -29949.4545454546 \tabularnewline
23 & 91735 & 58079.04 & 33655.96 \tabularnewline
24 & 79863 & 108337.388888889 & -28474.3888888889 \tabularnewline
25 & 108043 & 108203.923076923 & -160.923076923078 \tabularnewline
26 & 98866 & 108337.388888889 & -9471.38888888889 \tabularnewline
27 & 120445 & 108337.388888889 & 12107.6111111111 \tabularnewline
28 & 116048 & 108203.923076923 & 7844.07692307692 \tabularnewline
29 & 250047 & 161647.454545455 & 88399.5454545454 \tabularnewline
30 & 136084 & 108337.388888889 & 27746.6111111111 \tabularnewline
31 & 92499 & 79469.6140350877 & 13029.3859649123 \tabularnewline
32 & 135781 & 108203.923076923 & 27577.0769230769 \tabularnewline
33 & 74408 & 79469.6140350877 & -5061.61403508772 \tabularnewline
34 & 81240 & 161647.454545455 & -80407.4545454546 \tabularnewline
35 & 133368 & 79469.6140350877 & 53898.3859649123 \tabularnewline
36 & 79619 & 108203.923076923 & -28584.9230769231 \tabularnewline
37 & 59194 & 58079.04 & 1114.96 \tabularnewline
38 & 139942 & 161647.454545455 & -21705.4545454546 \tabularnewline
39 & 118612 & 108203.923076923 & 10408.0769230769 \tabularnewline
40 & 72880 & 58079.04 & 14800.96 \tabularnewline
41 & 65475 & 58079.04 & 7395.96 \tabularnewline
42 & 99643 & 79469.6140350877 & 20173.3859649123 \tabularnewline
43 & 71965 & 79469.6140350877 & -7504.61403508772 \tabularnewline
44 & 77272 & 79469.6140350877 & -2197.61403508772 \tabularnewline
45 & 49289 & 58079.04 & -8790.04 \tabularnewline
46 & 135131 & 108337.388888889 & 26793.6111111111 \tabularnewline
47 & 108446 & 108337.388888889 & 108.611111111109 \tabularnewline
48 & 89746 & 108337.388888889 & -18591.3888888889 \tabularnewline
49 & 44296 & 58079.04 & -13783.04 \tabularnewline
50 & 77648 & 79469.6140350877 & -1821.61403508772 \tabularnewline
51 & 181528 & 108337.388888889 & 73190.6111111111 \tabularnewline
52 & 134019 & 79469.6140350877 & 54549.3859649123 \tabularnewline
53 & 124064 & 108203.923076923 & 15860.0769230769 \tabularnewline
54 & 92630 & 79469.6140350877 & 13160.3859649123 \tabularnewline
55 & 121848 & 79469.6140350877 & 42378.3859649123 \tabularnewline
56 & 52915 & 79469.6140350877 & -26554.6140350877 \tabularnewline
57 & 81872 & 79469.6140350877 & 2402.38596491228 \tabularnewline
58 & 58981 & 58079.04 & 901.96 \tabularnewline
59 & 53515 & 58079.04 & -4564.04 \tabularnewline
60 & 60812 & 79469.6140350877 & -18657.6140350877 \tabularnewline
61 & 56375 & 58079.04 & -1704.04 \tabularnewline
62 & 65490 & 79469.6140350877 & -13979.6140350877 \tabularnewline
63 & 80949 & 58079.04 & 22869.96 \tabularnewline
64 & 76302 & 79469.6140350877 & -3167.61403508772 \tabularnewline
65 & 104011 & 79469.6140350877 & 24541.3859649123 \tabularnewline
66 & 98104 & 108203.923076923 & -10099.9230769231 \tabularnewline
67 & 67989 & 79469.6140350877 & -11480.6140350877 \tabularnewline
68 & 30989 & 58079.04 & -27090.04 \tabularnewline
69 & 135458 & 108203.923076923 & 27254.0769230769 \tabularnewline
70 & 73504 & 79469.6140350877 & -5965.61403508772 \tabularnewline
71 & 63123 & 79469.6140350877 & -16346.6140350877 \tabularnewline
72 & 61254 & 108337.388888889 & -47083.3888888889 \tabularnewline
73 & 74914 & 79469.6140350877 & -4555.61403508772 \tabularnewline
74 & 31774 & 58079.04 & -26305.04 \tabularnewline
75 & 81437 & 79469.6140350877 & 1967.38596491228 \tabularnewline
76 & 87186 & 79469.6140350877 & 7716.38596491228 \tabularnewline
77 & 50090 & 58079.04 & -7989.04 \tabularnewline
78 & 65745 & 108337.388888889 & -42592.3888888889 \tabularnewline
79 & 56653 & 79469.6140350877 & -22816.6140350877 \tabularnewline
80 & 158399 & 79469.6140350877 & 78929.3859649123 \tabularnewline
81 & 46455 & 79469.6140350877 & -33014.6140350877 \tabularnewline
82 & 73624 & 108337.388888889 & -34713.3888888889 \tabularnewline
83 & 38395 & 58079.04 & -19684.04 \tabularnewline
84 & 91899 & 79469.6140350877 & 12429.3859649123 \tabularnewline
85 & 139526 & 108337.388888889 & 31188.6111111111 \tabularnewline
86 & 52164 & 79469.6140350877 & -27305.6140350877 \tabularnewline
87 & 51567 & 79469.6140350877 & -27902.6140350877 \tabularnewline
88 & 70551 & 79469.6140350877 & -8918.61403508772 \tabularnewline
89 & 84856 & 79469.6140350877 & 5386.38596491228 \tabularnewline
90 & 102538 & 161647.454545455 & -59109.4545454546 \tabularnewline
91 & 86678 & 58079.04 & 28598.96 \tabularnewline
92 & 85709 & 79469.6140350877 & 6239.38596491228 \tabularnewline
93 & 34662 & 79469.6140350877 & -44807.6140350877 \tabularnewline
94 & 150580 & 108337.388888889 & 42242.6111111111 \tabularnewline
95 & 99611 & 161647.454545455 & -62036.4545454546 \tabularnewline
96 & 19349 & 31106.7777777778 & -11757.7777777778 \tabularnewline
97 & 99373 & 58079.04 & 41293.96 \tabularnewline
98 & 86230 & 79469.6140350877 & 6760.38596491228 \tabularnewline
99 & 30837 & 31106.7777777778 & -269.777777777777 \tabularnewline
100 & 31706 & 79469.6140350877 & -47763.6140350877 \tabularnewline
101 & 89806 & 79469.6140350877 & 10336.3859649123 \tabularnewline
102 & 62088 & 58079.04 & 4008.96 \tabularnewline
103 & 40151 & 31106.7777777778 & 9044.22222222222 \tabularnewline
104 & 27634 & 58079.04 & -30445.04 \tabularnewline
105 & 76990 & 108203.923076923 & -31213.9230769231 \tabularnewline
106 & 37460 & 31106.7777777778 & 6353.22222222222 \tabularnewline
107 & 54157 & 79469.6140350877 & -25312.6140350877 \tabularnewline
108 & 49862 & 79469.6140350877 & -29607.6140350877 \tabularnewline
109 & 84337 & 79469.6140350877 & 4867.38596491228 \tabularnewline
110 & 64175 & 79469.6140350877 & -15294.6140350877 \tabularnewline
111 & 59382 & 79469.6140350877 & -20087.6140350877 \tabularnewline
112 & 119308 & 79469.6140350877 & 39838.3859649123 \tabularnewline
113 & 76702 & 79469.6140350877 & -2767.61403508772 \tabularnewline
114 & 103425 & 108337.388888889 & -4912.38888888889 \tabularnewline
115 & 70344 & 79469.6140350877 & -9125.61403508772 \tabularnewline
116 & 43410 & 31106.7777777778 & 12303.2222222222 \tabularnewline
117 & 104838 & 108203.923076923 & -3365.92307692308 \tabularnewline
118 & 62215 & 79469.6140350877 & -17254.6140350877 \tabularnewline
119 & 69304 & 79469.6140350877 & -10165.6140350877 \tabularnewline
120 & 53117 & 58079.04 & -4962.04 \tabularnewline
121 & 19764 & 31106.7777777778 & -11342.7777777778 \tabularnewline
122 & 86680 & 79469.6140350877 & 7210.38596491228 \tabularnewline
123 & 84105 & 79469.6140350877 & 4635.38596491228 \tabularnewline
124 & 77945 & 79469.6140350877 & -1524.61403508772 \tabularnewline
125 & 89113 & 79469.6140350877 & 9643.38596491228 \tabularnewline
126 & 91005 & 79469.6140350877 & 11535.3859649123 \tabularnewline
127 & 40248 & 31106.7777777778 & 9141.22222222222 \tabularnewline
128 & 64187 & 58079.04 & 6107.96 \tabularnewline
129 & 50857 & 58079.04 & -7222.04 \tabularnewline
130 & 56613 & 58079.04 & -1466.04 \tabularnewline
131 & 62792 & 79469.6140350877 & -16677.6140350877 \tabularnewline
132 & 72535 & 79469.6140350877 & -6934.61403508772 \tabularnewline
133 & 98146 & 58079.04 & 40066.96 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=156346&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]108337.388888889[/C][C]-6692.38888888889[/C][/ROW]
[ROW][C]2[/C][C]101011[/C][C]79469.6140350877[/C][C]21541.3859649123[/C][/ROW]
[ROW][C]3[/C][C]7176[/C][C]31106.7777777778[/C][C]-23930.7777777778[/C][/ROW]
[ROW][C]4[/C][C]96560[/C][C]108203.923076923[/C][C]-11643.9230769231[/C][/ROW]
[ROW][C]5[/C][C]175824[/C][C]161647.454545455[/C][C]14176.5454545454[/C][/ROW]
[ROW][C]6[/C][C]341570[/C][C]161647.454545455[/C][C]179922.545454545[/C][/ROW]
[ROW][C]7[/C][C]103597[/C][C]79469.6140350877[/C][C]24127.3859649123[/C][/ROW]
[ROW][C]8[/C][C]112611[/C][C]108203.923076923[/C][C]4407.07692307692[/C][/ROW]
[ROW][C]9[/C][C]85574[/C][C]108337.388888889[/C][C]-22763.3888888889[/C][/ROW]
[ROW][C]10[/C][C]220801[/C][C]161647.454545455[/C][C]59153.5454545454[/C][/ROW]
[ROW][C]11[/C][C]92661[/C][C]108337.388888889[/C][C]-15676.3888888889[/C][/ROW]
[ROW][C]12[/C][C]133328[/C][C]161647.454545455[/C][C]-28319.4545454546[/C][/ROW]
[ROW][C]13[/C][C]61361[/C][C]79469.6140350877[/C][C]-18108.6140350877[/C][/ROW]
[ROW][C]14[/C][C]125930[/C][C]108337.388888889[/C][C]17592.6111111111[/C][/ROW]
[ROW][C]15[/C][C]82316[/C][C]79469.6140350877[/C][C]2846.38596491228[/C][/ROW]
[ROW][C]16[/C][C]102010[/C][C]79469.6140350877[/C][C]22540.3859649123[/C][/ROW]
[ROW][C]17[/C][C]101523[/C][C]161647.454545455[/C][C]-60124.4545454546[/C][/ROW]
[ROW][C]18[/C][C]41566[/C][C]31106.7777777778[/C][C]10459.2222222222[/C][/ROW]
[ROW][C]19[/C][C]99923[/C][C]108203.923076923[/C][C]-8280.92307692308[/C][/ROW]
[ROW][C]20[/C][C]22648[/C][C]58079.04[/C][C]-35431.04[/C][/ROW]
[ROW][C]21[/C][C]46698[/C][C]58079.04[/C][C]-11381.04[/C][/ROW]
[ROW][C]22[/C][C]131698[/C][C]161647.454545455[/C][C]-29949.4545454546[/C][/ROW]
[ROW][C]23[/C][C]91735[/C][C]58079.04[/C][C]33655.96[/C][/ROW]
[ROW][C]24[/C][C]79863[/C][C]108337.388888889[/C][C]-28474.3888888889[/C][/ROW]
[ROW][C]25[/C][C]108043[/C][C]108203.923076923[/C][C]-160.923076923078[/C][/ROW]
[ROW][C]26[/C][C]98866[/C][C]108337.388888889[/C][C]-9471.38888888889[/C][/ROW]
[ROW][C]27[/C][C]120445[/C][C]108337.388888889[/C][C]12107.6111111111[/C][/ROW]
[ROW][C]28[/C][C]116048[/C][C]108203.923076923[/C][C]7844.07692307692[/C][/ROW]
[ROW][C]29[/C][C]250047[/C][C]161647.454545455[/C][C]88399.5454545454[/C][/ROW]
[ROW][C]30[/C][C]136084[/C][C]108337.388888889[/C][C]27746.6111111111[/C][/ROW]
[ROW][C]31[/C][C]92499[/C][C]79469.6140350877[/C][C]13029.3859649123[/C][/ROW]
[ROW][C]32[/C][C]135781[/C][C]108203.923076923[/C][C]27577.0769230769[/C][/ROW]
[ROW][C]33[/C][C]74408[/C][C]79469.6140350877[/C][C]-5061.61403508772[/C][/ROW]
[ROW][C]34[/C][C]81240[/C][C]161647.454545455[/C][C]-80407.4545454546[/C][/ROW]
[ROW][C]35[/C][C]133368[/C][C]79469.6140350877[/C][C]53898.3859649123[/C][/ROW]
[ROW][C]36[/C][C]79619[/C][C]108203.923076923[/C][C]-28584.9230769231[/C][/ROW]
[ROW][C]37[/C][C]59194[/C][C]58079.04[/C][C]1114.96[/C][/ROW]
[ROW][C]38[/C][C]139942[/C][C]161647.454545455[/C][C]-21705.4545454546[/C][/ROW]
[ROW][C]39[/C][C]118612[/C][C]108203.923076923[/C][C]10408.0769230769[/C][/ROW]
[ROW][C]40[/C][C]72880[/C][C]58079.04[/C][C]14800.96[/C][/ROW]
[ROW][C]41[/C][C]65475[/C][C]58079.04[/C][C]7395.96[/C][/ROW]
[ROW][C]42[/C][C]99643[/C][C]79469.6140350877[/C][C]20173.3859649123[/C][/ROW]
[ROW][C]43[/C][C]71965[/C][C]79469.6140350877[/C][C]-7504.61403508772[/C][/ROW]
[ROW][C]44[/C][C]77272[/C][C]79469.6140350877[/C][C]-2197.61403508772[/C][/ROW]
[ROW][C]45[/C][C]49289[/C][C]58079.04[/C][C]-8790.04[/C][/ROW]
[ROW][C]46[/C][C]135131[/C][C]108337.388888889[/C][C]26793.6111111111[/C][/ROW]
[ROW][C]47[/C][C]108446[/C][C]108337.388888889[/C][C]108.611111111109[/C][/ROW]
[ROW][C]48[/C][C]89746[/C][C]108337.388888889[/C][C]-18591.3888888889[/C][/ROW]
[ROW][C]49[/C][C]44296[/C][C]58079.04[/C][C]-13783.04[/C][/ROW]
[ROW][C]50[/C][C]77648[/C][C]79469.6140350877[/C][C]-1821.61403508772[/C][/ROW]
[ROW][C]51[/C][C]181528[/C][C]108337.388888889[/C][C]73190.6111111111[/C][/ROW]
[ROW][C]52[/C][C]134019[/C][C]79469.6140350877[/C][C]54549.3859649123[/C][/ROW]
[ROW][C]53[/C][C]124064[/C][C]108203.923076923[/C][C]15860.0769230769[/C][/ROW]
[ROW][C]54[/C][C]92630[/C][C]79469.6140350877[/C][C]13160.3859649123[/C][/ROW]
[ROW][C]55[/C][C]121848[/C][C]79469.6140350877[/C][C]42378.3859649123[/C][/ROW]
[ROW][C]56[/C][C]52915[/C][C]79469.6140350877[/C][C]-26554.6140350877[/C][/ROW]
[ROW][C]57[/C][C]81872[/C][C]79469.6140350877[/C][C]2402.38596491228[/C][/ROW]
[ROW][C]58[/C][C]58981[/C][C]58079.04[/C][C]901.96[/C][/ROW]
[ROW][C]59[/C][C]53515[/C][C]58079.04[/C][C]-4564.04[/C][/ROW]
[ROW][C]60[/C][C]60812[/C][C]79469.6140350877[/C][C]-18657.6140350877[/C][/ROW]
[ROW][C]61[/C][C]56375[/C][C]58079.04[/C][C]-1704.04[/C][/ROW]
[ROW][C]62[/C][C]65490[/C][C]79469.6140350877[/C][C]-13979.6140350877[/C][/ROW]
[ROW][C]63[/C][C]80949[/C][C]58079.04[/C][C]22869.96[/C][/ROW]
[ROW][C]64[/C][C]76302[/C][C]79469.6140350877[/C][C]-3167.61403508772[/C][/ROW]
[ROW][C]65[/C][C]104011[/C][C]79469.6140350877[/C][C]24541.3859649123[/C][/ROW]
[ROW][C]66[/C][C]98104[/C][C]108203.923076923[/C][C]-10099.9230769231[/C][/ROW]
[ROW][C]67[/C][C]67989[/C][C]79469.6140350877[/C][C]-11480.6140350877[/C][/ROW]
[ROW][C]68[/C][C]30989[/C][C]58079.04[/C][C]-27090.04[/C][/ROW]
[ROW][C]69[/C][C]135458[/C][C]108203.923076923[/C][C]27254.0769230769[/C][/ROW]
[ROW][C]70[/C][C]73504[/C][C]79469.6140350877[/C][C]-5965.61403508772[/C][/ROW]
[ROW][C]71[/C][C]63123[/C][C]79469.6140350877[/C][C]-16346.6140350877[/C][/ROW]
[ROW][C]72[/C][C]61254[/C][C]108337.388888889[/C][C]-47083.3888888889[/C][/ROW]
[ROW][C]73[/C][C]74914[/C][C]79469.6140350877[/C][C]-4555.61403508772[/C][/ROW]
[ROW][C]74[/C][C]31774[/C][C]58079.04[/C][C]-26305.04[/C][/ROW]
[ROW][C]75[/C][C]81437[/C][C]79469.6140350877[/C][C]1967.38596491228[/C][/ROW]
[ROW][C]76[/C][C]87186[/C][C]79469.6140350877[/C][C]7716.38596491228[/C][/ROW]
[ROW][C]77[/C][C]50090[/C][C]58079.04[/C][C]-7989.04[/C][/ROW]
[ROW][C]78[/C][C]65745[/C][C]108337.388888889[/C][C]-42592.3888888889[/C][/ROW]
[ROW][C]79[/C][C]56653[/C][C]79469.6140350877[/C][C]-22816.6140350877[/C][/ROW]
[ROW][C]80[/C][C]158399[/C][C]79469.6140350877[/C][C]78929.3859649123[/C][/ROW]
[ROW][C]81[/C][C]46455[/C][C]79469.6140350877[/C][C]-33014.6140350877[/C][/ROW]
[ROW][C]82[/C][C]73624[/C][C]108337.388888889[/C][C]-34713.3888888889[/C][/ROW]
[ROW][C]83[/C][C]38395[/C][C]58079.04[/C][C]-19684.04[/C][/ROW]
[ROW][C]84[/C][C]91899[/C][C]79469.6140350877[/C][C]12429.3859649123[/C][/ROW]
[ROW][C]85[/C][C]139526[/C][C]108337.388888889[/C][C]31188.6111111111[/C][/ROW]
[ROW][C]86[/C][C]52164[/C][C]79469.6140350877[/C][C]-27305.6140350877[/C][/ROW]
[ROW][C]87[/C][C]51567[/C][C]79469.6140350877[/C][C]-27902.6140350877[/C][/ROW]
[ROW][C]88[/C][C]70551[/C][C]79469.6140350877[/C][C]-8918.61403508772[/C][/ROW]
[ROW][C]89[/C][C]84856[/C][C]79469.6140350877[/C][C]5386.38596491228[/C][/ROW]
[ROW][C]90[/C][C]102538[/C][C]161647.454545455[/C][C]-59109.4545454546[/C][/ROW]
[ROW][C]91[/C][C]86678[/C][C]58079.04[/C][C]28598.96[/C][/ROW]
[ROW][C]92[/C][C]85709[/C][C]79469.6140350877[/C][C]6239.38596491228[/C][/ROW]
[ROW][C]93[/C][C]34662[/C][C]79469.6140350877[/C][C]-44807.6140350877[/C][/ROW]
[ROW][C]94[/C][C]150580[/C][C]108337.388888889[/C][C]42242.6111111111[/C][/ROW]
[ROW][C]95[/C][C]99611[/C][C]161647.454545455[/C][C]-62036.4545454546[/C][/ROW]
[ROW][C]96[/C][C]19349[/C][C]31106.7777777778[/C][C]-11757.7777777778[/C][/ROW]
[ROW][C]97[/C][C]99373[/C][C]58079.04[/C][C]41293.96[/C][/ROW]
[ROW][C]98[/C][C]86230[/C][C]79469.6140350877[/C][C]6760.38596491228[/C][/ROW]
[ROW][C]99[/C][C]30837[/C][C]31106.7777777778[/C][C]-269.777777777777[/C][/ROW]
[ROW][C]100[/C][C]31706[/C][C]79469.6140350877[/C][C]-47763.6140350877[/C][/ROW]
[ROW][C]101[/C][C]89806[/C][C]79469.6140350877[/C][C]10336.3859649123[/C][/ROW]
[ROW][C]102[/C][C]62088[/C][C]58079.04[/C][C]4008.96[/C][/ROW]
[ROW][C]103[/C][C]40151[/C][C]31106.7777777778[/C][C]9044.22222222222[/C][/ROW]
[ROW][C]104[/C][C]27634[/C][C]58079.04[/C][C]-30445.04[/C][/ROW]
[ROW][C]105[/C][C]76990[/C][C]108203.923076923[/C][C]-31213.9230769231[/C][/ROW]
[ROW][C]106[/C][C]37460[/C][C]31106.7777777778[/C][C]6353.22222222222[/C][/ROW]
[ROW][C]107[/C][C]54157[/C][C]79469.6140350877[/C][C]-25312.6140350877[/C][/ROW]
[ROW][C]108[/C][C]49862[/C][C]79469.6140350877[/C][C]-29607.6140350877[/C][/ROW]
[ROW][C]109[/C][C]84337[/C][C]79469.6140350877[/C][C]4867.38596491228[/C][/ROW]
[ROW][C]110[/C][C]64175[/C][C]79469.6140350877[/C][C]-15294.6140350877[/C][/ROW]
[ROW][C]111[/C][C]59382[/C][C]79469.6140350877[/C][C]-20087.6140350877[/C][/ROW]
[ROW][C]112[/C][C]119308[/C][C]79469.6140350877[/C][C]39838.3859649123[/C][/ROW]
[ROW][C]113[/C][C]76702[/C][C]79469.6140350877[/C][C]-2767.61403508772[/C][/ROW]
[ROW][C]114[/C][C]103425[/C][C]108337.388888889[/C][C]-4912.38888888889[/C][/ROW]
[ROW][C]115[/C][C]70344[/C][C]79469.6140350877[/C][C]-9125.61403508772[/C][/ROW]
[ROW][C]116[/C][C]43410[/C][C]31106.7777777778[/C][C]12303.2222222222[/C][/ROW]
[ROW][C]117[/C][C]104838[/C][C]108203.923076923[/C][C]-3365.92307692308[/C][/ROW]
[ROW][C]118[/C][C]62215[/C][C]79469.6140350877[/C][C]-17254.6140350877[/C][/ROW]
[ROW][C]119[/C][C]69304[/C][C]79469.6140350877[/C][C]-10165.6140350877[/C][/ROW]
[ROW][C]120[/C][C]53117[/C][C]58079.04[/C][C]-4962.04[/C][/ROW]
[ROW][C]121[/C][C]19764[/C][C]31106.7777777778[/C][C]-11342.7777777778[/C][/ROW]
[ROW][C]122[/C][C]86680[/C][C]79469.6140350877[/C][C]7210.38596491228[/C][/ROW]
[ROW][C]123[/C][C]84105[/C][C]79469.6140350877[/C][C]4635.38596491228[/C][/ROW]
[ROW][C]124[/C][C]77945[/C][C]79469.6140350877[/C][C]-1524.61403508772[/C][/ROW]
[ROW][C]125[/C][C]89113[/C][C]79469.6140350877[/C][C]9643.38596491228[/C][/ROW]
[ROW][C]126[/C][C]91005[/C][C]79469.6140350877[/C][C]11535.3859649123[/C][/ROW]
[ROW][C]127[/C][C]40248[/C][C]31106.7777777778[/C][C]9141.22222222222[/C][/ROW]
[ROW][C]128[/C][C]64187[/C][C]58079.04[/C][C]6107.96[/C][/ROW]
[ROW][C]129[/C][C]50857[/C][C]58079.04[/C][C]-7222.04[/C][/ROW]
[ROW][C]130[/C][C]56613[/C][C]58079.04[/C][C]-1466.04[/C][/ROW]
[ROW][C]131[/C][C]62792[/C][C]79469.6140350877[/C][C]-16677.6140350877[/C][/ROW]
[ROW][C]132[/C][C]72535[/C][C]79469.6140350877[/C][C]-6934.61403508772[/C][/ROW]
[ROW][C]133[/C][C]98146[/C][C]58079.04[/C][C]40066.96[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=156346&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=156346&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
1101645108337.388888889-6692.38888888889
210101179469.614035087721541.3859649123
3717631106.7777777778-23930.7777777778
496560108203.923076923-11643.9230769231
5175824161647.45454545514176.5454545454
6341570161647.454545455179922.545454545
710359779469.614035087724127.3859649123
8112611108203.9230769234407.07692307692
985574108337.388888889-22763.3888888889
10220801161647.45454545559153.5454545454
1192661108337.388888889-15676.3888888889
12133328161647.454545455-28319.4545454546
136136179469.6140350877-18108.6140350877
14125930108337.38888888917592.6111111111
158231679469.61403508772846.38596491228
1610201079469.614035087722540.3859649123
17101523161647.454545455-60124.4545454546
184156631106.777777777810459.2222222222
1999923108203.923076923-8280.92307692308
202264858079.04-35431.04
214669858079.04-11381.04
22131698161647.454545455-29949.4545454546
239173558079.0433655.96
2479863108337.388888889-28474.3888888889
25108043108203.923076923-160.923076923078
2698866108337.388888889-9471.38888888889
27120445108337.38888888912107.6111111111
28116048108203.9230769237844.07692307692
29250047161647.45454545588399.5454545454
30136084108337.38888888927746.6111111111
319249979469.614035087713029.3859649123
32135781108203.92307692327577.0769230769
337440879469.6140350877-5061.61403508772
3481240161647.454545455-80407.4545454546
3513336879469.614035087753898.3859649123
3679619108203.923076923-28584.9230769231
375919458079.041114.96
38139942161647.454545455-21705.4545454546
39118612108203.92307692310408.0769230769
407288058079.0414800.96
416547558079.047395.96
429964379469.614035087720173.3859649123
437196579469.6140350877-7504.61403508772
447727279469.6140350877-2197.61403508772
454928958079.04-8790.04
46135131108337.38888888926793.6111111111
47108446108337.388888889108.611111111109
4889746108337.388888889-18591.3888888889
494429658079.04-13783.04
507764879469.6140350877-1821.61403508772
51181528108337.38888888973190.6111111111
5213401979469.614035087754549.3859649123
53124064108203.92307692315860.0769230769
549263079469.614035087713160.3859649123
5512184879469.614035087742378.3859649123
565291579469.6140350877-26554.6140350877
578187279469.61403508772402.38596491228
585898158079.04901.96
595351558079.04-4564.04
606081279469.6140350877-18657.6140350877
615637558079.04-1704.04
626549079469.6140350877-13979.6140350877
638094958079.0422869.96
647630279469.6140350877-3167.61403508772
6510401179469.614035087724541.3859649123
6698104108203.923076923-10099.9230769231
676798979469.6140350877-11480.6140350877
683098958079.04-27090.04
69135458108203.92307692327254.0769230769
707350479469.6140350877-5965.61403508772
716312379469.6140350877-16346.6140350877
7261254108337.388888889-47083.3888888889
737491479469.6140350877-4555.61403508772
743177458079.04-26305.04
758143779469.61403508771967.38596491228
768718679469.61403508777716.38596491228
775009058079.04-7989.04
7865745108337.388888889-42592.3888888889
795665379469.6140350877-22816.6140350877
8015839979469.614035087778929.3859649123
814645579469.6140350877-33014.6140350877
8273624108337.388888889-34713.3888888889
833839558079.04-19684.04
849189979469.614035087712429.3859649123
85139526108337.38888888931188.6111111111
865216479469.6140350877-27305.6140350877
875156779469.6140350877-27902.6140350877
887055179469.6140350877-8918.61403508772
898485679469.61403508775386.38596491228
90102538161647.454545455-59109.4545454546
918667858079.0428598.96
928570979469.61403508776239.38596491228
933466279469.6140350877-44807.6140350877
94150580108337.38888888942242.6111111111
9599611161647.454545455-62036.4545454546
961934931106.7777777778-11757.7777777778
979937358079.0441293.96
988623079469.61403508776760.38596491228
993083731106.7777777778-269.777777777777
1003170679469.6140350877-47763.6140350877
1018980679469.614035087710336.3859649123
1026208858079.044008.96
1034015131106.77777777789044.22222222222
1042763458079.04-30445.04
10576990108203.923076923-31213.9230769231
1063746031106.77777777786353.22222222222
1075415779469.6140350877-25312.6140350877
1084986279469.6140350877-29607.6140350877
1098433779469.61403508774867.38596491228
1106417579469.6140350877-15294.6140350877
1115938279469.6140350877-20087.6140350877
11211930879469.614035087739838.3859649123
1137670279469.6140350877-2767.61403508772
114103425108337.388888889-4912.38888888889
1157034479469.6140350877-9125.61403508772
1164341031106.777777777812303.2222222222
117104838108203.923076923-3365.92307692308
1186221579469.6140350877-17254.6140350877
1196930479469.6140350877-10165.6140350877
1205311758079.04-4962.04
1211976431106.7777777778-11342.7777777778
1228668079469.61403508777210.38596491228
1238410579469.61403508774635.38596491228
1247794579469.6140350877-1524.61403508772
1258911379469.61403508779643.38596491228
1269100579469.614035087711535.3859649123
1274024831106.77777777789141.22222222222
1286418758079.046107.96
1295085758079.04-7222.04
1305661358079.04-1466.04
1316279279469.6140350877-16677.6140350877
1327253579469.6140350877-6934.61403508772
1339814658079.0440066.96



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