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 computationMon, 19 Dec 2011 15:07:16 -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/19/t13243252581mbyocp0hlg8chm.htm/, Retrieved Wed, 29 May 2024 04:07:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=157664, Retrieved Wed, 29 May 2024 04:07:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact84
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [RFC - Examen] [2011-12-19 19:28:42] [7ec97e350862fea9ec6e4fa3b5b6058f]
- RMP   [Recursive Partitioning (Regression Trees)] [RFC - Examen (Reg...] [2011-12-19 20:03:23] [7ec97e350862fea9ec6e4fa3b5b6058f]
- R  D      [Recursive Partitioning (Regression Trees)] [RFC - numerieke t...] [2011-12-19 20:07:16] [10a6f28c51bb1cb94db47cee32729d66] [Current]
Feedback Forum

Post a new message
Dataseries X:
56	79	30	115	94	146283	26
89	108	30	116	103	96933	0
44	43	26	100	93	95757	27
84	78	38	140	123	143983	23
88	86	44	166	148	75851	0
55	44	30	99	90	59238	27
60	104	40	139	124	93163	0
154	158	47	181	168	151511	17
53	102	30	116	115	136368	25
119	77	31	116	71	112642	27
75	80	30	108	108	127766	26
92	123	34	129	120	85646	23
100	73	31	118	114	98579	27
73	105	33	125	120	131741	20
77	107	33	127	124	171975	24
99	84	36	136	126	159676	0
30	33	14	46	37	58391	23
76	42	17	54	38	31580	20
146	96	32	124	120	136815	25
67	106	30	115	93	120642	0
56	56	35	128	95	69107	26
58	59	28	97	90	108016	20
119	76	34	125	110	79336	28
66	91	39	149	138	93176	26
89	115	39	149	133	161632	0
41	76	29	108	96	102996	30
68	101	44	166	164	160604	12
168	94	21	80	78	158051	35
132	92	28	107	102	162647	0
71	75	28	107	99	60622	0
112	128	38	146	129	179566	0
70	56	32	123	114	96144	0
57	41	29	111	99	129847	25
103	67	27	105	104	71180	18
52	77	40	155	138	86767	0
62	66	40	155	151	93487	0
45	69	28	104	72	82981	20
46	105	34	132	120	73815	24
63	116	33	127	115	94552	0
53	62	33	122	98	67808	30
78	100	35	87	71	106175	27
46	67	29	109	107	76669	13
41	46	20	78	73	57283	18
91	135	37	141	129	72413	0
63	124	33	124	118	96971	31
63	58	29	112	104	120336	29
32	68	28	108	107	93913	29
34	37	21	78	36	32036	23
93	93	41	158	139	102255	28
55	56	20	78	56	63506	25
72	83	30	119	93	68370	23
42	59	22	88	87	50517	26
71	133	42	155	110	103950	23
65	106	32	123	83	84396	32
41	71	36	136	98	55515	18
86	116	31	117	82	209056	0
95	98	33	124	115	142775	33
49	64	40	151	140	68847	0
64	32	38	145	120	20112	28
38	25	24	87	66	61023	26
52	46	43	165	139	112494	24
247	63	31	120	119	78876	22
139	95	40	150	141	170745	0
110	113	37	136	133	122037	30
67	111	31	116	98	112283	19
83	120	39	150	117	120691	21
70	87	32	118	105	122422	0
32	25	18	71	55	25899	29
83	131	39	144	132	139296	25
70	47	30	110	73	89455	29
103	109	37	147	86	147866	0
34	37	32	111	48	14336	0
40	15	17	68	48	30059	27
46	54	12	48	43	41907	27
18	16	13	51	46	35885	25
60	22	17	68	65	55764	14
39	37	17	64	52	35619	27
31	29	20	76	68	40557	25
54	55	17	66	47	44197	23
14	5	17	68	41	4103	0
23	0	17	66	47	4694	25
77	27	22	83	71	62991	22
19	37	15	55	30	24261	20
49	29	12	41	24	21425	23
20	17	17	66	63	27184	24




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157664&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.3502
R-squared0.1227
RMSE10.5537

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

[TABLE]
[ROW][C]Goodness of Fit[/C][/ROW]
[ROW][C]Correlation[/C][C]0.3502[/C][/ROW]
[ROW][C]R-squared[/C][C]0.1227[/C][/ROW]
[ROW][C]RMSE[/C][C]10.5537[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157664&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157664&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.3502
R-squared0.1227
RMSE10.5537







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
12620.83870967741945.16129032258064
2020.8387096774194-20.8387096774194
32720.83870967741946.16129032258064
42311.956521739130411.0434782608696
5011.9565217391304-11.9565217391304
62720.83870967741946.16129032258064
7011.9565217391304-11.9565217391304
81711.95652173913045.04347826086956
92520.83870967741944.16129032258064
102720.83870967741946.16129032258064
112620.83870967741945.16129032258064
122320.83870967741942.16129032258064
132720.83870967741946.16129032258064
142020.8387096774194-0.838709677419356
152420.83870967741943.16129032258064
16011.9565217391304-11.9565217391304
172320.83870967741942.16129032258064
182020.8387096774194-0.838709677419356
192520.83870967741944.16129032258064
20020.8387096774194-20.8387096774194
212620.83870967741945.16129032258064
222020.8387096774194-0.838709677419356
232820.83870967741947.16129032258064
242611.956521739130414.0434782608696
25011.9565217391304-11.9565217391304
263020.83870967741949.16129032258064
271211.95652173913040.0434782608695645
283520.838709677419414.1612903225806
29020.8387096774194-20.8387096774194
30020.8387096774194-20.8387096774194
31011.9565217391304-11.9565217391304
32020.8387096774194-20.8387096774194
332520.83870967741944.16129032258064
341820.8387096774194-2.83870967741936
35011.9565217391304-11.9565217391304
36011.9565217391304-11.9565217391304
372020.8387096774194-0.838709677419356
382420.83870967741943.16129032258064
39020.8387096774194-20.8387096774194
403020.83870967741949.16129032258064
412720.83870967741946.16129032258064
421320.8387096774194-7.83870967741936
431820.8387096774194-2.83870967741936
44011.9565217391304-11.9565217391304
453120.838709677419410.1612903225806
462920.83870967741948.16129032258064
472920.83870967741948.16129032258064
482320.83870967741942.16129032258064
492811.956521739130416.0434782608696
502520.83870967741944.16129032258064
512320.83870967741942.16129032258064
522620.83870967741945.16129032258064
532311.956521739130411.0434782608696
543220.838709677419411.1612903225806
551811.95652173913046.04347826086956
56020.8387096774194-20.8387096774194
573320.838709677419412.1612903225806
58011.9565217391304-11.9565217391304
592811.956521739130416.0434782608696
602620.83870967741945.16129032258064
612411.956521739130412.0434782608696
622220.83870967741941.16129032258064
63011.9565217391304-11.9565217391304
643011.956521739130418.0434782608696
651920.8387096774194-1.83870967741936
662111.95652173913049.04347826086956
67020.8387096774194-20.8387096774194
682920.83870967741948.16129032258064
692511.956521739130413.0434782608696
702920.83870967741948.16129032258064
71011.9565217391304-11.9565217391304
72020.8387096774194-20.8387096774194
732720.83870967741946.16129032258064
742720.83870967741946.16129032258064
752520.83870967741944.16129032258064
761420.8387096774194-6.83870967741936
772720.83870967741946.16129032258064
782520.83870967741944.16129032258064
792320.83870967741942.16129032258064
80020.8387096774194-20.8387096774194
812520.83870967741944.16129032258064
822220.83870967741941.16129032258064
832020.8387096774194-0.838709677419356
842320.83870967741942.16129032258064
852420.83870967741943.16129032258064

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 26 & 20.8387096774194 & 5.16129032258064 \tabularnewline
2 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
3 & 27 & 20.8387096774194 & 6.16129032258064 \tabularnewline
4 & 23 & 11.9565217391304 & 11.0434782608696 \tabularnewline
5 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
6 & 27 & 20.8387096774194 & 6.16129032258064 \tabularnewline
7 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
8 & 17 & 11.9565217391304 & 5.04347826086956 \tabularnewline
9 & 25 & 20.8387096774194 & 4.16129032258064 \tabularnewline
10 & 27 & 20.8387096774194 & 6.16129032258064 \tabularnewline
11 & 26 & 20.8387096774194 & 5.16129032258064 \tabularnewline
12 & 23 & 20.8387096774194 & 2.16129032258064 \tabularnewline
13 & 27 & 20.8387096774194 & 6.16129032258064 \tabularnewline
14 & 20 & 20.8387096774194 & -0.838709677419356 \tabularnewline
15 & 24 & 20.8387096774194 & 3.16129032258064 \tabularnewline
16 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
17 & 23 & 20.8387096774194 & 2.16129032258064 \tabularnewline
18 & 20 & 20.8387096774194 & -0.838709677419356 \tabularnewline
19 & 25 & 20.8387096774194 & 4.16129032258064 \tabularnewline
20 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
21 & 26 & 20.8387096774194 & 5.16129032258064 \tabularnewline
22 & 20 & 20.8387096774194 & -0.838709677419356 \tabularnewline
23 & 28 & 20.8387096774194 & 7.16129032258064 \tabularnewline
24 & 26 & 11.9565217391304 & 14.0434782608696 \tabularnewline
25 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
26 & 30 & 20.8387096774194 & 9.16129032258064 \tabularnewline
27 & 12 & 11.9565217391304 & 0.0434782608695645 \tabularnewline
28 & 35 & 20.8387096774194 & 14.1612903225806 \tabularnewline
29 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
30 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
31 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
32 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
33 & 25 & 20.8387096774194 & 4.16129032258064 \tabularnewline
34 & 18 & 20.8387096774194 & -2.83870967741936 \tabularnewline
35 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
36 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
37 & 20 & 20.8387096774194 & -0.838709677419356 \tabularnewline
38 & 24 & 20.8387096774194 & 3.16129032258064 \tabularnewline
39 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
40 & 30 & 20.8387096774194 & 9.16129032258064 \tabularnewline
41 & 27 & 20.8387096774194 & 6.16129032258064 \tabularnewline
42 & 13 & 20.8387096774194 & -7.83870967741936 \tabularnewline
43 & 18 & 20.8387096774194 & -2.83870967741936 \tabularnewline
44 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
45 & 31 & 20.8387096774194 & 10.1612903225806 \tabularnewline
46 & 29 & 20.8387096774194 & 8.16129032258064 \tabularnewline
47 & 29 & 20.8387096774194 & 8.16129032258064 \tabularnewline
48 & 23 & 20.8387096774194 & 2.16129032258064 \tabularnewline
49 & 28 & 11.9565217391304 & 16.0434782608696 \tabularnewline
50 & 25 & 20.8387096774194 & 4.16129032258064 \tabularnewline
51 & 23 & 20.8387096774194 & 2.16129032258064 \tabularnewline
52 & 26 & 20.8387096774194 & 5.16129032258064 \tabularnewline
53 & 23 & 11.9565217391304 & 11.0434782608696 \tabularnewline
54 & 32 & 20.8387096774194 & 11.1612903225806 \tabularnewline
55 & 18 & 11.9565217391304 & 6.04347826086956 \tabularnewline
56 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
57 & 33 & 20.8387096774194 & 12.1612903225806 \tabularnewline
58 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
59 & 28 & 11.9565217391304 & 16.0434782608696 \tabularnewline
60 & 26 & 20.8387096774194 & 5.16129032258064 \tabularnewline
61 & 24 & 11.9565217391304 & 12.0434782608696 \tabularnewline
62 & 22 & 20.8387096774194 & 1.16129032258064 \tabularnewline
63 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
64 & 30 & 11.9565217391304 & 18.0434782608696 \tabularnewline
65 & 19 & 20.8387096774194 & -1.83870967741936 \tabularnewline
66 & 21 & 11.9565217391304 & 9.04347826086956 \tabularnewline
67 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
68 & 29 & 20.8387096774194 & 8.16129032258064 \tabularnewline
69 & 25 & 11.9565217391304 & 13.0434782608696 \tabularnewline
70 & 29 & 20.8387096774194 & 8.16129032258064 \tabularnewline
71 & 0 & 11.9565217391304 & -11.9565217391304 \tabularnewline
72 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
73 & 27 & 20.8387096774194 & 6.16129032258064 \tabularnewline
74 & 27 & 20.8387096774194 & 6.16129032258064 \tabularnewline
75 & 25 & 20.8387096774194 & 4.16129032258064 \tabularnewline
76 & 14 & 20.8387096774194 & -6.83870967741936 \tabularnewline
77 & 27 & 20.8387096774194 & 6.16129032258064 \tabularnewline
78 & 25 & 20.8387096774194 & 4.16129032258064 \tabularnewline
79 & 23 & 20.8387096774194 & 2.16129032258064 \tabularnewline
80 & 0 & 20.8387096774194 & -20.8387096774194 \tabularnewline
81 & 25 & 20.8387096774194 & 4.16129032258064 \tabularnewline
82 & 22 & 20.8387096774194 & 1.16129032258064 \tabularnewline
83 & 20 & 20.8387096774194 & -0.838709677419356 \tabularnewline
84 & 23 & 20.8387096774194 & 2.16129032258064 \tabularnewline
85 & 24 & 20.8387096774194 & 3.16129032258064 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=157664&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]26[/C][C]20.8387096774194[/C][C]5.16129032258064[/C][/ROW]
[ROW][C]2[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]3[/C][C]27[/C][C]20.8387096774194[/C][C]6.16129032258064[/C][/ROW]
[ROW][C]4[/C][C]23[/C][C]11.9565217391304[/C][C]11.0434782608696[/C][/ROW]
[ROW][C]5[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]6[/C][C]27[/C][C]20.8387096774194[/C][C]6.16129032258064[/C][/ROW]
[ROW][C]7[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]8[/C][C]17[/C][C]11.9565217391304[/C][C]5.04347826086956[/C][/ROW]
[ROW][C]9[/C][C]25[/C][C]20.8387096774194[/C][C]4.16129032258064[/C][/ROW]
[ROW][C]10[/C][C]27[/C][C]20.8387096774194[/C][C]6.16129032258064[/C][/ROW]
[ROW][C]11[/C][C]26[/C][C]20.8387096774194[/C][C]5.16129032258064[/C][/ROW]
[ROW][C]12[/C][C]23[/C][C]20.8387096774194[/C][C]2.16129032258064[/C][/ROW]
[ROW][C]13[/C][C]27[/C][C]20.8387096774194[/C][C]6.16129032258064[/C][/ROW]
[ROW][C]14[/C][C]20[/C][C]20.8387096774194[/C][C]-0.838709677419356[/C][/ROW]
[ROW][C]15[/C][C]24[/C][C]20.8387096774194[/C][C]3.16129032258064[/C][/ROW]
[ROW][C]16[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]17[/C][C]23[/C][C]20.8387096774194[/C][C]2.16129032258064[/C][/ROW]
[ROW][C]18[/C][C]20[/C][C]20.8387096774194[/C][C]-0.838709677419356[/C][/ROW]
[ROW][C]19[/C][C]25[/C][C]20.8387096774194[/C][C]4.16129032258064[/C][/ROW]
[ROW][C]20[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]21[/C][C]26[/C][C]20.8387096774194[/C][C]5.16129032258064[/C][/ROW]
[ROW][C]22[/C][C]20[/C][C]20.8387096774194[/C][C]-0.838709677419356[/C][/ROW]
[ROW][C]23[/C][C]28[/C][C]20.8387096774194[/C][C]7.16129032258064[/C][/ROW]
[ROW][C]24[/C][C]26[/C][C]11.9565217391304[/C][C]14.0434782608696[/C][/ROW]
[ROW][C]25[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]26[/C][C]30[/C][C]20.8387096774194[/C][C]9.16129032258064[/C][/ROW]
[ROW][C]27[/C][C]12[/C][C]11.9565217391304[/C][C]0.0434782608695645[/C][/ROW]
[ROW][C]28[/C][C]35[/C][C]20.8387096774194[/C][C]14.1612903225806[/C][/ROW]
[ROW][C]29[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]30[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]31[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]32[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]33[/C][C]25[/C][C]20.8387096774194[/C][C]4.16129032258064[/C][/ROW]
[ROW][C]34[/C][C]18[/C][C]20.8387096774194[/C][C]-2.83870967741936[/C][/ROW]
[ROW][C]35[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]36[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]37[/C][C]20[/C][C]20.8387096774194[/C][C]-0.838709677419356[/C][/ROW]
[ROW][C]38[/C][C]24[/C][C]20.8387096774194[/C][C]3.16129032258064[/C][/ROW]
[ROW][C]39[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]40[/C][C]30[/C][C]20.8387096774194[/C][C]9.16129032258064[/C][/ROW]
[ROW][C]41[/C][C]27[/C][C]20.8387096774194[/C][C]6.16129032258064[/C][/ROW]
[ROW][C]42[/C][C]13[/C][C]20.8387096774194[/C][C]-7.83870967741936[/C][/ROW]
[ROW][C]43[/C][C]18[/C][C]20.8387096774194[/C][C]-2.83870967741936[/C][/ROW]
[ROW][C]44[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]45[/C][C]31[/C][C]20.8387096774194[/C][C]10.1612903225806[/C][/ROW]
[ROW][C]46[/C][C]29[/C][C]20.8387096774194[/C][C]8.16129032258064[/C][/ROW]
[ROW][C]47[/C][C]29[/C][C]20.8387096774194[/C][C]8.16129032258064[/C][/ROW]
[ROW][C]48[/C][C]23[/C][C]20.8387096774194[/C][C]2.16129032258064[/C][/ROW]
[ROW][C]49[/C][C]28[/C][C]11.9565217391304[/C][C]16.0434782608696[/C][/ROW]
[ROW][C]50[/C][C]25[/C][C]20.8387096774194[/C][C]4.16129032258064[/C][/ROW]
[ROW][C]51[/C][C]23[/C][C]20.8387096774194[/C][C]2.16129032258064[/C][/ROW]
[ROW][C]52[/C][C]26[/C][C]20.8387096774194[/C][C]5.16129032258064[/C][/ROW]
[ROW][C]53[/C][C]23[/C][C]11.9565217391304[/C][C]11.0434782608696[/C][/ROW]
[ROW][C]54[/C][C]32[/C][C]20.8387096774194[/C][C]11.1612903225806[/C][/ROW]
[ROW][C]55[/C][C]18[/C][C]11.9565217391304[/C][C]6.04347826086956[/C][/ROW]
[ROW][C]56[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]57[/C][C]33[/C][C]20.8387096774194[/C][C]12.1612903225806[/C][/ROW]
[ROW][C]58[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]59[/C][C]28[/C][C]11.9565217391304[/C][C]16.0434782608696[/C][/ROW]
[ROW][C]60[/C][C]26[/C][C]20.8387096774194[/C][C]5.16129032258064[/C][/ROW]
[ROW][C]61[/C][C]24[/C][C]11.9565217391304[/C][C]12.0434782608696[/C][/ROW]
[ROW][C]62[/C][C]22[/C][C]20.8387096774194[/C][C]1.16129032258064[/C][/ROW]
[ROW][C]63[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]64[/C][C]30[/C][C]11.9565217391304[/C][C]18.0434782608696[/C][/ROW]
[ROW][C]65[/C][C]19[/C][C]20.8387096774194[/C][C]-1.83870967741936[/C][/ROW]
[ROW][C]66[/C][C]21[/C][C]11.9565217391304[/C][C]9.04347826086956[/C][/ROW]
[ROW][C]67[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]68[/C][C]29[/C][C]20.8387096774194[/C][C]8.16129032258064[/C][/ROW]
[ROW][C]69[/C][C]25[/C][C]11.9565217391304[/C][C]13.0434782608696[/C][/ROW]
[ROW][C]70[/C][C]29[/C][C]20.8387096774194[/C][C]8.16129032258064[/C][/ROW]
[ROW][C]71[/C][C]0[/C][C]11.9565217391304[/C][C]-11.9565217391304[/C][/ROW]
[ROW][C]72[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]73[/C][C]27[/C][C]20.8387096774194[/C][C]6.16129032258064[/C][/ROW]
[ROW][C]74[/C][C]27[/C][C]20.8387096774194[/C][C]6.16129032258064[/C][/ROW]
[ROW][C]75[/C][C]25[/C][C]20.8387096774194[/C][C]4.16129032258064[/C][/ROW]
[ROW][C]76[/C][C]14[/C][C]20.8387096774194[/C][C]-6.83870967741936[/C][/ROW]
[ROW][C]77[/C][C]27[/C][C]20.8387096774194[/C][C]6.16129032258064[/C][/ROW]
[ROW][C]78[/C][C]25[/C][C]20.8387096774194[/C][C]4.16129032258064[/C][/ROW]
[ROW][C]79[/C][C]23[/C][C]20.8387096774194[/C][C]2.16129032258064[/C][/ROW]
[ROW][C]80[/C][C]0[/C][C]20.8387096774194[/C][C]-20.8387096774194[/C][/ROW]
[ROW][C]81[/C][C]25[/C][C]20.8387096774194[/C][C]4.16129032258064[/C][/ROW]
[ROW][C]82[/C][C]22[/C][C]20.8387096774194[/C][C]1.16129032258064[/C][/ROW]
[ROW][C]83[/C][C]20[/C][C]20.8387096774194[/C][C]-0.838709677419356[/C][/ROW]
[ROW][C]84[/C][C]23[/C][C]20.8387096774194[/C][C]2.16129032258064[/C][/ROW]
[ROW][C]85[/C][C]24[/C][C]20.8387096774194[/C][C]3.16129032258064[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157664&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157664&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
12620.83870967741945.16129032258064
2020.8387096774194-20.8387096774194
32720.83870967741946.16129032258064
42311.956521739130411.0434782608696
5011.9565217391304-11.9565217391304
62720.83870967741946.16129032258064
7011.9565217391304-11.9565217391304
81711.95652173913045.04347826086956
92520.83870967741944.16129032258064
102720.83870967741946.16129032258064
112620.83870967741945.16129032258064
122320.83870967741942.16129032258064
132720.83870967741946.16129032258064
142020.8387096774194-0.838709677419356
152420.83870967741943.16129032258064
16011.9565217391304-11.9565217391304
172320.83870967741942.16129032258064
182020.8387096774194-0.838709677419356
192520.83870967741944.16129032258064
20020.8387096774194-20.8387096774194
212620.83870967741945.16129032258064
222020.8387096774194-0.838709677419356
232820.83870967741947.16129032258064
242611.956521739130414.0434782608696
25011.9565217391304-11.9565217391304
263020.83870967741949.16129032258064
271211.95652173913040.0434782608695645
283520.838709677419414.1612903225806
29020.8387096774194-20.8387096774194
30020.8387096774194-20.8387096774194
31011.9565217391304-11.9565217391304
32020.8387096774194-20.8387096774194
332520.83870967741944.16129032258064
341820.8387096774194-2.83870967741936
35011.9565217391304-11.9565217391304
36011.9565217391304-11.9565217391304
372020.8387096774194-0.838709677419356
382420.83870967741943.16129032258064
39020.8387096774194-20.8387096774194
403020.83870967741949.16129032258064
412720.83870967741946.16129032258064
421320.8387096774194-7.83870967741936
431820.8387096774194-2.83870967741936
44011.9565217391304-11.9565217391304
453120.838709677419410.1612903225806
462920.83870967741948.16129032258064
472920.83870967741948.16129032258064
482320.83870967741942.16129032258064
492811.956521739130416.0434782608696
502520.83870967741944.16129032258064
512320.83870967741942.16129032258064
522620.83870967741945.16129032258064
532311.956521739130411.0434782608696
543220.838709677419411.1612903225806
551811.95652173913046.04347826086956
56020.8387096774194-20.8387096774194
573320.838709677419412.1612903225806
58011.9565217391304-11.9565217391304
592811.956521739130416.0434782608696
602620.83870967741945.16129032258064
612411.956521739130412.0434782608696
622220.83870967741941.16129032258064
63011.9565217391304-11.9565217391304
643011.956521739130418.0434782608696
651920.8387096774194-1.83870967741936
662111.95652173913049.04347826086956
67020.8387096774194-20.8387096774194
682920.83870967741948.16129032258064
692511.956521739130413.0434782608696
702920.83870967741948.16129032258064
71011.9565217391304-11.9565217391304
72020.8387096774194-20.8387096774194
732720.83870967741946.16129032258064
742720.83870967741946.16129032258064
752520.83870967741944.16129032258064
761420.8387096774194-6.83870967741936
772720.83870967741946.16129032258064
782520.83870967741944.16129032258064
792320.83870967741942.16129032258064
80020.8387096774194-20.8387096774194
812520.83870967741944.16129032258064
822220.83870967741941.16129032258064
832020.8387096774194-0.838709677419356
842320.83870967741942.16129032258064
852420.83870967741943.16129032258064



Parameters (Session):
Parameters (R input):
par1 = 7 ; 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')
}