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 computationFri, 24 Dec 2010 17:31:53 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/24/t12932118446ikbdf5ahjklw4h.htm/, Retrieved Tue, 30 Apr 2024 04:12:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=115236, Retrieved Tue, 30 Apr 2024 04:12:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
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]
-   PD  [Recursive Partitioning (Regression Trees)] [] [2010-12-24 10:02:30] [b10d6b9682dfaaa479f495240bcd67cf]
-   PD      [Recursive Partitioning (Regression Trees)] [] [2010-12-24 17:31:53] [a5ae4a79649e10f10ac7ff219d0ba7a7] [Current]
Feedback Forum

Post a new message
Dataseries X:
9506	1775
8704	2197
10079	2920
8993	4240
9957	5415
10240	6136
10098	6719
10090	6234
9867	7152
9736	3646
9040	2165
9232	2803
9520	1615
9217	2350
9868	3350
9455	3536
9984	5834
9556	6767
10190	5993
9906	7276
9824	5641
9972	3477
9185	2247
9765	2466
9838	1567
9084	2237
9643	2598
10051	3729
9987	5715
9827	5776
10491	5852
9722	6878
9472	5488
9728	3583
8510	2054
9511	2282
9492	1552
8638	2261
9792	2446
9605	3519
9237	5161
9533	5085
10293	5711
9938	6057
9984	5224
9563	3363
8871	1899
9301	2115
9215	1491
8834	2061
9998	2419
9604	3430
9507	4778
9718	4862
10095	6176
9583	5664
9883	5529
9365	3418
8919	1941
9449	2402
9769	1579
9321	2146
9939	2462
9336	3695
10195	4831
9464	5134
10010	6250
10213	5760
9563	6249
9890	2917
9305	1741
9391	2359
9743	1511
8587	2059
9731	2635
9563	2867
9998	4403
9437	5720
10038	4502
9918	5749
9252	5627
9737	2846
9035	1762
9133	2429
9487	1169
8700	2154
9627	2249
8947	2687
9283	4359
8829	5382
9947	4459
9628	6398
9318	4596
9605	3024
8640	1887
9214	2070
9676	1351
8642	2218
9402	2461
9610	3028
9294	4784
9448	4975
10319	4607
9548	6249
9801	4809
9596	3157
8923	1910
9746	2228
9829	1594
9125	2467
9782	2222
9441	3607
9162	4685
9915	4962
10444	5770
10209	5480
9985	5000
9842	3228
9429	1993
10132	2288
9849	1588
9172	2105
10313	2191
9819	3591
9955	4668
10048	4885
10082	5822
10541	5599
10208	5340
10233	3082
9439	2010
9963	2301




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time15 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 15 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115236&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]15 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115236&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115236&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 time15 seconds
R Server'George Udny Yule' @ 72.249.76.132







