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, 12 Dec 2011 10:06:28 -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/12/t13237023973k3r7mx1aup76dv.htm/, Retrieved Fri, 03 May 2024 13:11:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=154003, Retrieved Fri, 03 May 2024 13:11:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact76
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)] [] [2011-12-12 14:46:30] [77e355412ccdb651b3c7eae41c3da865]
-           [Recursive Partitioning (Regression Trees)] [] [2011-12-12 15:06:28] [5f7ae77ad4c15dc18491c39fdf8bddde] [Current]
Feedback Forum

Post a new message
Dataseries X:
210907	79	30	2	94	112285
179321	108	30	4	103	101193
149061	43	26	0	93	116174
237213	78	38	0	123	66198
173326	86	44	-4	148	71701
133131	44	30	4	90	57793
258873	104	40	4	124	80444
324799	158	47	0	168	97668
230964	102	30	-1	115	133824
236785	77	31	0	71	101481
344297	80	30	1	108	67654
174724	123	34	0	120	69112
174415	73	31	3	114	82753
223632	105	33	-1	120	72654
294424	107	33	4	124	101494
325107	84	36	3	126	79215
106408	33	14	1	37	31081
96560	42	17	0	38	22996
265769	96	32	-2	120	83122
269651	106	30	-3	93	70106
149112	56	35	-4	95	60578
152871	59	28	2	90	79892
362301	76	34	2	110	100708
183167	91	39	-4	138	82875
277965	115	39	3	133	139077
218946	76	29	2	96	80670
244052	101	44	2	164	143558
341570	94	21	0	78	117105
233328	92	28	5	102	120733
206161	75	28	-2	99	73107
311473	128	38	0	129	132068
207176	56	32	-2	114	87011
196553	41	29	-3	99	95260
143246	67	27	2	104	106671
182192	77	40	2	138	70054
194979	66	40	2	151	74011
167488	69	28	0	72	83737
143756	105	34	4	120	69094
275541	116	33	4	115	93133
152299	62	33	2	98	61370
193339	100	35	2	71	84651
130585	67	29	-4	107	95364
112611	46	20	3	73	26706
148446	135	37	3	129	126846
182079	124	33	2	118	102860
243060	58	29	-1	104	111813
162765	68	28	-3	107	120293
85574	37	21	0	36	24266
225060	93	41	1	139	109825
133328	56	20	-3	56	40909
100750	83	30	3	93	140867
101523	59	22	0	87	61056
243511	133	42	0	110	101338
152474	106	32	0	83	65567
132487	71	36	3	98	40735
317394	116	31	-3	82	91413
244749	98	33	0	115	76643
184510	64	40	-4	140	110681
128423	32	38	2	120	92696
97839	25	24	-1	66	94785
172494	46	43	3	139	86687
229242	63	31	2	119	91721
351619	95	40	5	141	115168
324598	113	37	2	133	135777
195838	111	31	-2	98	102372
254488	120	39	0	117	103772
199476	87	32	3	105	135400
92499	25	18	-2	55	21399
224330	131	39	0	132	130115
181633	47	30	6	73	64466
271856	109	37	-3	86	54990
95227	37	32	3	48	34777
98146	15	17	0	48	27114
118612	54	12	-2	43	30080
65475	16	13	1	46	69008
108446	22	17	0	65	46300
121848	37	17	2	52	30594
76302	29	20	2	68	30976
98104	55	17	-3	47	25568
30989	5	17	-2	41	4154
31774	0	17	1	47	4143
150580	27	22	-4	71	45588
54157	37	15	0	30	18625
59382	29	12	1	24	26263
84105	17	17	0	63	20055




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ jenkins.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 & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=154003&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]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=154003&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=154003&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'Gwilym Jenkins' @ jenkins.wessa.net







