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 09:54:56 -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/t1323528912cuc3r8bijuysqe9.htm/, Retrieved Tue, 28 May 2024 05:15:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=153568, Retrieved Tue, 28 May 2024 05:15:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact132
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 18:59:57] [b98453cac15ba1066b407e146608df68]
- R PD    [Recursive Partitioning (Regression Trees)] [Recursive partiti...] [2011-12-10 14:54:56] [8432dc408001a08517818ba7ac24bdb0] [Current]
Feedback Forum

Post a new message
Dataseries X:
2	1418	210907	56	396	81	3	79	30	115	94	112285	24188	146283	144	145
4	2172	179321	89	967	125	2	108	30	116	103	101193	32287	96933	135	132
0	1583	149061	44	656	66	5	43	26	100	93	116174	27101	95757	84	84
0	1764	237213	84	655	74	0	78	38	140	123	66198	19716	143983	130	127
-4	1495	173326	88	465	49	7	86	44	166	148	71701	17753	75851	82	78
4	1373	133131	55	525	52	7	44	30	99	90	57793	9028	59238	60	60
4	2187	258873	60	885	88	3	104	40	139	124	80444	18653	93163	131	131
0	4041	324799	154	1436	108	0	158	47	181	168	97668	29498	151511	140	133
-1	1706	230964	53	612	43	4	102	30	116	115	133824	27563	136368	151	150
0	2152	236785	119	865	75	3	77	31	116	71	101481	18293	112642	91	91
1	2242	344297	75	963	86	1	80	30	108	108	67654	16116	127766	119	118
0	2515	174724	92	966	135	0	123	34	129	120	69112	26569	85646	123	119
3	2147	174415	100	801	63	0	73	31	118	114	82753	24785	98579	90	89
-1	1638	223632	73	513	52	0	105	33	125	120	72654	23825	131741	113	108
4	2452	294424	77	992	59	2	107	33	127	124	101494	34461	171975	175	162
3	2662	325107	99	937	64	0	84	36	136	126	79215	24919	159676	96	92
1	865	106408	30	260	32	1	33	14	46	37	31081	12558	58391	41	41
0	1793	96560	76	503	129	0	42	17	54	38	22996	7784	31580	47	47
-2	2527	265769	146	927	37	2	96	32	124	120	83122	28522	136815	126	120
-3	2747	269651	67	1269	31	10	106	30	115	93	70106	22265	120642	105	105
-4	1324	149112	56	537	65	6	56	35	128	95	60578	14459	69107	80	79
2	1383	152871	58	532	74	5	59	28	97	90	79892	22240	108016	73	70
2	4308	362301	119	1635	715	2	76	34	125	110	100708	11912	79336	68	67
-4	1831	183167	66	557	66	0	91	39	149	138	82875	18220	93176	127	127
3	3373	277965	89	1178	106	8	115	39	149	133	139077	19199	161632	154	152
2	2352	218946	41	866	112	1	76	29	108	96	80670	25239	102996	112	109
2	2144	244052	68	574	66	5	101	44	166	164	143558	29801	160604	137	133
0	4691	341570	168	1276	190	1	94	21	80	78	117105	18450	158051	135	123
5	2694	233328	132	825	165	5	92	28	107	102	120733	34861	162647	230	230
-2	1769	206161	71	663	61	12	75	28	107	99	73107	16688	60622	71	68
0	3148	311473	112	1069	53	8	128	38	146	129	132068	24683	179566	147	147
-2	1954	207176	70	711	38	8	56	32	123	114	87011	21436	96144	105	101
-3	1226	196553	57	503	50	2	41	29	111	99	95260	30546	129847	107	108
2	1496	143246	103	464	42	5	67	27	105	104	106671	15977	71180	116	114
2	1943	182192	52	657	53	12	77	40	155	138	70054	14251	86767	89	88
2	1762	194979	62	577	50	7	66	40	155	151	74011	16851	93487	84	83
0	1403	167488	45	619	77	2	69	28	104	72	83737	21113	82981	113	113
4	1425	143756	46	479	57	0	105	34	132	120	69094	17401	73815	120	118
4	1857	275541	63	817	73	4	116	33	127	115	93133	23958	94552	110	110
2	1420	152299	53	537	63	0	62	33	122	98	61370	14587	67808	78	76
2	1644	193339	78	465	47	2	100	35	87	71	84651	20537	106175	145	141
-4	1054	130585	46	299	57	5	67	29	109	107	95364	30495	76669	91	91
3	937	112611	41	248	36	0	46	20	78	73	26706	7117	57283	48	48
3	2547	148446	91	905	63	1	135	37	141	129	126846	33473	72413	150	144
2	1626	182079	63	512	63	2	124	33	124	118	102860	21115	96971	181	168
-1	1964	243060	63	786	110	4	58	29	112	104	111813	32902	120336	121	117
-3	1381	162765	32	489	56	2	68	28	108	107	120293	25131	93913	99	100
0	1290	85574	34	351	71	0	37	21	78	36	24266	6943	32036	40	37
1	1982	225060	93	669	56	7	93	41	158	139	109825	31808	102255	87	87
-3	1590	133328	55	506	79	0	56	20	78	56	40909	17014	63506	66	64
3	1281	100750	72	407	67	0	83	30	119	93	140867	6440	68370	58	58
0	1272	101523	42	316	76	0	59	22	88	87	61056	18647	50517	77	76
0	1944	243511	71	603	65	0	133	42	155	110	101338	20556	103950	130	129
0	1605	152474	65	577	45	0	106	32	123	83	65567	22392	84396	101	101
3	1386	132487	41	411	97	0	71	36	136	98	40735	8388	55515	120	89
-3	2395	317394	86	975	53	1	116	31	117	82	91413	22120	209056	195	193
0	2699	244749	95	964	144	2	98	33	124	115	76643	20923	142775	106	101
-4	1606	184510	49	537	60	7	64	40	151	140	110681	20237	68847	83	82
2	1204	128423	64	369	89	8	32	38	145	120	92696	3769	20112	37	36
-1	1138	97839	38	417	42	2	25	24	87	66	94785	12252	61023	77	75
3	1111	172494	52	389	52	0	46	43	165	139	86687	21721	112494	144	131
2	2186	229242	247	719	128	4	63	31	120	119	91721	17939	78876	95	90
5	3604	351619	139	1277	142	4	95	40	150	141	115168	23436	170745	169	166
2	3261	324598	110	1402	128	0	113	37	136	133	135777	34538	122037	134	133
-2	1641	195838	67	564	50	1	111	31	116	98	102372	25515	112283	197	196
0	2312	254488	83	747	50	10	120	39	150	117	103772	29402	120691	140	136
3	2201	199476	70	861	46	2	87	32	118	105	135400	28732	122422	125	123
-2	961	92499	32	319	57	0	25	18	71	55	21399	5250	25899	21	21
0	1900	224330	83	612	52	1	131	39	144	132	130115	28608	139296	167	163
6	1645	181633	70	564	48	2	47	30	110	73	64466	14817	89455	96	96
-3	2429	271856	103	824	91	1	109	37	147	86	54990	16714	147866	151	151
3	872	95227	34	239	70	0	37	32	111	48	34777	1669	14336	23	23
0	1018	98146	40	459	37	0	15	17	68	48	27114	7768	30059	21	14
-2	1403	118612	46	454	72	2	54	12	48	43	30080	7936	41907	90	87
1	616	65475	18	225	24	2	16	13	51	46	69008	7294	35885	60	56
0	1232	108446	60	389	90	1	22	17	68	65	46300	13275	55764	26	25
2	1255	121848	39	339	45	0	37	17	64	52	30594	5401	35619	41	41
2	995	76302	31	333	26	0	29	20	76	68	30976	8702	40557	35	33
-3	2048	98104	54	636	132	2	55	17	66	47	25568	8030	44197	68	68
-2	301	30989	14	93	35	0	5	17	68	41	4154	1278	4103	6	6
1	628	31774	23	170	48	1	0	17	66	47	4143	1574	4694	0	0
-4	1597	150580	77	530	124	0	27	22	83	71	45588	9653	62991	41	39
0	717	54157	19	201	35	0	37	15	55	30	18625	7067	24261	38	37
1	652	59382	49	227	49	0	29	12	41	24	26263	1514	21425	47	47
0	733	84105	20	261	45	0	17	17	66	63	20055	5432	27184	34	34




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153568&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
CorrelationNA
R-squaredNA
RMSE2.4475

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153568&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
CorrelationNA
R-squaredNA
RMSE2.4475







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
120.5294117647058821.47058823529412
240.5294117647058823.47058823529412
300.529411764705882-0.529411764705882
400.529411764705882-0.529411764705882
5-40.529411764705882-4.52941176470588
640.5294117647058823.47058823529412
740.5294117647058823.47058823529412
800.529411764705882-0.529411764705882
9-10.529411764705882-1.52941176470588
1000.529411764705882-0.529411764705882
1110.5294117647058820.470588235294118
1200.529411764705882-0.529411764705882
1330.5294117647058822.47058823529412
14-10.529411764705882-1.52941176470588
1540.5294117647058823.47058823529412
1630.5294117647058822.47058823529412
1710.5294117647058820.470588235294118
1800.529411764705882-0.529411764705882
19-20.529411764705882-2.52941176470588
20-30.529411764705882-3.52941176470588
21-40.529411764705882-4.52941176470588
2220.5294117647058821.47058823529412
2320.5294117647058821.47058823529412
24-40.529411764705882-4.52941176470588
2530.5294117647058822.47058823529412
2620.5294117647058821.47058823529412
2720.5294117647058821.47058823529412
2800.529411764705882-0.529411764705882
2950.5294117647058824.47058823529412
30-20.529411764705882-2.52941176470588
3100.529411764705882-0.529411764705882
32-20.529411764705882-2.52941176470588
33-30.529411764705882-3.52941176470588
3420.5294117647058821.47058823529412
3520.5294117647058821.47058823529412
3620.5294117647058821.47058823529412
3700.529411764705882-0.529411764705882
3840.5294117647058823.47058823529412
3940.5294117647058823.47058823529412
4020.5294117647058821.47058823529412
4120.5294117647058821.47058823529412
42-40.529411764705882-4.52941176470588
4330.5294117647058822.47058823529412
4430.5294117647058822.47058823529412
4520.5294117647058821.47058823529412
46-10.529411764705882-1.52941176470588
47-30.529411764705882-3.52941176470588
4800.529411764705882-0.529411764705882
4910.5294117647058820.470588235294118
50-30.529411764705882-3.52941176470588
5130.5294117647058822.47058823529412
5200.529411764705882-0.529411764705882
5300.529411764705882-0.529411764705882
5400.529411764705882-0.529411764705882
5530.5294117647058822.47058823529412
56-30.529411764705882-3.52941176470588
5700.529411764705882-0.529411764705882
58-40.529411764705882-4.52941176470588
5920.5294117647058821.47058823529412
60-10.529411764705882-1.52941176470588
6130.5294117647058822.47058823529412
6220.5294117647058821.47058823529412
6350.5294117647058824.47058823529412
6420.5294117647058821.47058823529412
65-20.529411764705882-2.52941176470588
6600.529411764705882-0.529411764705882
6730.5294117647058822.47058823529412
68-20.529411764705882-2.52941176470588
6900.529411764705882-0.529411764705882
7060.5294117647058825.47058823529412
71-30.529411764705882-3.52941176470588
7230.5294117647058822.47058823529412
7300.529411764705882-0.529411764705882
74-20.529411764705882-2.52941176470588
7510.5294117647058820.470588235294118
7600.529411764705882-0.529411764705882
7720.5294117647058821.47058823529412
7820.5294117647058821.47058823529412
79-30.529411764705882-3.52941176470588
80-20.529411764705882-2.52941176470588
8110.5294117647058820.470588235294118
82-40.529411764705882-4.52941176470588
8300.529411764705882-0.529411764705882
8410.5294117647058820.470588235294118
8500.529411764705882-0.529411764705882

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
2 & 4 & 0.529411764705882 & 3.47058823529412 \tabularnewline
3 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
4 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
5 & -4 & 0.529411764705882 & -4.52941176470588 \tabularnewline
6 & 4 & 0.529411764705882 & 3.47058823529412 \tabularnewline
7 & 4 & 0.529411764705882 & 3.47058823529412 \tabularnewline
8 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
9 & -1 & 0.529411764705882 & -1.52941176470588 \tabularnewline
10 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
11 & 1 & 0.529411764705882 & 0.470588235294118 \tabularnewline
12 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
13 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
14 & -1 & 0.529411764705882 & -1.52941176470588 \tabularnewline
15 & 4 & 0.529411764705882 & 3.47058823529412 \tabularnewline
16 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
17 & 1 & 0.529411764705882 & 0.470588235294118 \tabularnewline
18 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
19 & -2 & 0.529411764705882 & -2.52941176470588 \tabularnewline
20 & -3 & 0.529411764705882 & -3.52941176470588 \tabularnewline
21 & -4 & 0.529411764705882 & -4.52941176470588 \tabularnewline
22 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
23 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
24 & -4 & 0.529411764705882 & -4.52941176470588 \tabularnewline
25 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
26 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
27 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
28 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
29 & 5 & 0.529411764705882 & 4.47058823529412 \tabularnewline
30 & -2 & 0.529411764705882 & -2.52941176470588 \tabularnewline
31 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
32 & -2 & 0.529411764705882 & -2.52941176470588 \tabularnewline
33 & -3 & 0.529411764705882 & -3.52941176470588 \tabularnewline
34 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
35 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
36 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
37 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
38 & 4 & 0.529411764705882 & 3.47058823529412 \tabularnewline
39 & 4 & 0.529411764705882 & 3.47058823529412 \tabularnewline
40 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
41 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
42 & -4 & 0.529411764705882 & -4.52941176470588 \tabularnewline
43 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
44 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
45 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
46 & -1 & 0.529411764705882 & -1.52941176470588 \tabularnewline
47 & -3 & 0.529411764705882 & -3.52941176470588 \tabularnewline
48 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
49 & 1 & 0.529411764705882 & 0.470588235294118 \tabularnewline
50 & -3 & 0.529411764705882 & -3.52941176470588 \tabularnewline
51 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
52 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
53 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
54 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
55 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
56 & -3 & 0.529411764705882 & -3.52941176470588 \tabularnewline
57 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
58 & -4 & 0.529411764705882 & -4.52941176470588 \tabularnewline
59 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
60 & -1 & 0.529411764705882 & -1.52941176470588 \tabularnewline
61 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
62 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
63 & 5 & 0.529411764705882 & 4.47058823529412 \tabularnewline
64 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
65 & -2 & 0.529411764705882 & -2.52941176470588 \tabularnewline
66 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
67 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
68 & -2 & 0.529411764705882 & -2.52941176470588 \tabularnewline
69 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
70 & 6 & 0.529411764705882 & 5.47058823529412 \tabularnewline
71 & -3 & 0.529411764705882 & -3.52941176470588 \tabularnewline
72 & 3 & 0.529411764705882 & 2.47058823529412 \tabularnewline
73 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
74 & -2 & 0.529411764705882 & -2.52941176470588 \tabularnewline
75 & 1 & 0.529411764705882 & 0.470588235294118 \tabularnewline
76 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
77 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
78 & 2 & 0.529411764705882 & 1.47058823529412 \tabularnewline
79 & -3 & 0.529411764705882 & -3.52941176470588 \tabularnewline
80 & -2 & 0.529411764705882 & -2.52941176470588 \tabularnewline
81 & 1 & 0.529411764705882 & 0.470588235294118 \tabularnewline
82 & -4 & 0.529411764705882 & -4.52941176470588 \tabularnewline
83 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
84 & 1 & 0.529411764705882 & 0.470588235294118 \tabularnewline
85 & 0 & 0.529411764705882 & -0.529411764705882 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=153568&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]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]2[/C][C]4[/C][C]0.529411764705882[/C][C]3.47058823529412[/C][/ROW]
[ROW][C]3[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]4[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]5[/C][C]-4[/C][C]0.529411764705882[/C][C]-4.52941176470588[/C][/ROW]
[ROW][C]6[/C][C]4[/C][C]0.529411764705882[/C][C]3.47058823529412[/C][/ROW]
[ROW][C]7[/C][C]4[/C][C]0.529411764705882[/C][C]3.47058823529412[/C][/ROW]
[ROW][C]8[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]9[/C][C]-1[/C][C]0.529411764705882[/C][C]-1.52941176470588[/C][/ROW]
[ROW][C]10[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]11[/C][C]1[/C][C]0.529411764705882[/C][C]0.470588235294118[/C][/ROW]
[ROW][C]12[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]13[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]14[/C][C]-1[/C][C]0.529411764705882[/C][C]-1.52941176470588[/C][/ROW]
[ROW][C]15[/C][C]4[/C][C]0.529411764705882[/C][C]3.47058823529412[/C][/ROW]
[ROW][C]16[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]17[/C][C]1[/C][C]0.529411764705882[/C][C]0.470588235294118[/C][/ROW]
[ROW][C]18[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]19[/C][C]-2[/C][C]0.529411764705882[/C][C]-2.52941176470588[/C][/ROW]
[ROW][C]20[/C][C]-3[/C][C]0.529411764705882[/C][C]-3.52941176470588[/C][/ROW]
[ROW][C]21[/C][C]-4[/C][C]0.529411764705882[/C][C]-4.52941176470588[/C][/ROW]
[ROW][C]22[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]23[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]24[/C][C]-4[/C][C]0.529411764705882[/C][C]-4.52941176470588[/C][/ROW]
[ROW][C]25[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]26[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]27[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]28[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]29[/C][C]5[/C][C]0.529411764705882[/C][C]4.47058823529412[/C][/ROW]
[ROW][C]30[/C][C]-2[/C][C]0.529411764705882[/C][C]-2.52941176470588[/C][/ROW]
[ROW][C]31[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]32[/C][C]-2[/C][C]0.529411764705882[/C][C]-2.52941176470588[/C][/ROW]
[ROW][C]33[/C][C]-3[/C][C]0.529411764705882[/C][C]-3.52941176470588[/C][/ROW]
[ROW][C]34[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]35[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]36[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]37[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]38[/C][C]4[/C][C]0.529411764705882[/C][C]3.47058823529412[/C][/ROW]
[ROW][C]39[/C][C]4[/C][C]0.529411764705882[/C][C]3.47058823529412[/C][/ROW]
[ROW][C]40[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]41[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]42[/C][C]-4[/C][C]0.529411764705882[/C][C]-4.52941176470588[/C][/ROW]
[ROW][C]43[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]44[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]45[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]46[/C][C]-1[/C][C]0.529411764705882[/C][C]-1.52941176470588[/C][/ROW]
[ROW][C]47[/C][C]-3[/C][C]0.529411764705882[/C][C]-3.52941176470588[/C][/ROW]
[ROW][C]48[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]49[/C][C]1[/C][C]0.529411764705882[/C][C]0.470588235294118[/C][/ROW]
[ROW][C]50[/C][C]-3[/C][C]0.529411764705882[/C][C]-3.52941176470588[/C][/ROW]
[ROW][C]51[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]52[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]53[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]54[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]55[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]56[/C][C]-3[/C][C]0.529411764705882[/C][C]-3.52941176470588[/C][/ROW]
[ROW][C]57[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]58[/C][C]-4[/C][C]0.529411764705882[/C][C]-4.52941176470588[/C][/ROW]
[ROW][C]59[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]60[/C][C]-1[/C][C]0.529411764705882[/C][C]-1.52941176470588[/C][/ROW]
[ROW][C]61[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]62[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]63[/C][C]5[/C][C]0.529411764705882[/C][C]4.47058823529412[/C][/ROW]
[ROW][C]64[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]65[/C][C]-2[/C][C]0.529411764705882[/C][C]-2.52941176470588[/C][/ROW]
[ROW][C]66[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]67[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]68[/C][C]-2[/C][C]0.529411764705882[/C][C]-2.52941176470588[/C][/ROW]
[ROW][C]69[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]70[/C][C]6[/C][C]0.529411764705882[/C][C]5.47058823529412[/C][/ROW]
[ROW][C]71[/C][C]-3[/C][C]0.529411764705882[/C][C]-3.52941176470588[/C][/ROW]
[ROW][C]72[/C][C]3[/C][C]0.529411764705882[/C][C]2.47058823529412[/C][/ROW]
[ROW][C]73[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]74[/C][C]-2[/C][C]0.529411764705882[/C][C]-2.52941176470588[/C][/ROW]
[ROW][C]75[/C][C]1[/C][C]0.529411764705882[/C][C]0.470588235294118[/C][/ROW]
[ROW][C]76[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]77[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]78[/C][C]2[/C][C]0.529411764705882[/C][C]1.47058823529412[/C][/ROW]
[ROW][C]79[/C][C]-3[/C][C]0.529411764705882[/C][C]-3.52941176470588[/C][/ROW]
[ROW][C]80[/C][C]-2[/C][C]0.529411764705882[/C][C]-2.52941176470588[/C][/ROW]
[ROW][C]81[/C][C]1[/C][C]0.529411764705882[/C][C]0.470588235294118[/C][/ROW]
[ROW][C]82[/C][C]-4[/C][C]0.529411764705882[/C][C]-4.52941176470588[/C][/ROW]
[ROW][C]83[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[ROW][C]84[/C][C]1[/C][C]0.529411764705882[/C][C]0.470588235294118[/C][/ROW]
[ROW][C]85[/C][C]0[/C][C]0.529411764705882[/C][C]-0.529411764705882[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=153568&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=153568&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
120.5294117647058821.47058823529412
240.5294117647058823.47058823529412
300.529411764705882-0.529411764705882
400.529411764705882-0.529411764705882
5-40.529411764705882-4.52941176470588
640.5294117647058823.47058823529412
740.5294117647058823.47058823529412
800.529411764705882-0.529411764705882
9-10.529411764705882-1.52941176470588
1000.529411764705882-0.529411764705882
1110.5294117647058820.470588235294118
1200.529411764705882-0.529411764705882
1330.5294117647058822.47058823529412
14-10.529411764705882-1.52941176470588
1540.5294117647058823.47058823529412
1630.5294117647058822.47058823529412
1710.5294117647058820.470588235294118
1800.529411764705882-0.529411764705882
19-20.529411764705882-2.52941176470588
20-30.529411764705882-3.52941176470588
21-40.529411764705882-4.52941176470588
2220.5294117647058821.47058823529412
2320.5294117647058821.47058823529412
24-40.529411764705882-4.52941176470588
2530.5294117647058822.47058823529412
2620.5294117647058821.47058823529412
2720.5294117647058821.47058823529412
2800.529411764705882-0.529411764705882
2950.5294117647058824.47058823529412
30-20.529411764705882-2.52941176470588
3100.529411764705882-0.529411764705882
32-20.529411764705882-2.52941176470588
33-30.529411764705882-3.52941176470588
3420.5294117647058821.47058823529412
3520.5294117647058821.47058823529412
3620.5294117647058821.47058823529412
3700.529411764705882-0.529411764705882
3840.5294117647058823.47058823529412
3940.5294117647058823.47058823529412
4020.5294117647058821.47058823529412
4120.5294117647058821.47058823529412
42-40.529411764705882-4.52941176470588
4330.5294117647058822.47058823529412
4430.5294117647058822.47058823529412
4520.5294117647058821.47058823529412
46-10.529411764705882-1.52941176470588
47-30.529411764705882-3.52941176470588
4800.529411764705882-0.529411764705882
4910.5294117647058820.470588235294118
50-30.529411764705882-3.52941176470588
5130.5294117647058822.47058823529412
5200.529411764705882-0.529411764705882
5300.529411764705882-0.529411764705882
5400.529411764705882-0.529411764705882
5530.5294117647058822.47058823529412
56-30.529411764705882-3.52941176470588
5700.529411764705882-0.529411764705882
58-40.529411764705882-4.52941176470588
5920.5294117647058821.47058823529412
60-10.529411764705882-1.52941176470588
6130.5294117647058822.47058823529412
6220.5294117647058821.47058823529412
6350.5294117647058824.47058823529412
6420.5294117647058821.47058823529412
65-20.529411764705882-2.52941176470588
6600.529411764705882-0.529411764705882
6730.5294117647058822.47058823529412
68-20.529411764705882-2.52941176470588
6900.529411764705882-0.529411764705882
7060.5294117647058825.47058823529412
71-30.529411764705882-3.52941176470588
7230.5294117647058822.47058823529412
7300.529411764705882-0.529411764705882
74-20.529411764705882-2.52941176470588
7510.5294117647058820.470588235294118
7600.529411764705882-0.529411764705882
7720.5294117647058821.47058823529412
7820.5294117647058821.47058823529412
79-30.529411764705882-3.52941176470588
80-20.529411764705882-2.52941176470588
8110.5294117647058820.470588235294118
82-40.529411764705882-4.52941176470588
8300.529411764705882-0.529411764705882
8410.5294117647058820.470588235294118
8500.529411764705882-0.529411764705882



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