Goodness of Fit
Correlation0.6167
R-squared0.3803
RMSE346.546

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115236&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.6167
R-squared0.3803
RMSE346.546







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
195069128.4074074074377.592592592593
287049128.4074074074-424.407407407407
3100799654.71428571429424.285714285714
489939654.71428571429-661.714285714286
599579932.7524.25
6102409932.75307.25
7100989932.75165.25
8100909932.75157.25
998679932.75-65.75
1097369654.7142857142981.2857142857138
1190409128.4074074074-88.407407407407
1292329654.71428571429-422.714285714286
1395209641.8-121.799999999999
1492179654.71428571429-437.714285714286
1598689654.71428571429213.285714285714
1694559654.71428571429-199.714285714286
1799849932.7551.25
1895569932.75-376.75
19101909932.75257.25
2099069932.75-26.75
2198249932.75-108.75
2299729654.71428571429317.285714285714
2391859128.407407407456.5925925925931
2497659654.71428571429110.285714285714
2598389641.8196.200000000001
2690849128.4074074074-44.4074074074069
2796439654.71428571429-11.7142857142862
28100519654.71428571429396.285714285714
2999879932.7554.25
3098279932.75-105.75
31104919932.75558.25
3297229932.75-210.75
3394729932.75-460.75
3497289654.7142857142973.2857142857138
3585109128.4074074074-618.407407407407
3695119654.71428571429-143.714285714286
3794929641.8-149.799999999999
3886389128.4074074074-490.407407407407
3997929654.71428571429137.285714285714
4096059654.71428571429-49.7142857142862
4192379654.71428571429-417.714285714286
4295339654.71428571429-121.714285714286
43102939932.75360.25
4499389932.755.25
4599849654.71428571429329.285714285714
4695639654.71428571429-91.7142857142862
4788719128.4074074074-257.407407407407
4893019128.4074074074172.592592592593
4992159641.8-426.799999999999
5088349128.4074074074-294.407407407407
5199989654.71428571429343.285714285714
5296049654.71428571429-50.7142857142862
5395079654.71428571429-147.714285714286
5497189654.7142857142963.2857142857138
55100959932.75162.25
5695839932.75-349.75
5798839932.75-49.75
5893659654.71428571429-289.714285714286
5989199128.4074074074-209.407407407407
6094499654.71428571429-205.714285714286
6197699641.8127.200000000001
6293219128.4074074074192.592592592593
6399399654.71428571429284.285714285714
6493369654.71428571429-318.714285714286
65101959654.71428571429540.285714285714
6694649654.71428571429-190.714285714286
67100109932.7577.25
68102139932.75280.25
6995639932.75-369.75
7098909654.71428571429235.285714285714
7193059128.4074074074176.592592592593
7293919654.71428571429-263.714285714286
7397439641.8101.200000000001
7485879128.4074074074-541.407407407407
7597319654.7142857142976.2857142857138
7695639654.71428571429-91.7142857142862
7799989654.71428571429343.285714285714
7894379932.75-495.75
79100389654.71428571429383.285714285714
8099189932.75-14.75
8192529932.75-680.75
8297379654.7142857142982.2857142857138
8390359128.4074074074-93.407407407407
8491339654.71428571429-521.714285714286
8594879641.8-154.799999999999
8687009128.4074074074-428.407407407407
8796279128.4074074074498.592592592593
8889479654.71428571429-707.714285714286
8992839654.71428571429-371.714285714286
9088299654.71428571429-825.714285714286
9199479654.71428571429292.285714285714
9296289932.75-304.75
9393189654.71428571429-336.714285714286
9496059654.71428571429-49.7142857142862
9586409128.4074074074-488.407407407407
9692149128.407407407485.592592592593
9796769641.834.2000000000007
9886429128.4074074074-486.407407407407
9994029654.71428571429-252.714285714286
10096109654.71428571429-44.7142857142862
10192949654.71428571429-360.714285714286
10294489654.71428571429-206.714285714286
103103199654.71428571429664.285714285714
10495489932.75-384.75
10598019654.71428571429146.285714285714
10695969654.71428571429-58.7142857142862
10789239128.4074074074-205.407407407407
10897469128.4074074074617.592592592593
10998299641.8187.200000000001
11091259654.71428571429-529.714285714286
11197829128.4074074074653.592592592593
11294419654.71428571429-213.714285714286
11391629654.71428571429-492.714285714286
11499159654.71428571429260.285714285714
115104449932.75511.25
116102099932.75276.25
11799859654.71428571429330.285714285714
11898429654.71428571429187.285714285714
11994299128.4074074074300.592592592593
120101329654.71428571429477.285714285714
12198499641.8207.200000000001
12291729128.407407407443.5925925925931
123103139128.40740740741184.59259259259
12498199654.71428571429164.285714285714
12599559654.71428571429300.285714285714
126100489654.71428571429393.285714285714
127100829932.75149.25
128105419932.75608.25
129102089654.71428571429553.285714285714
130102339654.71428571429578.285714285714
13194399128.4074074074310.592592592593
13299639654.71428571429308.285714285714

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 9506 & 9128.4074074074 & 377.592592592593 \tabularnewline
2 & 8704 & 9128.4074074074 & -424.407407407407 \tabularnewline
3 & 10079 & 9654.71428571429 & 424.285714285714 \tabularnewline
4 & 8993 & 9654.71428571429 & -661.714285714286 \tabularnewline
5 & 9957 & 9932.75 & 24.25 \tabularnewline
6 & 10240 & 9932.75 & 307.25 \tabularnewline
7 & 10098 & 9932.75 & 165.25 \tabularnewline
8 & 10090 & 9932.75 & 157.25 \tabularnewline
9 & 9867 & 9932.75 & -65.75 \tabularnewline
10 & 9736 & 9654.71428571429 & 81.2857142857138 \tabularnewline
11 & 9040 & 9128.4074074074 & -88.407407407407 \tabularnewline
12 & 9232 & 9654.71428571429 & -422.714285714286 \tabularnewline
13 & 9520 & 9641.8 & -121.799999999999 \tabularnewline
14 & 9217 & 9654.71428571429 & -437.714285714286 \tabularnewline
15 & 9868 & 9654.71428571429 & 213.285714285714 \tabularnewline
16 & 9455 & 9654.71428571429 & -199.714285714286 \tabularnewline
17 & 9984 & 9932.75 & 51.25 \tabularnewline
18 & 9556 & 9932.75 & -376.75 \tabularnewline
19 & 10190 & 9932.75 & 257.25 \tabularnewline
20 & 9906 & 9932.75 & -26.75 \tabularnewline
21 & 9824 & 9932.75 & -108.75 \tabularnewline
22 & 9972 & 9654.71428571429 & 317.285714285714 \tabularnewline
23 & 9185 & 9128.4074074074 & 56.5925925925931 \tabularnewline
24 & 9765 & 9654.71428571429 & 110.285714285714 \tabularnewline
25 & 9838 & 9641.8 & 196.200000000001 \tabularnewline
26 & 9084 & 9128.4074074074 & -44.4074074074069 \tabularnewline
27 & 9643 & 9654.71428571429 & -11.7142857142862 \tabularnewline
28 & 10051 & 9654.71428571429 & 396.285714285714 \tabularnewline
29 & 9987 & 9932.75 & 54.25 \tabularnewline
30 & 9827 & 9932.75 & -105.75 \tabularnewline
31 & 10491 & 9932.75 & 558.25 \tabularnewline
32 & 9722 & 9932.75 & -210.75 \tabularnewline
33 & 9472 & 9932.75 & -460.75 \tabularnewline
34 & 9728 & 9654.71428571429 & 73.2857142857138 \tabularnewline
35 & 8510 & 9128.4074074074 & -618.407407407407 \tabularnewline
36 & 9511 & 9654.71428571429 & -143.714285714286 \tabularnewline
37 & 9492 & 9641.8 & -149.799999999999 \tabularnewline
38 & 8638 & 9128.4074074074 & -490.407407407407 \tabularnewline
39 & 9792 & 9654.71428571429 & 137.285714285714 \tabularnewline
40 & 9605 & 9654.71428571429 & -49.7142857142862 \tabularnewline
41 & 9237 & 9654.71428571429 & -417.714285714286 \tabularnewline
42 & 9533 & 9654.71428571429 & -121.714285714286 \tabularnewline
43 & 10293 & 9932.75 & 360.25 \tabularnewline
44 & 9938 & 9932.75 & 5.25 \tabularnewline
45 & 9984 & 9654.71428571429 & 329.285714285714 \tabularnewline
46 & 9563 & 9654.71428571429 & -91.7142857142862 \tabularnewline
47 & 8871 & 9128.4074074074 & -257.407407407407 \tabularnewline
48 & 9301 & 9128.4074074074 & 172.592592592593 \tabularnewline
49 & 9215 & 9641.8 & -426.799999999999 \tabularnewline
50 & 8834 & 9128.4074074074 & -294.407407407407 \tabularnewline
51 & 9998 & 9654.71428571429 & 343.285714285714 \tabularnewline
52 & 9604 & 9654.71428571429 & -50.7142857142862 \tabularnewline
53 & 9507 & 9654.71428571429 & -147.714285714286 \tabularnewline
54 & 9718 & 9654.71428571429 & 63.2857142857138 \tabularnewline
55 & 10095 & 9932.75 & 162.25 \tabularnewline
56 & 9583 & 9932.75 & -349.75 \tabularnewline
57 & 9883 & 9932.75 & -49.75 \tabularnewline
58 & 9365 & 9654.71428571429 & -289.714285714286 \tabularnewline
59 & 8919 & 9128.4074074074 & -209.407407407407 \tabularnewline
60 & 9449 & 9654.71428571429 & -205.714285714286 \tabularnewline
61 & 9769 & 9641.8 & 127.200000000001 \tabularnewline
62 & 9321 & 9128.4074074074 & 192.592592592593 \tabularnewline
63 & 9939 & 9654.71428571429 & 284.285714285714 \tabularnewline
64 & 9336 & 9654.71428571429 & -318.714285714286 \tabularnewline
65 & 10195 & 9654.71428571429 & 540.285714285714 \tabularnewline
66 & 9464 & 9654.71428571429 & -190.714285714286 \tabularnewline
67 & 10010 & 9932.75 & 77.25 \tabularnewline
68 & 10213 & 9932.75 & 280.25 \tabularnewline
69 & 9563 & 9932.75 & -369.75 \tabularnewline
70 & 9890 & 9654.71428571429 & 235.285714285714 \tabularnewline
71 & 9305 & 9128.4074074074 & 176.592592592593 \tabularnewline
72 & 9391 & 9654.71428571429 & -263.714285714286 \tabularnewline
73 & 9743 & 9641.8 & 101.200000000001 \tabularnewline
74 & 8587 & 9128.4074074074 & -541.407407407407 \tabularnewline
75 & 9731 & 9654.71428571429 & 76.2857142857138 \tabularnewline
76 & 9563 & 9654.71428571429 & -91.7142857142862 \tabularnewline
77 & 9998 & 9654.71428571429 & 343.285714285714 \tabularnewline
78 & 9437 & 9932.75 & -495.75 \tabularnewline
79 & 10038 & 9654.71428571429 & 383.285714285714 \tabularnewline
80 & 9918 & 9932.75 & -14.75 \tabularnewline
81 & 9252 & 9932.75 & -680.75 \tabularnewline
82 & 9737 & 9654.71428571429 & 82.2857142857138 \tabularnewline
83 & 9035 & 9128.4074074074 & -93.407407407407 \tabularnewline
84 & 9133 & 9654.71428571429 & -521.714285714286 \tabularnewline
85 & 9487 & 9641.8 & -154.799999999999 \tabularnewline
86 & 8700 & 9128.4074074074 & -428.407407407407 \tabularnewline
87 & 9627 & 9128.4074074074 & 498.592592592593 \tabularnewline
88 & 8947 & 9654.71428571429 & -707.714285714286 \tabularnewline
89 & 9283 & 9654.71428571429 & -371.714285714286 \tabularnewline
90 & 8829 & 9654.71428571429 & -825.714285714286 \tabularnewline
91 & 9947 & 9654.71428571429 & 292.285714285714 \tabularnewline
92 & 9628 & 9932.75 & -304.75 \tabularnewline
93 & 9318 & 9654.71428571429 & -336.714285714286 \tabularnewline
94 & 9605 & 9654.71428571429 & -49.7142857142862 \tabularnewline
95 & 8640 & 9128.4074074074 & -488.407407407407 \tabularnewline
96 & 9214 & 9128.4074074074 & 85.592592592593 \tabularnewline
97 & 9676 & 9641.8 & 34.2000000000007 \tabularnewline
98 & 8642 & 9128.4074074074 & -486.407407407407 \tabularnewline
99 & 9402 & 9654.71428571429 & -252.714285714286 \tabularnewline
100 & 9610 & 9654.71428571429 & -44.7142857142862 \tabularnewline
101 & 9294 & 9654.71428571429 & -360.714285714286 \tabularnewline
102 & 9448 & 9654.71428571429 & -206.714285714286 \tabularnewline
103 & 10319 & 9654.71428571429 & 664.285714285714 \tabularnewline
104 & 9548 & 9932.75 & -384.75 \tabularnewline
105 & 9801 & 9654.71428571429 & 146.285714285714 \tabularnewline
106 & 9596 & 9654.71428571429 & -58.7142857142862 \tabularnewline
107 & 8923 & 9128.4074074074 & -205.407407407407 \tabularnewline
108 & 9746 & 9128.4074074074 & 617.592592592593 \tabularnewline
109 & 9829 & 9641.8 & 187.200000000001 \tabularnewline
110 & 9125 & 9654.71428571429 & -529.714285714286 \tabularnewline
111 & 9782 & 9128.4074074074 & 653.592592592593 \tabularnewline
112 & 9441 & 9654.71428571429 & -213.714285714286 \tabularnewline
113 & 9162 & 9654.71428571429 & -492.714285714286 \tabularnewline
114 & 9915 & 9654.71428571429 & 260.285714285714 \tabularnewline
115 & 10444 & 9932.75 & 511.25 \tabularnewline
116 & 10209 & 9932.75 & 276.25 \tabularnewline
117 & 9985 & 9654.71428571429 & 330.285714285714 \tabularnewline
118 & 9842 & 9654.71428571429 & 187.285714285714 \tabularnewline
119 & 9429 & 9128.4074074074 & 300.592592592593 \tabularnewline
120 & 10132 & 9654.71428571429 & 477.285714285714 \tabularnewline
121 & 9849 & 9641.8 & 207.200000000001 \tabularnewline
122 & 9172 & 9128.4074074074 & 43.5925925925931 \tabularnewline
123 & 10313 & 9128.4074074074 & 1184.59259259259 \tabularnewline
124 & 9819 & 9654.71428571429 & 164.285714285714 \tabularnewline
125 & 9955 & 9654.71428571429 & 300.285714285714 \tabularnewline
126 & 10048 & 9654.71428571429 & 393.285714285714 \tabularnewline
127 & 10082 & 9932.75 & 149.25 \tabularnewline
128 & 10541 & 9932.75 & 608.25 \tabularnewline
129 & 10208 & 9654.71428571429 & 553.285714285714 \tabularnewline
130 & 10233 & 9654.71428571429 & 578.285714285714 \tabularnewline
131 & 9439 & 9128.4074074074 & 310.592592592593 \tabularnewline
132 & 9963 & 9654.71428571429 & 308.285714285714 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115236&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]9506[/C][C]9128.4074074074[/C][C]377.592592592593[/C][/ROW]
[ROW][C]2[/C][C]8704[/C][C]9128.4074074074[/C][C]-424.407407407407[/C][/ROW]
[ROW][C]3[/C][C]10079[/C][C]9654.71428571429[/C][C]424.285714285714[/C][/ROW]
[ROW][C]4[/C][C]8993[/C][C]9654.71428571429[/C][C]-661.714285714286[/C][/ROW]
[ROW][C]5[/C][C]9957[/C][C]9932.75[/C][C]24.25[/C][/ROW]
[ROW][C]6[/C][C]10240[/C][C]9932.75[/C][C]307.25[/C][/ROW]
[ROW][C]7[/C][C]10098[/C][C]9932.75[/C][C]165.25[/C][/ROW]
[ROW][C]8[/C][C]10090[/C][C]9932.75[/C][C]157.25[/C][/ROW]
[ROW][C]9[/C][C]9867[/C][C]9932.75[/C][C]-65.75[/C][/ROW]
[ROW][C]10[/C][C]9736[/C][C]9654.71428571429[/C][C]81.2857142857138[/C][/ROW]
[ROW][C]11[/C][C]9040[/C][C]9128.4074074074[/C][C]-88.407407407407[/C][/ROW]
[ROW][C]12[/C][C]9232[/C][C]9654.71428571429[/C][C]-422.714285714286[/C][/ROW]
[ROW][C]13[/C][C]9520[/C][C]9641.8[/C][C]-121.799999999999[/C][/ROW]
[ROW][C]14[/C][C]9217[/C][C]9654.71428571429[/C][C]-437.714285714286[/C][/ROW]
[ROW][C]15[/C][C]9868[/C][C]9654.71428571429[/C][C]213.285714285714[/C][/ROW]
[ROW][C]16[/C][C]9455[/C][C]9654.71428571429[/C][C]-199.714285714286[/C][/ROW]
[ROW][C]17[/C][C]9984[/C][C]9932.75[/C][C]51.25[/C][/ROW]
[ROW][C]18[/C][C]9556[/C][C]9932.75[/C][C]-376.75[/C][/ROW]
[ROW][C]19[/C][C]10190[/C][C]9932.75[/C][C]257.25[/C][/ROW]
[ROW][C]20[/C][C]9906[/C][C]9932.75[/C][C]-26.75[/C][/ROW]
[ROW][C]21[/C][C]9824[/C][C]9932.75[/C][C]-108.75[/C][/ROW]
[ROW][C]22[/C][C]9972[/C][C]9654.71428571429[/C][C]317.285714285714[/C][/ROW]
[ROW][C]23[/C][C]9185[/C][C]9128.4074074074[/C][C]56.5925925925931[/C][/ROW]
[ROW][C]24[/C][C]9765[/C][C]9654.71428571429[/C][C]110.285714285714[/C][/ROW]
[ROW][C]25[/C][C]9838[/C][C]9641.8[/C][C]196.200000000001[/C][/ROW]
[ROW][C]26[/C][C]9084[/C][C]9128.4074074074[/C][C]-44.4074074074069[/C][/ROW]
[ROW][C]27[/C][C]9643[/C][C]9654.71428571429[/C][C]-11.7142857142862[/C][/ROW]
[ROW][C]28[/C][C]10051[/C][C]9654.71428571429[/C][C]396.285714285714[/C][/ROW]
[ROW][C]29[/C][C]9987[/C][C]9932.75[/C][C]54.25[/C][/ROW]
[ROW][C]30[/C][C]9827[/C][C]9932.75[/C][C]-105.75[/C][/ROW]
[ROW][C]31[/C][C]10491[/C][C]9932.75[/C][C]558.25[/C][/ROW]
[ROW][C]32[/C][C]9722[/C][C]9932.75[/C][C]-210.75[/C][/ROW]
[ROW][C]33[/C][C]9472[/C][C]9932.75[/C][C]-460.75[/C][/ROW]
[ROW][C]34[/C][C]9728[/C][C]9654.71428571429[/C][C]73.2857142857138[/C][/ROW]
[ROW][C]35[/C][C]8510[/C][C]9128.4074074074[/C][C]-618.407407407407[/C][/ROW]
[ROW][C]36[/C][C]9511[/C][C]9654.71428571429[/C][C]-143.714285714286[/C][/ROW]
[ROW][C]37[/C][C]9492[/C][C]9641.8[/C][C]-149.799999999999[/C][/ROW]
[ROW][C]38[/C][C]8638[/C][C]9128.4074074074[/C][C]-490.407407407407[/C][/ROW]
[ROW][C]39[/C][C]9792[/C][C]9654.71428571429[/C][C]137.285714285714[/C][/ROW]
[ROW][C]40[/C][C]9605[/C][C]9654.71428571429[/C][C]-49.7142857142862[/C][/ROW]
[ROW][C]41[/C][C]9237[/C][C]9654.71428571429[/C][C]-417.714285714286[/C][/ROW]
[ROW][C]42[/C][C]9533[/C][C]9654.71428571429[/C][C]-121.714285714286[/C][/ROW]
[ROW][C]43[/C][C]10293[/C][C]9932.75[/C][C]360.25[/C][/ROW]
[ROW][C]44[/C][C]9938[/C][C]9932.75[/C][C]5.25[/C][/ROW]
[ROW][C]45[/C][C]9984[/C][C]9654.71428571429[/C][C]329.285714285714[/C][/ROW]
[ROW][C]46[/C][C]9563[/C][C]9654.71428571429[/C][C]-91.7142857142862[/C][/ROW]
[ROW][C]47[/C][C]8871[/C][C]9128.4074074074[/C][C]-257.407407407407[/C][/ROW]
[ROW][C]48[/C][C]9301[/C][C]9128.4074074074[/C][C]172.592592592593[/C][/ROW]
[ROW][C]49[/C][C]9215[/C][C]9641.8[/C][C]-426.799999999999[/C][/ROW]
[ROW][C]50[/C][C]8834[/C][C]9128.4074074074[/C][C]-294.407407407407[/C][/ROW]
[ROW][C]51[/C][C]9998[/C][C]9654.71428571429[/C][C]343.285714285714[/C][/ROW]
[ROW][C]52[/C][C]9604[/C][C]9654.71428571429[/C][C]-50.7142857142862[/C][/ROW]
[ROW][C]53[/C][C]9507[/C][C]9654.71428571429[/C][C]-147.714285714286[/C][/ROW]
[ROW][C]54[/C][C]9718[/C][C]9654.71428571429[/C][C]63.2857142857138[/C][/ROW]
[ROW][C]55[/C][C]10095[/C][C]9932.75[/C][C]162.25[/C][/ROW]
[ROW][C]56[/C][C]9583[/C][C]9932.75[/C][C]-349.75[/C][/ROW]
[ROW][C]57[/C][C]9883[/C][C]9932.75[/C][C]-49.75[/C][/ROW]
[ROW][C]58[/C][C]9365[/C][C]9654.71428571429[/C][C]-289.714285714286[/C][/ROW]
[ROW][C]59[/C][C]8919[/C][C]9128.4074074074[/C][C]-209.407407407407[/C][/ROW]
[ROW][C]60[/C][C]9449[/C][C]9654.71428571429[/C][C]-205.714285714286[/C][/ROW]
[ROW][C]61[/C][C]9769[/C][C]9641.8[/C][C]127.200000000001[/C][/ROW]
[ROW][C]62[/C][C]9321[/C][C]9128.4074074074[/C][C]192.592592592593[/C][/ROW]
[ROW][C]63[/C][C]9939[/C][C]9654.71428571429[/C][C]284.285714285714[/C][/ROW]
[ROW][C]64[/C][C]9336[/C][C]9654.71428571429[/C][C]-318.714285714286[/C][/ROW]
[ROW][C]65[/C][C]10195[/C][C]9654.71428571429[/C][C]540.285714285714[/C][/ROW]
[ROW][C]66[/C][C]9464[/C][C]9654.71428571429[/C][C]-190.714285714286[/C][/ROW]
[ROW][C]67[/C][C]10010[/C][C]9932.75[/C][C]77.25[/C][/ROW]
[ROW][C]68[/C][C]10213[/C][C]9932.75[/C][C]280.25[/C][/ROW]
[ROW][C]69[/C][C]9563[/C][C]9932.75[/C][C]-369.75[/C][/ROW]
[ROW][C]70[/C][C]9890[/C][C]9654.71428571429[/C][C]235.285714285714[/C][/ROW]
[ROW][C]71[/C][C]9305[/C][C]9128.4074074074[/C][C]176.592592592593[/C][/ROW]
[ROW][C]72[/C][C]9391[/C][C]9654.71428571429[/C][C]-263.714285714286[/C][/ROW]
[ROW][C]73[/C][C]9743[/C][C]9641.8[/C][C]101.200000000001[/C][/ROW]
[ROW][C]74[/C][C]8587[/C][C]9128.4074074074[/C][C]-541.407407407407[/C][/ROW]
[ROW][C]75[/C][C]9731[/C][C]9654.71428571429[/C][C]76.2857142857138[/C][/ROW]
[ROW][C]76[/C][C]9563[/C][C]9654.71428571429[/C][C]-91.7142857142862[/C][/ROW]
[ROW][C]77[/C][C]9998[/C][C]9654.71428571429[/C][C]343.285714285714[/C][/ROW]
[ROW][C]78[/C][C]9437[/C][C]9932.75[/C][C]-495.75[/C][/ROW]
[ROW][C]79[/C][C]10038[/C][C]9654.71428571429[/C][C]383.285714285714[/C][/ROW]
[ROW][C]80[/C][C]9918[/C][C]9932.75[/C][C]-14.75[/C][/ROW]
[ROW][C]81[/C][C]9252[/C][C]9932.75[/C][C]-680.75[/C][/ROW]
[ROW][C]82[/C][C]9737[/C][C]9654.71428571429[/C][C]82.2857142857138[/C][/ROW]
[ROW][C]83[/C][C]9035[/C][C]9128.4074074074[/C][C]-93.407407407407[/C][/ROW]
[ROW][C]84[/C][C]9133[/C][C]9654.71428571429[/C][C]-521.714285714286[/C][/ROW]
[ROW][C]85[/C][C]9487[/C][C]9641.8[/C][C]-154.799999999999[/C][/ROW]
[ROW][C]86[/C][C]8700[/C][C]9128.4074074074[/C][C]-428.407407407407[/C][/ROW]
[ROW][C]87[/C][C]9627[/C][C]9128.4074074074[/C][C]498.592592592593[/C][/ROW]
[ROW][C]88[/C][C]8947[/C][C]9654.71428571429[/C][C]-707.714285714286[/C][/ROW]
[ROW][C]89[/C][C]9283[/C][C]9654.71428571429[/C][C]-371.714285714286[/C][/ROW]
[ROW][C]90[/C][C]8829[/C][C]9654.71428571429[/C][C]-825.714285714286[/C][/ROW]
[ROW][C]91[/C][C]9947[/C][C]9654.71428571429[/C][C]292.285714285714[/C][/ROW]
[ROW][C]92[/C][C]9628[/C][C]9932.75[/C][C]-304.75[/C][/ROW]
[ROW][C]93[/C][C]9318[/C][C]9654.71428571429[/C][C]-336.714285714286[/C][/ROW]
[ROW][C]94[/C][C]9605[/C][C]9654.71428571429[/C][C]-49.7142857142862[/C][/ROW]
[ROW][C]95[/C][C]8640[/C][C]9128.4074074074[/C][C]-488.407407407407[/C][/ROW]
[ROW][C]96[/C][C]9214[/C][C]9128.4074074074[/C][C]85.592592592593[/C][/ROW]
[ROW][C]97[/C][C]9676[/C][C]9641.8[/C][C]34.2000000000007[/C][/ROW]
[ROW][C]98[/C][C]8642[/C][C]9128.4074074074[/C][C]-486.407407407407[/C][/ROW]
[ROW][C]99[/C][C]9402[/C][C]9654.71428571429[/C][C]-252.714285714286[/C][/ROW]
[ROW][C]100[/C][C]9610[/C][C]9654.71428571429[/C][C]-44.7142857142862[/C][/ROW]
[ROW][C]101[/C][C]9294[/C][C]9654.71428571429[/C][C]-360.714285714286[/C][/ROW]
[ROW][C]102[/C][C]9448[/C][C]9654.71428571429[/C][C]-206.714285714286[/C][/ROW]
[ROW][C]103[/C][C]10319[/C][C]9654.71428571429[/C][C]664.285714285714[/C][/ROW]
[ROW][C]104[/C][C]9548[/C][C]9932.75[/C][C]-384.75[/C][/ROW]
[ROW][C]105[/C][C]9801[/C][C]9654.71428571429[/C][C]146.285714285714[/C][/ROW]
[ROW][C]106[/C][C]9596[/C][C]9654.71428571429[/C][C]-58.7142857142862[/C][/ROW]
[ROW][C]107[/C][C]8923[/C][C]9128.4074074074[/C][C]-205.407407407407[/C][/ROW]
[ROW][C]108[/C][C]9746[/C][C]9128.4074074074[/C][C]617.592592592593[/C][/ROW]
[ROW][C]109[/C][C]9829[/C][C]9641.8[/C][C]187.200000000001[/C][/ROW]
[ROW][C]110[/C][C]9125[/C][C]9654.71428571429[/C][C]-529.714285714286[/C][/ROW]
[ROW][C]111[/C][C]9782[/C][C]9128.4074074074[/C][C]653.592592592593[/C][/ROW]
[ROW][C]112[/C][C]9441[/C][C]9654.71428571429[/C][C]-213.714285714286[/C][/ROW]
[ROW][C]113[/C][C]9162[/C][C]9654.71428571429[/C][C]-492.714285714286[/C][/ROW]
[ROW][C]114[/C][C]9915[/C][C]9654.71428571429[/C][C]260.285714285714[/C][/ROW]
[ROW][C]115[/C][C]10444[/C][C]9932.75[/C][C]511.25[/C][/ROW]
[ROW][C]116[/C][C]10209[/C][C]9932.75[/C][C]276.25[/C][/ROW]
[ROW][C]117[/C][C]9985[/C][C]9654.71428571429[/C][C]330.285714285714[/C][/ROW]
[ROW][C]118[/C][C]9842[/C][C]9654.71428571429[/C][C]187.285714285714[/C][/ROW]
[ROW][C]119[/C][C]9429[/C][C]9128.4074074074[/C][C]300.592592592593[/C][/ROW]
[ROW][C]120[/C][C]10132[/C][C]9654.71428571429[/C][C]477.285714285714[/C][/ROW]
[ROW][C]121[/C][C]9849[/C][C]9641.8[/C][C]207.200000000001[/C][/ROW]
[ROW][C]122[/C][C]9172[/C][C]9128.4074074074[/C][C]43.5925925925931[/C][/ROW]
[ROW][C]123[/C][C]10313[/C][C]9128.4074074074[/C][C]1184.59259259259[/C][/ROW]
[ROW][C]124[/C][C]9819[/C][C]9654.71428571429[/C][C]164.285714285714[/C][/ROW]
[ROW][C]125[/C][C]9955[/C][C]9654.71428571429[/C][C]300.285714285714[/C][/ROW]
[ROW][C]126[/C][C]10048[/C][C]9654.71428571429[/C][C]393.285714285714[/C][/ROW]
[ROW][C]127[/C][C]10082[/C][C]9932.75[/C][C]149.25[/C][/ROW]
[ROW][C]128[/C][C]10541[/C][C]9932.75[/C][C]608.25[/C][/ROW]
[ROW][C]129[/C][C]10208[/C][C]9654.71428571429[/C][C]553.285714285714[/C][/ROW]
[ROW][C]130[/C][C]10233[/C][C]9654.71428571429[/C][C]578.285714285714[/C][/ROW]
[ROW][C]131[/C][C]9439[/C][C]9128.4074074074[/C][C]310.592592592593[/C][/ROW]
[ROW][C]132[/C][C]9963[/C][C]9654.71428571429[/C][C]308.285714285714[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115236&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115236&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
195069128.4074074074377.592592592593
287049128.4074074074-424.407407407407
3100799654.71428571429424.285714285714
489939654.71428571429-661.714285714286
599579932.7524.25
6102409932.75307.25
7100989932.75165.25
8100909932.75157.25
998679932.75-65.75
1097369654.7142857142981.2857142857138
1190409128.4074074074-88.407407407407
1292329654.71428571429-422.714285714286
1395209641.8-121.799999999999
1492179654.71428571429-437.714285714286
1598689654.71428571429213.285714285714
1694559654.71428571429-199.714285714286
1799849932.7551.25
1895569932.75-376.75
19101909932.75257.25
2099069932.75-26.75
2198249932.75-108.75
2299729654.71428571429317.285714285714
2391859128.407407407456.5925925925931
2497659654.71428571429110.285714285714
2598389641.8196.200000000001
2690849128.4074074074-44.4074074074069
2796439654.71428571429-11.7142857142862
28100519654.71428571429396.285714285714
2999879932.7554.25
3098279932.75-105.75
31104919932.75558.25
3297229932.75-210.75
3394729932.75-460.75
3497289654.7142857142973.2857142857138
3585109128.4074074074-618.407407407407
3695119654.71428571429-143.714285714286
3794929641.8-149.799999999999
3886389128.4074074074-490.407407407407
3997929654.71428571429137.285714285714
4096059654.71428571429-49.7142857142862
4192379654.71428571429-417.714285714286
4295339654.71428571429-121.714285714286
43102939932.75360.25
4499389932.755.25
4599849654.71428571429329.285714285714
4695639654.71428571429-91.7142857142862
4788719128.4074074074-257.407407407407
4893019128.4074074074172.592592592593
4992159641.8-426.799999999999
5088349128.4074074074-294.407407407407
5199989654.71428571429343.285714285714
5296049654.71428571429-50.7142857142862
5395079654.71428571429-147.714285714286
5497189654.7142857142963.2857142857138
55100959932.75162.25
5695839932.75-349.75
5798839932.75-49.75
5893659654.71428571429-289.714285714286
5989199128.4074074074-209.407407407407
6094499654.71428571429-205.714285714286
6197699641.8127.200000000001
6293219128.4074074074192.592592592593
6399399654.71428571429284.285714285714
6493369654.71428571429-318.714285714286
65101959654.71428571429540.285714285714
6694649654.71428571429-190.714285714286
67100109932.7577.25
68102139932.75280.25
6995639932.75-369.75
7098909654.71428571429235.285714285714
7193059128.4074074074176.592592592593
7293919654.71428571429-263.714285714286
7397439641.8101.200000000001
7485879128.4074074074-541.407407407407
7597319654.7142857142976.2857142857138
7695639654.71428571429-91.7142857142862
7799989654.71428571429343.285714285714
7894379932.75-495.75
79100389654.71428571429383.285714285714
8099189932.75-14.75
8192529932.75-680.75
8297379654.7142857142982.2857142857138
8390359128.4074074074-93.407407407407
8491339654.71428571429-521.714285714286
8594879641.8-154.799999999999
8687009128.4074074074-428.407407407407
8796279128.4074074074498.592592592593
8889479654.71428571429-707.714285714286
8992839654.71428571429-371.714285714286
9088299654.71428571429-825.714285714286
9199479654.71428571429292.285714285714
9296289932.75-304.75
9393189654.71428571429-336.714285714286
9496059654.71428571429-49.7142857142862
9586409128.4074074074-488.407407407407
9692149128.407407407485.592592592593
9796769641.834.2000000000007
9886429128.4074074074-486.407407407407
9994029654.71428571429-252.714285714286
10096109654.71428571429-44.7142857142862
10192949654.71428571429-360.714285714286
10294489654.71428571429-206.714285714286
103103199654.71428571429664.285714285714
10495489932.75-384.75
10598019654.71428571429146.285714285714
10695969654.71428571429-58.7142857142862
10789239128.4074074074-205.407407407407
10897469128.4074074074617.592592592593
10998299641.8187.200000000001
11091259654.71428571429-529.714285714286
11197829128.4074074074653.592592592593
11294419654.71428571429-213.714285714286
11391629654.71428571429-492.714285714286
11499159654.71428571429260.285714285714
115104449932.75511.25
116102099932.75276.25
11799859654.71428571429330.285714285714
11898429654.71428571429187.285714285714
11994299128.4074074074300.592592592593
120101329654.71428571429477.285714285714
12198499641.8207.200000000001
12291729128.407407407443.5925925925931
123103139128.40740740741184.59259259259
12498199654.71428571429164.285714285714
12599559654.71428571429300.285714285714
126100489654.71428571429393.285714285714
127100829932.75149.25
128105419932.75608.25
129102089654.71428571429553.285714285714
130102339654.71428571429578.285714285714
13194399128.4074074074310.592592592593
13299639654.71428571429308.285714285714



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