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, 10 Dec 2011 13:43:38 -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/10/t1323542903ellqlmg2a9pwyxi.htm/, Retrieved Sun, 05 May 2024 06:45:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=153614, Retrieved Sun, 05 May 2024 06:45:09 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact72
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Recursive Partitioning (Regression Trees)] [Regression Trees ...] [2011-12-10 18:43:38] [10a6f28c51bb1cb94db47cee32729d66] [Current]
Feedback Forum

Post a new message
Dataseries X:
79	30	94	146283	0.69	2
108	30	103	96933	0.54	4
43	26	93	95757	0.64	0
78	38	123	143983	0.61	0
86	44	148	75851	0.44	-4
44	30	90	59238	0.44	4
104	40	124	93163	0.36	4
158	47	168	151511	0.47	0
102	30	115	136368	0.59	-1
77	31	71	112642	0.48	0
80	30	108	127766	0.37	1
123	34	120	85646	0.49	0
73	31	114	98579	0.57	3
105	33	120	131741	0.59	-1
107	33	124	171975	0.58	4
84	36	126	159676	0.49	3
33	14	37	58391	0.55	1
42	17	38	31580	0.33	0
96	32	120	136815	0.51	-2
106	30	93	120642	0.45	-3
56	35	95	69107	0.46	-4
59	28	90	108016	0.71	2
76	34	110	79336	0.22	2
91	39	138	93176	0.51	-4
115	39	133	161632	0.58	3
76	29	96	102996	0.47	2
101	44	164	160604	0.66	2
94	21	78	158051	0.46	0
92	28	102	162647	0.70	5
75	28	99	60622	0.29	-2
128	38	129	179566	0.58	0
56	32	114	96144	0.46	-2
41	29	99	129847	0.66	-3
67	27	104	71180	0.50	2
77	40	138	86767	0.48	2
66	40	151	93487	0.48	2
69	28	72	82981	0.50	0
105	34	120	73815	0.51	4
116	33	115	94552	0.34	4
62	33	98	67808	0.45	2
100	35	71	106175	0.55	2
67	29	107	76669	0.59	-4
46	20	73	57283	0.51	3
135	37	129	72413	0.49	3
124	33	118	96971	0.53	2
58	29	104	120336	0.50	-1
68	28	107	93913	0.58	-3
37	21	36	32036	0.37	0
93	41	139	102255	0.45	1
56	20	56	63506	0.48	-3
83	30	93	68370	0.68	3
59	22	87	50517	0.50	0
133	42	110	103950	0.43	0
106	32	83	84396	0.55	0
71	36	98	55515	0.42	3
116	31	82	209056	0.66	-3
98	33	115	142775	0.58	0
64	40	140	68847	0.37	-4
32	38	120	20112	0.16	2
25	24	66	61023	0.62	-1
46	43	139	112494	0.65	3
63	31	119	78876	0.34	2
95	40	141	170745	0.49	5
113	37	133	122037	0.38	2
111	31	98	112283	0.57	-2
41	21	78	10901	0.06	0
120	39	117	120691	0.47	0
87	32	105	122422	0.61	3
25	18	55	25899	0.28	-2
131	39	132	139296	0.62	0
47	30	73	89455	0.49	6
109	37	86	147866	0.54	-3
37	32	48	14336	0.15	3
15	17	48	30059	0.31	0
54	12	43	41907	0.35	-2
16	13	46	35885	0.55	1
22	17	65	55764	0.51	0
37	17	52	35619	0.29	2
29	20	68	40557	0.53	2
55	17	47	44197	0.45	-3
5	17	41	4103	0.13	-2
0	17	47	4694	0.15	1
27	22	71	62991	0.42	-4
37	15	30	24261	0.45	0
29	12	24	21425	0.36	1
17	17	63	27184	0.32	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=153614&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=153614&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153614&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 time3 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Goodness of Fit
Correlation0.8993
R-squared0.8088
RMSE3.7105

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.8993[/C][/ROW]
[ROW][C]R-squared[/C][C]0.8088[/C][/ROW]
[ROW][C]RMSE[/C][C]3.7105[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=153614&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153614&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.8993
R-squared0.8088
RMSE3.7105







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
13030.59375-0.59375
23030.59375-0.59375
32630.59375-4.59375
43839.7368421052632-1.73684210526316
54439.73684210526324.26315789473684
63030.59375-0.59375
74039.73684210526320.263157894736842
84739.73684210526327.26315789473684
93030.59375-0.59375
103125.25.8
113030.59375-0.59375
123435-1
133130.593750.40625
143330.593752.40625
153339.7368421052632-6.73684210526316
163639.7368421052632-3.73684210526316
171417.2352941176471-3.23529411764706
181717.2352941176471-0.235294117647058
193230.593751.40625
203030.59375-0.59375
213530.593754.40625
222830.59375-2.59375
233430.593753.40625
243939.7368421052632-0.736842105263158
253939.7368421052632-0.736842105263158
262930.59375-1.59375
274439.73684210526324.26315789473684
282125.2-4.2
292830.59375-2.59375
302830.59375-2.59375
313839.7368421052632-1.73684210526316
323230.593751.40625
332930.59375-1.59375
342730.59375-3.59375
354039.73684210526320.263157894736842
364039.73684210526320.263157894736842
372825.22.8
383430.593753.40625
393335-2
403330.593752.40625
413525.29.8
422930.59375-1.59375
432025.2-5.2
443739.7368421052632-2.73684210526316
453335-2
462930.59375-1.59375
472830.59375-2.59375
482117.23529411764713.76470588235294
494139.73684210526321.26315789473684
502017.23529411764712.76470588235294
513030.59375-0.59375
522230.59375-8.59375
5342357
543230.593751.40625
553630.593755.40625
563135-4
573330.593752.40625
584039.73684210526320.263157894736842
593830.593757.40625
602425.2-1.2
614339.73684210526323.26315789473684
623130.593750.40625
634039.73684210526320.263157894736842
643739.7368421052632-2.73684210526316
653135-4
662125.2-4.2
6739354
683230.593751.40625
691817.23529411764710.764705882352942
703939.7368421052632-0.736842105263158
713025.24.8
7237352
733217.235294117647114.7647058823529
741717.2352941176471-0.235294117647058
751217.2352941176471-5.23529411764706
761317.2352941176471-4.23529411764706
771717.2352941176471-0.235294117647058
781717.2352941176471-0.235294117647058
792025.2-5.2
801717.2352941176471-0.235294117647058
811717.2352941176471-0.235294117647058
821717.2352941176471-0.235294117647058
832225.2-3.2
841517.2352941176471-2.23529411764706
851217.2352941176471-5.23529411764706
861717.2352941176471-0.235294117647058

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 30 & 30.59375 & -0.59375 \tabularnewline
2 & 30 & 30.59375 & -0.59375 \tabularnewline
3 & 26 & 30.59375 & -4.59375 \tabularnewline
4 & 38 & 39.7368421052632 & -1.73684210526316 \tabularnewline
5 & 44 & 39.7368421052632 & 4.26315789473684 \tabularnewline
6 & 30 & 30.59375 & -0.59375 \tabularnewline
7 & 40 & 39.7368421052632 & 0.263157894736842 \tabularnewline
8 & 47 & 39.7368421052632 & 7.26315789473684 \tabularnewline
9 & 30 & 30.59375 & -0.59375 \tabularnewline
10 & 31 & 25.2 & 5.8 \tabularnewline
11 & 30 & 30.59375 & -0.59375 \tabularnewline
12 & 34 & 35 & -1 \tabularnewline
13 & 31 & 30.59375 & 0.40625 \tabularnewline
14 & 33 & 30.59375 & 2.40625 \tabularnewline
15 & 33 & 39.7368421052632 & -6.73684210526316 \tabularnewline
16 & 36 & 39.7368421052632 & -3.73684210526316 \tabularnewline
17 & 14 & 17.2352941176471 & -3.23529411764706 \tabularnewline
18 & 17 & 17.2352941176471 & -0.235294117647058 \tabularnewline
19 & 32 & 30.59375 & 1.40625 \tabularnewline
20 & 30 & 30.59375 & -0.59375 \tabularnewline
21 & 35 & 30.59375 & 4.40625 \tabularnewline
22 & 28 & 30.59375 & -2.59375 \tabularnewline
23 & 34 & 30.59375 & 3.40625 \tabularnewline
24 & 39 & 39.7368421052632 & -0.736842105263158 \tabularnewline
25 & 39 & 39.7368421052632 & -0.736842105263158 \tabularnewline
26 & 29 & 30.59375 & -1.59375 \tabularnewline
27 & 44 & 39.7368421052632 & 4.26315789473684 \tabularnewline
28 & 21 & 25.2 & -4.2 \tabularnewline
29 & 28 & 30.59375 & -2.59375 \tabularnewline
30 & 28 & 30.59375 & -2.59375 \tabularnewline
31 & 38 & 39.7368421052632 & -1.73684210526316 \tabularnewline
32 & 32 & 30.59375 & 1.40625 \tabularnewline
33 & 29 & 30.59375 & -1.59375 \tabularnewline
34 & 27 & 30.59375 & -3.59375 \tabularnewline
35 & 40 & 39.7368421052632 & 0.263157894736842 \tabularnewline
36 & 40 & 39.7368421052632 & 0.263157894736842 \tabularnewline
37 & 28 & 25.2 & 2.8 \tabularnewline
38 & 34 & 30.59375 & 3.40625 \tabularnewline
39 & 33 & 35 & -2 \tabularnewline
40 & 33 & 30.59375 & 2.40625 \tabularnewline
41 & 35 & 25.2 & 9.8 \tabularnewline
42 & 29 & 30.59375 & -1.59375 \tabularnewline
43 & 20 & 25.2 & -5.2 \tabularnewline
44 & 37 & 39.7368421052632 & -2.73684210526316 \tabularnewline
45 & 33 & 35 & -2 \tabularnewline
46 & 29 & 30.59375 & -1.59375 \tabularnewline
47 & 28 & 30.59375 & -2.59375 \tabularnewline
48 & 21 & 17.2352941176471 & 3.76470588235294 \tabularnewline
49 & 41 & 39.7368421052632 & 1.26315789473684 \tabularnewline
50 & 20 & 17.2352941176471 & 2.76470588235294 \tabularnewline
51 & 30 & 30.59375 & -0.59375 \tabularnewline
52 & 22 & 30.59375 & -8.59375 \tabularnewline
53 & 42 & 35 & 7 \tabularnewline
54 & 32 & 30.59375 & 1.40625 \tabularnewline
55 & 36 & 30.59375 & 5.40625 \tabularnewline
56 & 31 & 35 & -4 \tabularnewline
57 & 33 & 30.59375 & 2.40625 \tabularnewline
58 & 40 & 39.7368421052632 & 0.263157894736842 \tabularnewline
59 & 38 & 30.59375 & 7.40625 \tabularnewline
60 & 24 & 25.2 & -1.2 \tabularnewline
61 & 43 & 39.7368421052632 & 3.26315789473684 \tabularnewline
62 & 31 & 30.59375 & 0.40625 \tabularnewline
63 & 40 & 39.7368421052632 & 0.263157894736842 \tabularnewline
64 & 37 & 39.7368421052632 & -2.73684210526316 \tabularnewline
65 & 31 & 35 & -4 \tabularnewline
66 & 21 & 25.2 & -4.2 \tabularnewline
67 & 39 & 35 & 4 \tabularnewline
68 & 32 & 30.59375 & 1.40625 \tabularnewline
69 & 18 & 17.2352941176471 & 0.764705882352942 \tabularnewline
70 & 39 & 39.7368421052632 & -0.736842105263158 \tabularnewline
71 & 30 & 25.2 & 4.8 \tabularnewline
72 & 37 & 35 & 2 \tabularnewline
73 & 32 & 17.2352941176471 & 14.7647058823529 \tabularnewline
74 & 17 & 17.2352941176471 & -0.235294117647058 \tabularnewline
75 & 12 & 17.2352941176471 & -5.23529411764706 \tabularnewline
76 & 13 & 17.2352941176471 & -4.23529411764706 \tabularnewline
77 & 17 & 17.2352941176471 & -0.235294117647058 \tabularnewline
78 & 17 & 17.2352941176471 & -0.235294117647058 \tabularnewline
79 & 20 & 25.2 & -5.2 \tabularnewline
80 & 17 & 17.2352941176471 & -0.235294117647058 \tabularnewline
81 & 17 & 17.2352941176471 & -0.235294117647058 \tabularnewline
82 & 17 & 17.2352941176471 & -0.235294117647058 \tabularnewline
83 & 22 & 25.2 & -3.2 \tabularnewline
84 & 15 & 17.2352941176471 & -2.23529411764706 \tabularnewline
85 & 12 & 17.2352941176471 & -5.23529411764706 \tabularnewline
86 & 17 & 17.2352941176471 & -0.235294117647058 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=153614&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]30[/C][C]30.59375[/C][C]-0.59375[/C][/ROW]
[ROW][C]2[/C][C]30[/C][C]30.59375[/C][C]-0.59375[/C][/ROW]
[ROW][C]3[/C][C]26[/C][C]30.59375[/C][C]-4.59375[/C][/ROW]
[ROW][C]4[/C][C]38[/C][C]39.7368421052632[/C][C]-1.73684210526316[/C][/ROW]
[ROW][C]5[/C][C]44[/C][C]39.7368421052632[/C][C]4.26315789473684[/C][/ROW]
[ROW][C]6[/C][C]30[/C][C]30.59375[/C][C]-0.59375[/C][/ROW]
[ROW][C]7[/C][C]40[/C][C]39.7368421052632[/C][C]0.263157894736842[/C][/ROW]
[ROW][C]8[/C][C]47[/C][C]39.7368421052632[/C][C]7.26315789473684[/C][/ROW]
[ROW][C]9[/C][C]30[/C][C]30.59375[/C][C]-0.59375[/C][/ROW]
[ROW][C]10[/C][C]31[/C][C]25.2[/C][C]5.8[/C][/ROW]
[ROW][C]11[/C][C]30[/C][C]30.59375[/C][C]-0.59375[/C][/ROW]
[ROW][C]12[/C][C]34[/C][C]35[/C][C]-1[/C][/ROW]
[ROW][C]13[/C][C]31[/C][C]30.59375[/C][C]0.40625[/C][/ROW]
[ROW][C]14[/C][C]33[/C][C]30.59375[/C][C]2.40625[/C][/ROW]
[ROW][C]15[/C][C]33[/C][C]39.7368421052632[/C][C]-6.73684210526316[/C][/ROW]
[ROW][C]16[/C][C]36[/C][C]39.7368421052632[/C][C]-3.73684210526316[/C][/ROW]
[ROW][C]17[/C][C]14[/C][C]17.2352941176471[/C][C]-3.23529411764706[/C][/ROW]
[ROW][C]18[/C][C]17[/C][C]17.2352941176471[/C][C]-0.235294117647058[/C][/ROW]
[ROW][C]19[/C][C]32[/C][C]30.59375[/C][C]1.40625[/C][/ROW]
[ROW][C]20[/C][C]30[/C][C]30.59375[/C][C]-0.59375[/C][/ROW]
[ROW][C]21[/C][C]35[/C][C]30.59375[/C][C]4.40625[/C][/ROW]
[ROW][C]22[/C][C]28[/C][C]30.59375[/C][C]-2.59375[/C][/ROW]
[ROW][C]23[/C][C]34[/C][C]30.59375[/C][C]3.40625[/C][/ROW]
[ROW][C]24[/C][C]39[/C][C]39.7368421052632[/C][C]-0.736842105263158[/C][/ROW]
[ROW][C]25[/C][C]39[/C][C]39.7368421052632[/C][C]-0.736842105263158[/C][/ROW]
[ROW][C]26[/C][C]29[/C][C]30.59375[/C][C]-1.59375[/C][/ROW]
[ROW][C]27[/C][C]44[/C][C]39.7368421052632[/C][C]4.26315789473684[/C][/ROW]
[ROW][C]28[/C][C]21[/C][C]25.2[/C][C]-4.2[/C][/ROW]
[ROW][C]29[/C][C]28[/C][C]30.59375[/C][C]-2.59375[/C][/ROW]
[ROW][C]30[/C][C]28[/C][C]30.59375[/C][C]-2.59375[/C][/ROW]
[ROW][C]31[/C][C]38[/C][C]39.7368421052632[/C][C]-1.73684210526316[/C][/ROW]
[ROW][C]32[/C][C]32[/C][C]30.59375[/C][C]1.40625[/C][/ROW]
[ROW][C]33[/C][C]29[/C][C]30.59375[/C][C]-1.59375[/C][/ROW]
[ROW][C]34[/C][C]27[/C][C]30.59375[/C][C]-3.59375[/C][/ROW]
[ROW][C]35[/C][C]40[/C][C]39.7368421052632[/C][C]0.263157894736842[/C][/ROW]
[ROW][C]36[/C][C]40[/C][C]39.7368421052632[/C][C]0.263157894736842[/C][/ROW]
[ROW][C]37[/C][C]28[/C][C]25.2[/C][C]2.8[/C][/ROW]
[ROW][C]38[/C][C]34[/C][C]30.59375[/C][C]3.40625[/C][/ROW]
[ROW][C]39[/C][C]33[/C][C]35[/C][C]-2[/C][/ROW]
[ROW][C]40[/C][C]33[/C][C]30.59375[/C][C]2.40625[/C][/ROW]
[ROW][C]41[/C][C]35[/C][C]25.2[/C][C]9.8[/C][/ROW]
[ROW][C]42[/C][C]29[/C][C]30.59375[/C][C]-1.59375[/C][/ROW]
[ROW][C]43[/C][C]20[/C][C]25.2[/C][C]-5.2[/C][/ROW]
[ROW][C]44[/C][C]37[/C][C]39.7368421052632[/C][C]-2.73684210526316[/C][/ROW]
[ROW][C]45[/C][C]33[/C][C]35[/C][C]-2[/C][/ROW]
[ROW][C]46[/C][C]29[/C][C]30.59375[/C][C]-1.59375[/C][/ROW]
[ROW][C]47[/C][C]28[/C][C]30.59375[/C][C]-2.59375[/C][/ROW]
[ROW][C]48[/C][C]21[/C][C]17.2352941176471[/C][C]3.76470588235294[/C][/ROW]
[ROW][C]49[/C][C]41[/C][C]39.7368421052632[/C][C]1.26315789473684[/C][/ROW]
[ROW][C]50[/C][C]20[/C][C]17.2352941176471[/C][C]2.76470588235294[/C][/ROW]
[ROW][C]51[/C][C]30[/C][C]30.59375[/C][C]-0.59375[/C][/ROW]
[ROW][C]52[/C][C]22[/C][C]30.59375[/C][C]-8.59375[/C][/ROW]
[ROW][C]53[/C][C]42[/C][C]35[/C][C]7[/C][/ROW]
[ROW][C]54[/C][C]32[/C][C]30.59375[/C][C]1.40625[/C][/ROW]
[ROW][C]55[/C][C]36[/C][C]30.59375[/C][C]5.40625[/C][/ROW]
[ROW][C]56[/C][C]31[/C][C]35[/C][C]-4[/C][/ROW]
[ROW][C]57[/C][C]33[/C][C]30.59375[/C][C]2.40625[/C][/ROW]
[ROW][C]58[/C][C]40[/C][C]39.7368421052632[/C][C]0.263157894736842[/C][/ROW]
[ROW][C]59[/C][C]38[/C][C]30.59375[/C][C]7.40625[/C][/ROW]
[ROW][C]60[/C][C]24[/C][C]25.2[/C][C]-1.2[/C][/ROW]
[ROW][C]61[/C][C]43[/C][C]39.7368421052632[/C][C]3.26315789473684[/C][/ROW]
[ROW][C]62[/C][C]31[/C][C]30.59375[/C][C]0.40625[/C][/ROW]
[ROW][C]63[/C][C]40[/C][C]39.7368421052632[/C][C]0.263157894736842[/C][/ROW]
[ROW][C]64[/C][C]37[/C][C]39.7368421052632[/C][C]-2.73684210526316[/C][/ROW]
[ROW][C]65[/C][C]31[/C][C]35[/C][C]-4[/C][/ROW]
[ROW][C]66[/C][C]21[/C][C]25.2[/C][C]-4.2[/C][/ROW]
[ROW][C]67[/C][C]39[/C][C]35[/C][C]4[/C][/ROW]
[ROW][C]68[/C][C]32[/C][C]30.59375[/C][C]1.40625[/C][/ROW]
[ROW][C]69[/C][C]18[/C][C]17.2352941176471[/C][C]0.764705882352942[/C][/ROW]
[ROW][C]70[/C][C]39[/C][C]39.7368421052632[/C][C]-0.736842105263158[/C][/ROW]
[ROW][C]71[/C][C]30[/C][C]25.2[/C][C]4.8[/C][/ROW]
[ROW][C]72[/C][C]37[/C][C]35[/C][C]2[/C][/ROW]
[ROW][C]73[/C][C]32[/C][C]17.2352941176471[/C][C]14.7647058823529[/C][/ROW]
[ROW][C]74[/C][C]17[/C][C]17.2352941176471[/C][C]-0.235294117647058[/C][/ROW]
[ROW][C]75[/C][C]12[/C][C]17.2352941176471[/C][C]-5.23529411764706[/C][/ROW]
[ROW][C]76[/C][C]13[/C][C]17.2352941176471[/C][C]-4.23529411764706[/C][/ROW]
[ROW][C]77[/C][C]17[/C][C]17.2352941176471[/C][C]-0.235294117647058[/C][/ROW]
[ROW][C]78[/C][C]17[/C][C]17.2352941176471[/C][C]-0.235294117647058[/C][/ROW]
[ROW][C]79[/C][C]20[/C][C]25.2[/C][C]-5.2[/C][/ROW]
[ROW][C]80[/C][C]17[/C][C]17.2352941176471[/C][C]-0.235294117647058[/C][/ROW]
[ROW][C]81[/C][C]17[/C][C]17.2352941176471[/C][C]-0.235294117647058[/C][/ROW]
[ROW][C]82[/C][C]17[/C][C]17.2352941176471[/C][C]-0.235294117647058[/C][/ROW]
[ROW][C]83[/C][C]22[/C][C]25.2[/C][C]-3.2[/C][/ROW]
[ROW][C]84[/C][C]15[/C][C]17.2352941176471[/C][C]-2.23529411764706[/C][/ROW]
[ROW][C]85[/C][C]12[/C][C]17.2352941176471[/C][C]-5.23529411764706[/C][/ROW]
[ROW][C]86[/C][C]17[/C][C]17.2352941176471[/C][C]-0.235294117647058[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=153614&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153614&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
13030.59375-0.59375
23030.59375-0.59375
32630.59375-4.59375
43839.7368421052632-1.73684210526316
54439.73684210526324.26315789473684
63030.59375-0.59375
74039.73684210526320.263157894736842
84739.73684210526327.26315789473684
93030.59375-0.59375
103125.25.8
113030.59375-0.59375
123435-1
133130.593750.40625
143330.593752.40625
153339.7368421052632-6.73684210526316
163639.7368421052632-3.73684210526316
171417.2352941176471-3.23529411764706
181717.2352941176471-0.235294117647058
193230.593751.40625
203030.59375-0.59375
213530.593754.40625
222830.59375-2.59375
233430.593753.40625
243939.7368421052632-0.736842105263158
253939.7368421052632-0.736842105263158
262930.59375-1.59375
274439.73684210526324.26315789473684
282125.2-4.2
292830.59375-2.59375
302830.59375-2.59375
313839.7368421052632-1.73684210526316
323230.593751.40625
332930.59375-1.59375
342730.59375-3.59375
354039.73684210526320.263157894736842
364039.73684210526320.263157894736842
372825.22.8
383430.593753.40625
393335-2
403330.593752.40625
413525.29.8
422930.59375-1.59375
432025.2-5.2
443739.7368421052632-2.73684210526316
453335-2
462930.59375-1.59375
472830.59375-2.59375
482117.23529411764713.76470588235294
494139.73684210526321.26315789473684
502017.23529411764712.76470588235294
513030.59375-0.59375
522230.59375-8.59375
5342357
543230.593751.40625
553630.593755.40625
563135-4
573330.593752.40625
584039.73684210526320.263157894736842
593830.593757.40625
602425.2-1.2
614339.73684210526323.26315789473684
623130.593750.40625
634039.73684210526320.263157894736842
643739.7368421052632-2.73684210526316
653135-4
662125.2-4.2
6739354
683230.593751.40625
691817.23529411764710.764705882352942
703939.7368421052632-0.736842105263158
713025.24.8
7237352
733217.235294117647114.7647058823529
741717.2352941176471-0.235294117647058
751217.2352941176471-5.23529411764706
761317.2352941176471-4.23529411764706
771717.2352941176471-0.235294117647058
781717.2352941176471-0.235294117647058
792025.2-5.2
801717.2352941176471-0.235294117647058
811717.2352941176471-0.235294117647058
821717.2352941176471-0.235294117647058
832225.2-3.2
841517.2352941176471-2.23529411764706
851217.2352941176471-5.23529411764706
861717.2352941176471-0.235294117647058



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