Goodness of Fit
Correlation0.8919
R-squared0.7954
RMSE15.0758

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=154003&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.8919
R-squared0.7954
RMSE15.0758







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
19495.6666666666667-1.66666666666667
2103108.47619047619-5.47619047619048
39395.6666666666667-2.66666666666667
4123136.333333333333-13.3333333333333
5148136.33333333333311.6666666666667
69095.6666666666667-5.66666666666667
7124136.333333333333-12.3333333333333
8168136.33333333333331.6666666666667
9115108.476190476196.52380952380952
107195.6666666666667-24.6666666666667
1110895.666666666666712.3333333333333
12120108.4761904761911.5238095238095
1311495.666666666666718.3333333333333
14120108.4761904761911.5238095238095
15124108.4761904761915.5238095238095
16126108.4761904761917.5238095238095
173745.4285714285714-8.42857142857143
183845.4285714285714-7.42857142857143
19120108.4761904761911.5238095238095
2093108.47619047619-15.4761904761905
219595.6666666666667-0.666666666666671
229095.6666666666667-5.66666666666667
2311095.666666666666714.3333333333333
24138136.3333333333331.66666666666666
25133136.333333333333-3.33333333333334
269695.66666666666670.333333333333329
27164136.33333333333327.6666666666667
287866.87511.125
29102108.47619047619-6.47619047619048
309995.66666666666673.33333333333333
31129136.333333333333-7.33333333333334
3211495.666666666666718.3333333333333
339995.66666666666673.33333333333333
3410495.66666666666678.33333333333333
35138136.3333333333331.66666666666666
36151136.33333333333314.6666666666667
377295.6666666666667-23.6666666666667
38120108.4761904761911.5238095238095
39115108.476190476196.52380952380952
409895.66666666666672.33333333333333
4171108.47619047619-37.4761904761905
4210795.666666666666711.3333333333333
437366.8756.125
44129108.4761904761920.5238095238095
45118108.476190476199.52380952380952
4610495.66666666666678.33333333333333
4710795.666666666666711.3333333333333
483666.875-30.875
49139136.3333333333332.66666666666666
505666.875-10.875
519395.6666666666667-2.66666666666667
528766.87520.125
53110136.333333333333-26.3333333333333
5483108.47619047619-25.4761904761905
559895.66666666666672.33333333333333
5682108.47619047619-26.4761904761905
57115108.476190476196.52380952380952
58140136.3333333333333.66666666666666
59120136.333333333333-16.3333333333333
606666.875-0.875
61139136.3333333333332.66666666666666
6211995.666666666666723.3333333333333
63141136.3333333333334.66666666666666
64133108.4761904761924.5238095238095
6598108.47619047619-10.4761904761905
66117136.333333333333-19.3333333333333
67105108.47619047619-3.47619047619048
685545.42857142857149.57142857142857
69132136.333333333333-4.33333333333334
707395.6666666666667-22.6666666666667
7186108.47619047619-22.4761904761905
724895.6666666666667-47.6666666666667
734845.42857142857142.57142857142857
744345.4285714285714-2.42857142857143
754645.42857142857140.571428571428569
766545.428571428571419.5714285714286
775245.42857142857146.57142857142857
786866.8751.125
794745.42857142857141.57142857142857
804145.4285714285714-4.42857142857143
814745.42857142857141.57142857142857
827166.8754.125
833045.4285714285714-15.4285714285714
842445.4285714285714-21.4285714285714
856345.428571428571417.5714285714286

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 94 & 95.6666666666667 & -1.66666666666667 \tabularnewline
2 & 103 & 108.47619047619 & -5.47619047619048 \tabularnewline
3 & 93 & 95.6666666666667 & -2.66666666666667 \tabularnewline
4 & 123 & 136.333333333333 & -13.3333333333333 \tabularnewline
5 & 148 & 136.333333333333 & 11.6666666666667 \tabularnewline
6 & 90 & 95.6666666666667 & -5.66666666666667 \tabularnewline
7 & 124 & 136.333333333333 & -12.3333333333333 \tabularnewline
8 & 168 & 136.333333333333 & 31.6666666666667 \tabularnewline
9 & 115 & 108.47619047619 & 6.52380952380952 \tabularnewline
10 & 71 & 95.6666666666667 & -24.6666666666667 \tabularnewline
11 & 108 & 95.6666666666667 & 12.3333333333333 \tabularnewline
12 & 120 & 108.47619047619 & 11.5238095238095 \tabularnewline
13 & 114 & 95.6666666666667 & 18.3333333333333 \tabularnewline
14 & 120 & 108.47619047619 & 11.5238095238095 \tabularnewline
15 & 124 & 108.47619047619 & 15.5238095238095 \tabularnewline
16 & 126 & 108.47619047619 & 17.5238095238095 \tabularnewline
17 & 37 & 45.4285714285714 & -8.42857142857143 \tabularnewline
18 & 38 & 45.4285714285714 & -7.42857142857143 \tabularnewline
19 & 120 & 108.47619047619 & 11.5238095238095 \tabularnewline
20 & 93 & 108.47619047619 & -15.4761904761905 \tabularnewline
21 & 95 & 95.6666666666667 & -0.666666666666671 \tabularnewline
22 & 90 & 95.6666666666667 & -5.66666666666667 \tabularnewline
23 & 110 & 95.6666666666667 & 14.3333333333333 \tabularnewline
24 & 138 & 136.333333333333 & 1.66666666666666 \tabularnewline
25 & 133 & 136.333333333333 & -3.33333333333334 \tabularnewline
26 & 96 & 95.6666666666667 & 0.333333333333329 \tabularnewline
27 & 164 & 136.333333333333 & 27.6666666666667 \tabularnewline
28 & 78 & 66.875 & 11.125 \tabularnewline
29 & 102 & 108.47619047619 & -6.47619047619048 \tabularnewline
30 & 99 & 95.6666666666667 & 3.33333333333333 \tabularnewline
31 & 129 & 136.333333333333 & -7.33333333333334 \tabularnewline
32 & 114 & 95.6666666666667 & 18.3333333333333 \tabularnewline
33 & 99 & 95.6666666666667 & 3.33333333333333 \tabularnewline
34 & 104 & 95.6666666666667 & 8.33333333333333 \tabularnewline
35 & 138 & 136.333333333333 & 1.66666666666666 \tabularnewline
36 & 151 & 136.333333333333 & 14.6666666666667 \tabularnewline
37 & 72 & 95.6666666666667 & -23.6666666666667 \tabularnewline
38 & 120 & 108.47619047619 & 11.5238095238095 \tabularnewline
39 & 115 & 108.47619047619 & 6.52380952380952 \tabularnewline
40 & 98 & 95.6666666666667 & 2.33333333333333 \tabularnewline
41 & 71 & 108.47619047619 & -37.4761904761905 \tabularnewline
42 & 107 & 95.6666666666667 & 11.3333333333333 \tabularnewline
43 & 73 & 66.875 & 6.125 \tabularnewline
44 & 129 & 108.47619047619 & 20.5238095238095 \tabularnewline
45 & 118 & 108.47619047619 & 9.52380952380952 \tabularnewline
46 & 104 & 95.6666666666667 & 8.33333333333333 \tabularnewline
47 & 107 & 95.6666666666667 & 11.3333333333333 \tabularnewline
48 & 36 & 66.875 & -30.875 \tabularnewline
49 & 139 & 136.333333333333 & 2.66666666666666 \tabularnewline
50 & 56 & 66.875 & -10.875 \tabularnewline
51 & 93 & 95.6666666666667 & -2.66666666666667 \tabularnewline
52 & 87 & 66.875 & 20.125 \tabularnewline
53 & 110 & 136.333333333333 & -26.3333333333333 \tabularnewline
54 & 83 & 108.47619047619 & -25.4761904761905 \tabularnewline
55 & 98 & 95.6666666666667 & 2.33333333333333 \tabularnewline
56 & 82 & 108.47619047619 & -26.4761904761905 \tabularnewline
57 & 115 & 108.47619047619 & 6.52380952380952 \tabularnewline
58 & 140 & 136.333333333333 & 3.66666666666666 \tabularnewline
59 & 120 & 136.333333333333 & -16.3333333333333 \tabularnewline
60 & 66 & 66.875 & -0.875 \tabularnewline
61 & 139 & 136.333333333333 & 2.66666666666666 \tabularnewline
62 & 119 & 95.6666666666667 & 23.3333333333333 \tabularnewline
63 & 141 & 136.333333333333 & 4.66666666666666 \tabularnewline
64 & 133 & 108.47619047619 & 24.5238095238095 \tabularnewline
65 & 98 & 108.47619047619 & -10.4761904761905 \tabularnewline
66 & 117 & 136.333333333333 & -19.3333333333333 \tabularnewline
67 & 105 & 108.47619047619 & -3.47619047619048 \tabularnewline
68 & 55 & 45.4285714285714 & 9.57142857142857 \tabularnewline
69 & 132 & 136.333333333333 & -4.33333333333334 \tabularnewline
70 & 73 & 95.6666666666667 & -22.6666666666667 \tabularnewline
71 & 86 & 108.47619047619 & -22.4761904761905 \tabularnewline
72 & 48 & 95.6666666666667 & -47.6666666666667 \tabularnewline
73 & 48 & 45.4285714285714 & 2.57142857142857 \tabularnewline
74 & 43 & 45.4285714285714 & -2.42857142857143 \tabularnewline
75 & 46 & 45.4285714285714 & 0.571428571428569 \tabularnewline
76 & 65 & 45.4285714285714 & 19.5714285714286 \tabularnewline
77 & 52 & 45.4285714285714 & 6.57142857142857 \tabularnewline
78 & 68 & 66.875 & 1.125 \tabularnewline
79 & 47 & 45.4285714285714 & 1.57142857142857 \tabularnewline
80 & 41 & 45.4285714285714 & -4.42857142857143 \tabularnewline
81 & 47 & 45.4285714285714 & 1.57142857142857 \tabularnewline
82 & 71 & 66.875 & 4.125 \tabularnewline
83 & 30 & 45.4285714285714 & -15.4285714285714 \tabularnewline
84 & 24 & 45.4285714285714 & -21.4285714285714 \tabularnewline
85 & 63 & 45.4285714285714 & 17.5714285714286 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=154003&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]94[/C][C]95.6666666666667[/C][C]-1.66666666666667[/C][/ROW]
[ROW][C]2[/C][C]103[/C][C]108.47619047619[/C][C]-5.47619047619048[/C][/ROW]
[ROW][C]3[/C][C]93[/C][C]95.6666666666667[/C][C]-2.66666666666667[/C][/ROW]
[ROW][C]4[/C][C]123[/C][C]136.333333333333[/C][C]-13.3333333333333[/C][/ROW]
[ROW][C]5[/C][C]148[/C][C]136.333333333333[/C][C]11.6666666666667[/C][/ROW]
[ROW][C]6[/C][C]90[/C][C]95.6666666666667[/C][C]-5.66666666666667[/C][/ROW]
[ROW][C]7[/C][C]124[/C][C]136.333333333333[/C][C]-12.3333333333333[/C][/ROW]
[ROW][C]8[/C][C]168[/C][C]136.333333333333[/C][C]31.6666666666667[/C][/ROW]
[ROW][C]9[/C][C]115[/C][C]108.47619047619[/C][C]6.52380952380952[/C][/ROW]
[ROW][C]10[/C][C]71[/C][C]95.6666666666667[/C][C]-24.6666666666667[/C][/ROW]
[ROW][C]11[/C][C]108[/C][C]95.6666666666667[/C][C]12.3333333333333[/C][/ROW]
[ROW][C]12[/C][C]120[/C][C]108.47619047619[/C][C]11.5238095238095[/C][/ROW]
[ROW][C]13[/C][C]114[/C][C]95.6666666666667[/C][C]18.3333333333333[/C][/ROW]
[ROW][C]14[/C][C]120[/C][C]108.47619047619[/C][C]11.5238095238095[/C][/ROW]
[ROW][C]15[/C][C]124[/C][C]108.47619047619[/C][C]15.5238095238095[/C][/ROW]
[ROW][C]16[/C][C]126[/C][C]108.47619047619[/C][C]17.5238095238095[/C][/ROW]
[ROW][C]17[/C][C]37[/C][C]45.4285714285714[/C][C]-8.42857142857143[/C][/ROW]
[ROW][C]18[/C][C]38[/C][C]45.4285714285714[/C][C]-7.42857142857143[/C][/ROW]
[ROW][C]19[/C][C]120[/C][C]108.47619047619[/C][C]11.5238095238095[/C][/ROW]
[ROW][C]20[/C][C]93[/C][C]108.47619047619[/C][C]-15.4761904761905[/C][/ROW]
[ROW][C]21[/C][C]95[/C][C]95.6666666666667[/C][C]-0.666666666666671[/C][/ROW]
[ROW][C]22[/C][C]90[/C][C]95.6666666666667[/C][C]-5.66666666666667[/C][/ROW]
[ROW][C]23[/C][C]110[/C][C]95.6666666666667[/C][C]14.3333333333333[/C][/ROW]
[ROW][C]24[/C][C]138[/C][C]136.333333333333[/C][C]1.66666666666666[/C][/ROW]
[ROW][C]25[/C][C]133[/C][C]136.333333333333[/C][C]-3.33333333333334[/C][/ROW]
[ROW][C]26[/C][C]96[/C][C]95.6666666666667[/C][C]0.333333333333329[/C][/ROW]
[ROW][C]27[/C][C]164[/C][C]136.333333333333[/C][C]27.6666666666667[/C][/ROW]
[ROW][C]28[/C][C]78[/C][C]66.875[/C][C]11.125[/C][/ROW]
[ROW][C]29[/C][C]102[/C][C]108.47619047619[/C][C]-6.47619047619048[/C][/ROW]
[ROW][C]30[/C][C]99[/C][C]95.6666666666667[/C][C]3.33333333333333[/C][/ROW]
[ROW][C]31[/C][C]129[/C][C]136.333333333333[/C][C]-7.33333333333334[/C][/ROW]
[ROW][C]32[/C][C]114[/C][C]95.6666666666667[/C][C]18.3333333333333[/C][/ROW]
[ROW][C]33[/C][C]99[/C][C]95.6666666666667[/C][C]3.33333333333333[/C][/ROW]
[ROW][C]34[/C][C]104[/C][C]95.6666666666667[/C][C]8.33333333333333[/C][/ROW]
[ROW][C]35[/C][C]138[/C][C]136.333333333333[/C][C]1.66666666666666[/C][/ROW]
[ROW][C]36[/C][C]151[/C][C]136.333333333333[/C][C]14.6666666666667[/C][/ROW]
[ROW][C]37[/C][C]72[/C][C]95.6666666666667[/C][C]-23.6666666666667[/C][/ROW]
[ROW][C]38[/C][C]120[/C][C]108.47619047619[/C][C]11.5238095238095[/C][/ROW]
[ROW][C]39[/C][C]115[/C][C]108.47619047619[/C][C]6.52380952380952[/C][/ROW]
[ROW][C]40[/C][C]98[/C][C]95.6666666666667[/C][C]2.33333333333333[/C][/ROW]
[ROW][C]41[/C][C]71[/C][C]108.47619047619[/C][C]-37.4761904761905[/C][/ROW]
[ROW][C]42[/C][C]107[/C][C]95.6666666666667[/C][C]11.3333333333333[/C][/ROW]
[ROW][C]43[/C][C]73[/C][C]66.875[/C][C]6.125[/C][/ROW]
[ROW][C]44[/C][C]129[/C][C]108.47619047619[/C][C]20.5238095238095[/C][/ROW]
[ROW][C]45[/C][C]118[/C][C]108.47619047619[/C][C]9.52380952380952[/C][/ROW]
[ROW][C]46[/C][C]104[/C][C]95.6666666666667[/C][C]8.33333333333333[/C][/ROW]
[ROW][C]47[/C][C]107[/C][C]95.6666666666667[/C][C]11.3333333333333[/C][/ROW]
[ROW][C]48[/C][C]36[/C][C]66.875[/C][C]-30.875[/C][/ROW]
[ROW][C]49[/C][C]139[/C][C]136.333333333333[/C][C]2.66666666666666[/C][/ROW]
[ROW][C]50[/C][C]56[/C][C]66.875[/C][C]-10.875[/C][/ROW]
[ROW][C]51[/C][C]93[/C][C]95.6666666666667[/C][C]-2.66666666666667[/C][/ROW]
[ROW][C]52[/C][C]87[/C][C]66.875[/C][C]20.125[/C][/ROW]
[ROW][C]53[/C][C]110[/C][C]136.333333333333[/C][C]-26.3333333333333[/C][/ROW]
[ROW][C]54[/C][C]83[/C][C]108.47619047619[/C][C]-25.4761904761905[/C][/ROW]
[ROW][C]55[/C][C]98[/C][C]95.6666666666667[/C][C]2.33333333333333[/C][/ROW]
[ROW][C]56[/C][C]82[/C][C]108.47619047619[/C][C]-26.4761904761905[/C][/ROW]
[ROW][C]57[/C][C]115[/C][C]108.47619047619[/C][C]6.52380952380952[/C][/ROW]
[ROW][C]58[/C][C]140[/C][C]136.333333333333[/C][C]3.66666666666666[/C][/ROW]
[ROW][C]59[/C][C]120[/C][C]136.333333333333[/C][C]-16.3333333333333[/C][/ROW]
[ROW][C]60[/C][C]66[/C][C]66.875[/C][C]-0.875[/C][/ROW]
[ROW][C]61[/C][C]139[/C][C]136.333333333333[/C][C]2.66666666666666[/C][/ROW]
[ROW][C]62[/C][C]119[/C][C]95.6666666666667[/C][C]23.3333333333333[/C][/ROW]
[ROW][C]63[/C][C]141[/C][C]136.333333333333[/C][C]4.66666666666666[/C][/ROW]
[ROW][C]64[/C][C]133[/C][C]108.47619047619[/C][C]24.5238095238095[/C][/ROW]
[ROW][C]65[/C][C]98[/C][C]108.47619047619[/C][C]-10.4761904761905[/C][/ROW]
[ROW][C]66[/C][C]117[/C][C]136.333333333333[/C][C]-19.3333333333333[/C][/ROW]
[ROW][C]67[/C][C]105[/C][C]108.47619047619[/C][C]-3.47619047619048[/C][/ROW]
[ROW][C]68[/C][C]55[/C][C]45.4285714285714[/C][C]9.57142857142857[/C][/ROW]
[ROW][C]69[/C][C]132[/C][C]136.333333333333[/C][C]-4.33333333333334[/C][/ROW]
[ROW][C]70[/C][C]73[/C][C]95.6666666666667[/C][C]-22.6666666666667[/C][/ROW]
[ROW][C]71[/C][C]86[/C][C]108.47619047619[/C][C]-22.4761904761905[/C][/ROW]
[ROW][C]72[/C][C]48[/C][C]95.6666666666667[/C][C]-47.6666666666667[/C][/ROW]
[ROW][C]73[/C][C]48[/C][C]45.4285714285714[/C][C]2.57142857142857[/C][/ROW]
[ROW][C]74[/C][C]43[/C][C]45.4285714285714[/C][C]-2.42857142857143[/C][/ROW]
[ROW][C]75[/C][C]46[/C][C]45.4285714285714[/C][C]0.571428571428569[/C][/ROW]
[ROW][C]76[/C][C]65[/C][C]45.4285714285714[/C][C]19.5714285714286[/C][/ROW]
[ROW][C]77[/C][C]52[/C][C]45.4285714285714[/C][C]6.57142857142857[/C][/ROW]
[ROW][C]78[/C][C]68[/C][C]66.875[/C][C]1.125[/C][/ROW]
[ROW][C]79[/C][C]47[/C][C]45.4285714285714[/C][C]1.57142857142857[/C][/ROW]
[ROW][C]80[/C][C]41[/C][C]45.4285714285714[/C][C]-4.42857142857143[/C][/ROW]
[ROW][C]81[/C][C]47[/C][C]45.4285714285714[/C][C]1.57142857142857[/C][/ROW]
[ROW][C]82[/C][C]71[/C][C]66.875[/C][C]4.125[/C][/ROW]
[ROW][C]83[/C][C]30[/C][C]45.4285714285714[/C][C]-15.4285714285714[/C][/ROW]
[ROW][C]84[/C][C]24[/C][C]45.4285714285714[/C][C]-21.4285714285714[/C][/ROW]
[ROW][C]85[/C][C]63[/C][C]45.4285714285714[/C][C]17.5714285714286[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=154003&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=154003&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
19495.6666666666667-1.66666666666667
2103108.47619047619-5.47619047619048
39395.6666666666667-2.66666666666667
4123136.333333333333-13.3333333333333
5148136.33333333333311.6666666666667
69095.6666666666667-5.66666666666667
7124136.333333333333-12.3333333333333
8168136.33333333333331.6666666666667
9115108.476190476196.52380952380952
107195.6666666666667-24.6666666666667
1110895.666666666666712.3333333333333
12120108.4761904761911.5238095238095
1311495.666666666666718.3333333333333
14120108.4761904761911.5238095238095
15124108.4761904761915.5238095238095
16126108.4761904761917.5238095238095
173745.4285714285714-8.42857142857143
183845.4285714285714-7.42857142857143
19120108.4761904761911.5238095238095
2093108.47619047619-15.4761904761905
219595.6666666666667-0.666666666666671
229095.6666666666667-5.66666666666667
2311095.666666666666714.3333333333333
24138136.3333333333331.66666666666666
25133136.333333333333-3.33333333333334
269695.66666666666670.333333333333329
27164136.33333333333327.6666666666667
287866.87511.125
29102108.47619047619-6.47619047619048
309995.66666666666673.33333333333333
31129136.333333333333-7.33333333333334
3211495.666666666666718.3333333333333
339995.66666666666673.33333333333333
3410495.66666666666678.33333333333333
35138136.3333333333331.66666666666666
36151136.33333333333314.6666666666667
377295.6666666666667-23.6666666666667
38120108.4761904761911.5238095238095
39115108.476190476196.52380952380952
409895.66666666666672.33333333333333
4171108.47619047619-37.4761904761905
4210795.666666666666711.3333333333333
437366.8756.125
44129108.4761904761920.5238095238095
45118108.476190476199.52380952380952
4610495.66666666666678.33333333333333
4710795.666666666666711.3333333333333
483666.875-30.875
49139136.3333333333332.66666666666666
505666.875-10.875
519395.6666666666667-2.66666666666667
528766.87520.125
53110136.333333333333-26.3333333333333
5483108.47619047619-25.4761904761905
559895.66666666666672.33333333333333
5682108.47619047619-26.4761904761905
57115108.476190476196.52380952380952
58140136.3333333333333.66666666666666
59120136.333333333333-16.3333333333333
606666.875-0.875
61139136.3333333333332.66666666666666
6211995.666666666666723.3333333333333
63141136.3333333333334.66666666666666
64133108.4761904761924.5238095238095
6598108.47619047619-10.4761904761905
66117136.333333333333-19.3333333333333
67105108.47619047619-3.47619047619048
685545.42857142857149.57142857142857
69132136.333333333333-4.33333333333334
707395.6666666666667-22.6666666666667
7186108.47619047619-22.4761904761905
724895.6666666666667-47.6666666666667
734845.42857142857142.57142857142857
744345.4285714285714-2.42857142857143
754645.42857142857140.571428571428569
766545.428571428571419.5714285714286
775245.42857142857146.57142857142857
786866.8751.125
794745.42857142857141.57142857142857
804145.4285714285714-4.42857142857143
814745.42857142857141.57142857142857
827166.8754.125
833045.4285714285714-15.4285714285714
842445.4285714285714-21.4285714285714
856345.428571428571417.5714285714286



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