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 computationTue, 14 Dec 2010 00:35:45 +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/14/t1292286936xq98p5kz7ft1h9l.htm/, Retrieved Thu, 02 May 2024 17:30:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=109243, Retrieved Thu, 02 May 2024 17:30:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact178
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-14 00:35:45] [6b67b7c8c7d0a997c30f007387afbdb8] [Current]
Feedback Forum

Post a new message
Dataseries X:
1579	0	4,0	45,7
2146	0	5,9	81,9
2462	0	7,1	56,8
3695	0	10,5	65,1
4831	0	15,1	86,2
5134	0	16,8	35,1
6250	0	15,3	133,8
5760	0	18,4	34,5
6249	0	16,1	69,9
2917	0	11,3	98,3
1741	0	7,9	86,7
2359	0	5,6	58,2
1511	1	3,4	83,6
2059	0	4,8	83,5
2635	0	6,5	112,3
2867	0	8,5	134,3
4403	0	15,1	30,0
5720	0	15,7	44,5
4502	0	18,7	120,1
5749	0	19,2	43,4
5627	0	12,9	199,4
2846	0	14,4	68,1
1762	0	6,2	99,8
2429	0	3,3	69,5
1169	0	4,6	71,3
2154	1	7,2	167,8
2249	0	7,8	66,3
2687	0	9,9	41,9
4359	0	13,6	57,2
5382	0	17,1	72,3
4459	0	17,8	96,5
6398	0	18,6	172,1
4596	0	14,7	25,8
3024	0	10,5	105,1
1887	0	8,6	92,2
2070	0	4,4	109,3
1351	0	2,3	101,7
2218	0	2,8	29,1
2461	1	8,8	34,6
3028	0	10,7	46,7
4784	0	13,9	82,0
4975	0	19,3	34,4
4607	0	19,5	72,7
6249	0	20,4	44,4
4809	0	15,3	31,0
3157	0	7,9	64,0
1910	0	8,3	65,4
2228	0	4,5	64,5
1594	0	3,2	153,8
2467	0	5,0	48,8
2222	0	6,6	25,0
3607	1	11,1	37,2
4685	0	12,8	40,8
4962	0	16,3	78,4
5770	0	17,4	112,4
5480	0	18,9	122,7
5000	0	15,8	82,9
3228	0	11,7	67,6
1993	0	6,4	78,4
2288	0	2,9	65,7
1580	0	4,7	44,9
2111	0	2,4	80,9
2192	0	7,2	38,8
3601	0	10,7	46,1
4665	1	13,4	60,0
4876	0	18,5	53,9
5813	0	18,3	123,5
5589	0	16,8	69,5
5331	0	16,6	74,2
3075	0	14,1	47,0
2002	0	6,1	60,9
2306	0	3,5	51,4
1507	0	1,7	18,7
1992	0	2,3	88,1
2487	0	4,5	65,3
3490	0	9,3	46,0
4647	0	14,2	115,6
5594	1	17,3	25,8
5611	0	23,0	48,1
5788	0	16,3	202,3
6204	0	18,4	9,2
3013	0	14,2	56,3
1931	0	9,1	71,6
2549	0	5,9	93,0
1504	0	7,2	82,3
2090	0	6,8	95,4
2702	0	8,0	61,9
2939	0	14,3	0,0
4500	0	14,6	103,4
6208	0	17,5	99,2
6415	1	17,2	96,7
5657	0	17,2	56,9
5964	0	14,1	57,6
3163	0	10,5	65,2
1997	0	6,8	71,7
2422	0	4,1	89,2
1376	0	6,5	70,7
2202	0	6,1	35,4
2683	0	6,3	140,5
3303	0	9,3	45,4
5202	0	16,4	53,9
5231	0	16,1	69,9
4880	0	18,0	101,9
7998	1	17,6	89,3
4977	0	14,0	70,7
3531	0	10,5	72,4
2025	0	6,9	67,6
2205	0	2,8	43,3
1442	0	0,7	62,9
2238	0	3,6	57,1
2179	0	6,7	68,2
3218	0	12,5	47,1
5139	0	14,4	43,1
4990	0	16,5	64,5
4914	0	18,7	73,1
6084	0	19,4	37,7
5672	1	15,8	29,1
3548	0	11,3	105,0
1793	0	9,7	98,0
2086	0	2,9	80,8




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.

\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 & 4 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
R Framework error message & 
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=109243&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[ROW][C]R Framework error message[/C][C]
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=109243&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=109243&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 time4 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk
R Framework error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.







Goodness of Fit
Correlation0.9294
R-squared0.8638
RMSE596.4812

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=109243&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.9294
R-squared0.8638
RMSE596.4812







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
115792093.64705882353-514.647058823529
221462093.6470588235352.3529411764707
324622093.64705882353368.352941176471
436953188.86666666667506.133333333333
548314414.70588235294416.294117647059
651345554.37837837838-420.378378378378
762505554.37837837838695.621621621622
857605554.37837837838205.621621621622
962495554.37837837838694.621621621622
1029173188.86666666667-271.866666666667
1117412093.64705882353-352.647058823529
1223592093.64705882353265.352941176471
1315112093.64705882353-582.647058823529
1420592093.64705882353-34.6470588235293
1526352093.64705882353541.352941176471
1628672093.64705882353773.352941176471
1744034414.70588235294-11.7058823529414
1857205554.37837837838165.621621621622
1945025554.37837837838-1052.37837837838
2057495554.37837837838194.621621621622
2156274414.705882352941212.29411764706
2228464414.70588235294-1568.70588235294
2317622093.64705882353-331.647058823529
2424292093.64705882353335.352941176471
2511692093.64705882353-924.647058823529
2621542093.6470588235360.3529411764707
2722492093.64705882353155.352941176471
2826873188.86666666667-501.866666666667
2943594414.70588235294-55.7058823529414
3053825554.37837837838-172.378378378378
3144595554.37837837838-1095.37837837838
3263985554.37837837838843.621621621622
3345964414.70588235294181.294117647059
3430243188.86666666667-164.866666666667
3518872093.64705882353-206.647058823529
3620702093.64705882353-23.6470588235293
3713512093.64705882353-742.647058823529
3822182093.64705882353124.352941176471
3924612093.64705882353367.352941176471
4030283188.86666666667-160.866666666667
4147844414.70588235294369.294117647059
4249755554.37837837838-579.378378378378
4346075554.37837837838-947.378378378378
4462495554.37837837838694.621621621622
4548095554.37837837838-745.378378378378
4631572093.647058823531063.35294117647
4719102093.64705882353-183.647058823529
4822282093.64705882353134.352941176471
4915942093.64705882353-499.647058823529
5024672093.64705882353373.352941176471
5122222093.64705882353128.352941176471
5236073188.86666666667418.133333333333
5346854414.70588235294270.294117647059
5449625554.37837837838-592.378378378378
5557705554.37837837838215.621621621622
5654805554.37837837838-74.3783783783783
5750005554.37837837838-554.378378378378
5832283188.8666666666739.1333333333332
5919932093.64705882353-100.647058823529
6022882093.64705882353194.352941176471
6115802093.64705882353-513.647058823529
6221112093.6470588235317.3529411764707
6321922093.6470588235398.3529411764707
6436013188.86666666667412.133333333333
6546654414.70588235294250.294117647059
6648765554.37837837838-678.378378378378
6758135554.37837837838258.621621621622
6855895554.3783783783834.6216216216217
6953315554.37837837838-223.378378378378
7030754414.70588235294-1339.70588235294
7120022093.64705882353-91.6470588235293
7223062093.64705882353212.352941176471
7315072093.64705882353-586.647058823529
7419922093.64705882353-101.647058823529
7524872093.64705882353393.352941176471
7634903188.86666666667301.133333333333
7746474414.70588235294232.294117647059
7855945554.3783783783839.6216216216217
7956115554.3783783783856.6216216216217
8057885554.37837837838233.621621621622
8162045554.37837837838649.621621621622
8230134414.70588235294-1401.70588235294
8319312093.64705882353-162.647058823529
8425492093.64705882353455.352941176471
8515042093.64705882353-589.647058823529
8620902093.64705882353-3.64705882352928
8727022093.64705882353608.352941176471
8829394414.70588235294-1475.70588235294
8945004414.7058823529485.2941176470586
9062085554.37837837838653.621621621622
9164155554.37837837838860.621621621622
9256575554.37837837838102.621621621622
9359644414.705882352941549.29411764706
9431633188.86666666667-25.8666666666668
9519972093.64705882353-96.6470588235293
9624222093.64705882353328.352941176471
9713762093.64705882353-717.647058823529
9822022093.64705882353108.352941176471
9926832093.64705882353589.352941176471
10033033188.86666666667114.133333333333
10152025554.37837837838-352.378378378378
10252315554.37837837838-323.378378378378
10348805554.37837837838-674.378378378378
10479985554.378378378382443.62162162162
10549774414.70588235294562.294117647059
10635313188.86666666667342.133333333333
10720252093.64705882353-68.6470588235293
10822052093.64705882353111.352941176471
10914422093.64705882353-651.647058823529
11022382093.64705882353144.352941176471
11121792093.6470588235385.3529411764707
11232183188.8666666666729.1333333333332
11351394414.70588235294724.294117647059
11449905554.37837837838-564.378378378378
11549145554.37837837838-640.378378378378
11660845554.37837837838529.621621621622
11756725554.37837837838117.621621621622
11835483188.86666666667359.133333333333
11917933188.86666666667-1395.86666666667
12020862093.64705882353-7.64705882352928

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 1579 & 2093.64705882353 & -514.647058823529 \tabularnewline
2 & 2146 & 2093.64705882353 & 52.3529411764707 \tabularnewline
3 & 2462 & 2093.64705882353 & 368.352941176471 \tabularnewline
4 & 3695 & 3188.86666666667 & 506.133333333333 \tabularnewline
5 & 4831 & 4414.70588235294 & 416.294117647059 \tabularnewline
6 & 5134 & 5554.37837837838 & -420.378378378378 \tabularnewline
7 & 6250 & 5554.37837837838 & 695.621621621622 \tabularnewline
8 & 5760 & 5554.37837837838 & 205.621621621622 \tabularnewline
9 & 6249 & 5554.37837837838 & 694.621621621622 \tabularnewline
10 & 2917 & 3188.86666666667 & -271.866666666667 \tabularnewline
11 & 1741 & 2093.64705882353 & -352.647058823529 \tabularnewline
12 & 2359 & 2093.64705882353 & 265.352941176471 \tabularnewline
13 & 1511 & 2093.64705882353 & -582.647058823529 \tabularnewline
14 & 2059 & 2093.64705882353 & -34.6470588235293 \tabularnewline
15 & 2635 & 2093.64705882353 & 541.352941176471 \tabularnewline
16 & 2867 & 2093.64705882353 & 773.352941176471 \tabularnewline
17 & 4403 & 4414.70588235294 & -11.7058823529414 \tabularnewline
18 & 5720 & 5554.37837837838 & 165.621621621622 \tabularnewline
19 & 4502 & 5554.37837837838 & -1052.37837837838 \tabularnewline
20 & 5749 & 5554.37837837838 & 194.621621621622 \tabularnewline
21 & 5627 & 4414.70588235294 & 1212.29411764706 \tabularnewline
22 & 2846 & 4414.70588235294 & -1568.70588235294 \tabularnewline
23 & 1762 & 2093.64705882353 & -331.647058823529 \tabularnewline
24 & 2429 & 2093.64705882353 & 335.352941176471 \tabularnewline
25 & 1169 & 2093.64705882353 & -924.647058823529 \tabularnewline
26 & 2154 & 2093.64705882353 & 60.3529411764707 \tabularnewline
27 & 2249 & 2093.64705882353 & 155.352941176471 \tabularnewline
28 & 2687 & 3188.86666666667 & -501.866666666667 \tabularnewline
29 & 4359 & 4414.70588235294 & -55.7058823529414 \tabularnewline
30 & 5382 & 5554.37837837838 & -172.378378378378 \tabularnewline
31 & 4459 & 5554.37837837838 & -1095.37837837838 \tabularnewline
32 & 6398 & 5554.37837837838 & 843.621621621622 \tabularnewline
33 & 4596 & 4414.70588235294 & 181.294117647059 \tabularnewline
34 & 3024 & 3188.86666666667 & -164.866666666667 \tabularnewline
35 & 1887 & 2093.64705882353 & -206.647058823529 \tabularnewline
36 & 2070 & 2093.64705882353 & -23.6470588235293 \tabularnewline
37 & 1351 & 2093.64705882353 & -742.647058823529 \tabularnewline
38 & 2218 & 2093.64705882353 & 124.352941176471 \tabularnewline
39 & 2461 & 2093.64705882353 & 367.352941176471 \tabularnewline
40 & 3028 & 3188.86666666667 & -160.866666666667 \tabularnewline
41 & 4784 & 4414.70588235294 & 369.294117647059 \tabularnewline
42 & 4975 & 5554.37837837838 & -579.378378378378 \tabularnewline
43 & 4607 & 5554.37837837838 & -947.378378378378 \tabularnewline
44 & 6249 & 5554.37837837838 & 694.621621621622 \tabularnewline
45 & 4809 & 5554.37837837838 & -745.378378378378 \tabularnewline
46 & 3157 & 2093.64705882353 & 1063.35294117647 \tabularnewline
47 & 1910 & 2093.64705882353 & -183.647058823529 \tabularnewline
48 & 2228 & 2093.64705882353 & 134.352941176471 \tabularnewline
49 & 1594 & 2093.64705882353 & -499.647058823529 \tabularnewline
50 & 2467 & 2093.64705882353 & 373.352941176471 \tabularnewline
51 & 2222 & 2093.64705882353 & 128.352941176471 \tabularnewline
52 & 3607 & 3188.86666666667 & 418.133333333333 \tabularnewline
53 & 4685 & 4414.70588235294 & 270.294117647059 \tabularnewline
54 & 4962 & 5554.37837837838 & -592.378378378378 \tabularnewline
55 & 5770 & 5554.37837837838 & 215.621621621622 \tabularnewline
56 & 5480 & 5554.37837837838 & -74.3783783783783 \tabularnewline
57 & 5000 & 5554.37837837838 & -554.378378378378 \tabularnewline
58 & 3228 & 3188.86666666667 & 39.1333333333332 \tabularnewline
59 & 1993 & 2093.64705882353 & -100.647058823529 \tabularnewline
60 & 2288 & 2093.64705882353 & 194.352941176471 \tabularnewline
61 & 1580 & 2093.64705882353 & -513.647058823529 \tabularnewline
62 & 2111 & 2093.64705882353 & 17.3529411764707 \tabularnewline
63 & 2192 & 2093.64705882353 & 98.3529411764707 \tabularnewline
64 & 3601 & 3188.86666666667 & 412.133333333333 \tabularnewline
65 & 4665 & 4414.70588235294 & 250.294117647059 \tabularnewline
66 & 4876 & 5554.37837837838 & -678.378378378378 \tabularnewline
67 & 5813 & 5554.37837837838 & 258.621621621622 \tabularnewline
68 & 5589 & 5554.37837837838 & 34.6216216216217 \tabularnewline
69 & 5331 & 5554.37837837838 & -223.378378378378 \tabularnewline
70 & 3075 & 4414.70588235294 & -1339.70588235294 \tabularnewline
71 & 2002 & 2093.64705882353 & -91.6470588235293 \tabularnewline
72 & 2306 & 2093.64705882353 & 212.352941176471 \tabularnewline
73 & 1507 & 2093.64705882353 & -586.647058823529 \tabularnewline
74 & 1992 & 2093.64705882353 & -101.647058823529 \tabularnewline
75 & 2487 & 2093.64705882353 & 393.352941176471 \tabularnewline
76 & 3490 & 3188.86666666667 & 301.133333333333 \tabularnewline
77 & 4647 & 4414.70588235294 & 232.294117647059 \tabularnewline
78 & 5594 & 5554.37837837838 & 39.6216216216217 \tabularnewline
79 & 5611 & 5554.37837837838 & 56.6216216216217 \tabularnewline
80 & 5788 & 5554.37837837838 & 233.621621621622 \tabularnewline
81 & 6204 & 5554.37837837838 & 649.621621621622 \tabularnewline
82 & 3013 & 4414.70588235294 & -1401.70588235294 \tabularnewline
83 & 1931 & 2093.64705882353 & -162.647058823529 \tabularnewline
84 & 2549 & 2093.64705882353 & 455.352941176471 \tabularnewline
85 & 1504 & 2093.64705882353 & -589.647058823529 \tabularnewline
86 & 2090 & 2093.64705882353 & -3.64705882352928 \tabularnewline
87 & 2702 & 2093.64705882353 & 608.352941176471 \tabularnewline
88 & 2939 & 4414.70588235294 & -1475.70588235294 \tabularnewline
89 & 4500 & 4414.70588235294 & 85.2941176470586 \tabularnewline
90 & 6208 & 5554.37837837838 & 653.621621621622 \tabularnewline
91 & 6415 & 5554.37837837838 & 860.621621621622 \tabularnewline
92 & 5657 & 5554.37837837838 & 102.621621621622 \tabularnewline
93 & 5964 & 4414.70588235294 & 1549.29411764706 \tabularnewline
94 & 3163 & 3188.86666666667 & -25.8666666666668 \tabularnewline
95 & 1997 & 2093.64705882353 & -96.6470588235293 \tabularnewline
96 & 2422 & 2093.64705882353 & 328.352941176471 \tabularnewline
97 & 1376 & 2093.64705882353 & -717.647058823529 \tabularnewline
98 & 2202 & 2093.64705882353 & 108.352941176471 \tabularnewline
99 & 2683 & 2093.64705882353 & 589.352941176471 \tabularnewline
100 & 3303 & 3188.86666666667 & 114.133333333333 \tabularnewline
101 & 5202 & 5554.37837837838 & -352.378378378378 \tabularnewline
102 & 5231 & 5554.37837837838 & -323.378378378378 \tabularnewline
103 & 4880 & 5554.37837837838 & -674.378378378378 \tabularnewline
104 & 7998 & 5554.37837837838 & 2443.62162162162 \tabularnewline
105 & 4977 & 4414.70588235294 & 562.294117647059 \tabularnewline
106 & 3531 & 3188.86666666667 & 342.133333333333 \tabularnewline
107 & 2025 & 2093.64705882353 & -68.6470588235293 \tabularnewline
108 & 2205 & 2093.64705882353 & 111.352941176471 \tabularnewline
109 & 1442 & 2093.64705882353 & -651.647058823529 \tabularnewline
110 & 2238 & 2093.64705882353 & 144.352941176471 \tabularnewline
111 & 2179 & 2093.64705882353 & 85.3529411764707 \tabularnewline
112 & 3218 & 3188.86666666667 & 29.1333333333332 \tabularnewline
113 & 5139 & 4414.70588235294 & 724.294117647059 \tabularnewline
114 & 4990 & 5554.37837837838 & -564.378378378378 \tabularnewline
115 & 4914 & 5554.37837837838 & -640.378378378378 \tabularnewline
116 & 6084 & 5554.37837837838 & 529.621621621622 \tabularnewline
117 & 5672 & 5554.37837837838 & 117.621621621622 \tabularnewline
118 & 3548 & 3188.86666666667 & 359.133333333333 \tabularnewline
119 & 1793 & 3188.86666666667 & -1395.86666666667 \tabularnewline
120 & 2086 & 2093.64705882353 & -7.64705882352928 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=109243&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]1579[/C][C]2093.64705882353[/C][C]-514.647058823529[/C][/ROW]
[ROW][C]2[/C][C]2146[/C][C]2093.64705882353[/C][C]52.3529411764707[/C][/ROW]
[ROW][C]3[/C][C]2462[/C][C]2093.64705882353[/C][C]368.352941176471[/C][/ROW]
[ROW][C]4[/C][C]3695[/C][C]3188.86666666667[/C][C]506.133333333333[/C][/ROW]
[ROW][C]5[/C][C]4831[/C][C]4414.70588235294[/C][C]416.294117647059[/C][/ROW]
[ROW][C]6[/C][C]5134[/C][C]5554.37837837838[/C][C]-420.378378378378[/C][/ROW]
[ROW][C]7[/C][C]6250[/C][C]5554.37837837838[/C][C]695.621621621622[/C][/ROW]
[ROW][C]8[/C][C]5760[/C][C]5554.37837837838[/C][C]205.621621621622[/C][/ROW]
[ROW][C]9[/C][C]6249[/C][C]5554.37837837838[/C][C]694.621621621622[/C][/ROW]
[ROW][C]10[/C][C]2917[/C][C]3188.86666666667[/C][C]-271.866666666667[/C][/ROW]
[ROW][C]11[/C][C]1741[/C][C]2093.64705882353[/C][C]-352.647058823529[/C][/ROW]
[ROW][C]12[/C][C]2359[/C][C]2093.64705882353[/C][C]265.352941176471[/C][/ROW]
[ROW][C]13[/C][C]1511[/C][C]2093.64705882353[/C][C]-582.647058823529[/C][/ROW]
[ROW][C]14[/C][C]2059[/C][C]2093.64705882353[/C][C]-34.6470588235293[/C][/ROW]
[ROW][C]15[/C][C]2635[/C][C]2093.64705882353[/C][C]541.352941176471[/C][/ROW]
[ROW][C]16[/C][C]2867[/C][C]2093.64705882353[/C][C]773.352941176471[/C][/ROW]
[ROW][C]17[/C][C]4403[/C][C]4414.70588235294[/C][C]-11.7058823529414[/C][/ROW]
[ROW][C]18[/C][C]5720[/C][C]5554.37837837838[/C][C]165.621621621622[/C][/ROW]
[ROW][C]19[/C][C]4502[/C][C]5554.37837837838[/C][C]-1052.37837837838[/C][/ROW]
[ROW][C]20[/C][C]5749[/C][C]5554.37837837838[/C][C]194.621621621622[/C][/ROW]
[ROW][C]21[/C][C]5627[/C][C]4414.70588235294[/C][C]1212.29411764706[/C][/ROW]
[ROW][C]22[/C][C]2846[/C][C]4414.70588235294[/C][C]-1568.70588235294[/C][/ROW]
[ROW][C]23[/C][C]1762[/C][C]2093.64705882353[/C][C]-331.647058823529[/C][/ROW]
[ROW][C]24[/C][C]2429[/C][C]2093.64705882353[/C][C]335.352941176471[/C][/ROW]
[ROW][C]25[/C][C]1169[/C][C]2093.64705882353[/C][C]-924.647058823529[/C][/ROW]
[ROW][C]26[/C][C]2154[/C][C]2093.64705882353[/C][C]60.3529411764707[/C][/ROW]
[ROW][C]27[/C][C]2249[/C][C]2093.64705882353[/C][C]155.352941176471[/C][/ROW]
[ROW][C]28[/C][C]2687[/C][C]3188.86666666667[/C][C]-501.866666666667[/C][/ROW]
[ROW][C]29[/C][C]4359[/C][C]4414.70588235294[/C][C]-55.7058823529414[/C][/ROW]
[ROW][C]30[/C][C]5382[/C][C]5554.37837837838[/C][C]-172.378378378378[/C][/ROW]
[ROW][C]31[/C][C]4459[/C][C]5554.37837837838[/C][C]-1095.37837837838[/C][/ROW]
[ROW][C]32[/C][C]6398[/C][C]5554.37837837838[/C][C]843.621621621622[/C][/ROW]
[ROW][C]33[/C][C]4596[/C][C]4414.70588235294[/C][C]181.294117647059[/C][/ROW]
[ROW][C]34[/C][C]3024[/C][C]3188.86666666667[/C][C]-164.866666666667[/C][/ROW]
[ROW][C]35[/C][C]1887[/C][C]2093.64705882353[/C][C]-206.647058823529[/C][/ROW]
[ROW][C]36[/C][C]2070[/C][C]2093.64705882353[/C][C]-23.6470588235293[/C][/ROW]
[ROW][C]37[/C][C]1351[/C][C]2093.64705882353[/C][C]-742.647058823529[/C][/ROW]
[ROW][C]38[/C][C]2218[/C][C]2093.64705882353[/C][C]124.352941176471[/C][/ROW]
[ROW][C]39[/C][C]2461[/C][C]2093.64705882353[/C][C]367.352941176471[/C][/ROW]
[ROW][C]40[/C][C]3028[/C][C]3188.86666666667[/C][C]-160.866666666667[/C][/ROW]
[ROW][C]41[/C][C]4784[/C][C]4414.70588235294[/C][C]369.294117647059[/C][/ROW]
[ROW][C]42[/C][C]4975[/C][C]5554.37837837838[/C][C]-579.378378378378[/C][/ROW]
[ROW][C]43[/C][C]4607[/C][C]5554.37837837838[/C][C]-947.378378378378[/C][/ROW]
[ROW][C]44[/C][C]6249[/C][C]5554.37837837838[/C][C]694.621621621622[/C][/ROW]
[ROW][C]45[/C][C]4809[/C][C]5554.37837837838[/C][C]-745.378378378378[/C][/ROW]
[ROW][C]46[/C][C]3157[/C][C]2093.64705882353[/C][C]1063.35294117647[/C][/ROW]
[ROW][C]47[/C][C]1910[/C][C]2093.64705882353[/C][C]-183.647058823529[/C][/ROW]
[ROW][C]48[/C][C]2228[/C][C]2093.64705882353[/C][C]134.352941176471[/C][/ROW]
[ROW][C]49[/C][C]1594[/C][C]2093.64705882353[/C][C]-499.647058823529[/C][/ROW]
[ROW][C]50[/C][C]2467[/C][C]2093.64705882353[/C][C]373.352941176471[/C][/ROW]
[ROW][C]51[/C][C]2222[/C][C]2093.64705882353[/C][C]128.352941176471[/C][/ROW]
[ROW][C]52[/C][C]3607[/C][C]3188.86666666667[/C][C]418.133333333333[/C][/ROW]
[ROW][C]53[/C][C]4685[/C][C]4414.70588235294[/C][C]270.294117647059[/C][/ROW]
[ROW][C]54[/C][C]4962[/C][C]5554.37837837838[/C][C]-592.378378378378[/C][/ROW]
[ROW][C]55[/C][C]5770[/C][C]5554.37837837838[/C][C]215.621621621622[/C][/ROW]
[ROW][C]56[/C][C]5480[/C][C]5554.37837837838[/C][C]-74.3783783783783[/C][/ROW]
[ROW][C]57[/C][C]5000[/C][C]5554.37837837838[/C][C]-554.378378378378[/C][/ROW]
[ROW][C]58[/C][C]3228[/C][C]3188.86666666667[/C][C]39.1333333333332[/C][/ROW]
[ROW][C]59[/C][C]1993[/C][C]2093.64705882353[/C][C]-100.647058823529[/C][/ROW]
[ROW][C]60[/C][C]2288[/C][C]2093.64705882353[/C][C]194.352941176471[/C][/ROW]
[ROW][C]61[/C][C]1580[/C][C]2093.64705882353[/C][C]-513.647058823529[/C][/ROW]
[ROW][C]62[/C][C]2111[/C][C]2093.64705882353[/C][C]17.3529411764707[/C][/ROW]
[ROW][C]63[/C][C]2192[/C][C]2093.64705882353[/C][C]98.3529411764707[/C][/ROW]
[ROW][C]64[/C][C]3601[/C][C]3188.86666666667[/C][C]412.133333333333[/C][/ROW]
[ROW][C]65[/C][C]4665[/C][C]4414.70588235294[/C][C]250.294117647059[/C][/ROW]
[ROW][C]66[/C][C]4876[/C][C]5554.37837837838[/C][C]-678.378378378378[/C][/ROW]
[ROW][C]67[/C][C]5813[/C][C]5554.37837837838[/C][C]258.621621621622[/C][/ROW]
[ROW][C]68[/C][C]5589[/C][C]5554.37837837838[/C][C]34.6216216216217[/C][/ROW]
[ROW][C]69[/C][C]5331[/C][C]5554.37837837838[/C][C]-223.378378378378[/C][/ROW]
[ROW][C]70[/C][C]3075[/C][C]4414.70588235294[/C][C]-1339.70588235294[/C][/ROW]
[ROW][C]71[/C][C]2002[/C][C]2093.64705882353[/C][C]-91.6470588235293[/C][/ROW]
[ROW][C]72[/C][C]2306[/C][C]2093.64705882353[/C][C]212.352941176471[/C][/ROW]
[ROW][C]73[/C][C]1507[/C][C]2093.64705882353[/C][C]-586.647058823529[/C][/ROW]
[ROW][C]74[/C][C]1992[/C][C]2093.64705882353[/C][C]-101.647058823529[/C][/ROW]
[ROW][C]75[/C][C]2487[/C][C]2093.64705882353[/C][C]393.352941176471[/C][/ROW]
[ROW][C]76[/C][C]3490[/C][C]3188.86666666667[/C][C]301.133333333333[/C][/ROW]
[ROW][C]77[/C][C]4647[/C][C]4414.70588235294[/C][C]232.294117647059[/C][/ROW]
[ROW][C]78[/C][C]5594[/C][C]5554.37837837838[/C][C]39.6216216216217[/C][/ROW]
[ROW][C]79[/C][C]5611[/C][C]5554.37837837838[/C][C]56.6216216216217[/C][/ROW]
[ROW][C]80[/C][C]5788[/C][C]5554.37837837838[/C][C]233.621621621622[/C][/ROW]
[ROW][C]81[/C][C]6204[/C][C]5554.37837837838[/C][C]649.621621621622[/C][/ROW]
[ROW][C]82[/C][C]3013[/C][C]4414.70588235294[/C][C]-1401.70588235294[/C][/ROW]
[ROW][C]83[/C][C]1931[/C][C]2093.64705882353[/C][C]-162.647058823529[/C][/ROW]
[ROW][C]84[/C][C]2549[/C][C]2093.64705882353[/C][C]455.352941176471[/C][/ROW]
[ROW][C]85[/C][C]1504[/C][C]2093.64705882353[/C][C]-589.647058823529[/C][/ROW]
[ROW][C]86[/C][C]2090[/C][C]2093.64705882353[/C][C]-3.64705882352928[/C][/ROW]
[ROW][C]87[/C][C]2702[/C][C]2093.64705882353[/C][C]608.352941176471[/C][/ROW]
[ROW][C]88[/C][C]2939[/C][C]4414.70588235294[/C][C]-1475.70588235294[/C][/ROW]
[ROW][C]89[/C][C]4500[/C][C]4414.70588235294[/C][C]85.2941176470586[/C][/ROW]
[ROW][C]90[/C][C]6208[/C][C]5554.37837837838[/C][C]653.621621621622[/C][/ROW]
[ROW][C]91[/C][C]6415[/C][C]5554.37837837838[/C][C]860.621621621622[/C][/ROW]
[ROW][C]92[/C][C]5657[/C][C]5554.37837837838[/C][C]102.621621621622[/C][/ROW]
[ROW][C]93[/C][C]5964[/C][C]4414.70588235294[/C][C]1549.29411764706[/C][/ROW]
[ROW][C]94[/C][C]3163[/C][C]3188.86666666667[/C][C]-25.8666666666668[/C][/ROW]
[ROW][C]95[/C][C]1997[/C][C]2093.64705882353[/C][C]-96.6470588235293[/C][/ROW]
[ROW][C]96[/C][C]2422[/C][C]2093.64705882353[/C][C]328.352941176471[/C][/ROW]
[ROW][C]97[/C][C]1376[/C][C]2093.64705882353[/C][C]-717.647058823529[/C][/ROW]
[ROW][C]98[/C][C]2202[/C][C]2093.64705882353[/C][C]108.352941176471[/C][/ROW]
[ROW][C]99[/C][C]2683[/C][C]2093.64705882353[/C][C]589.352941176471[/C][/ROW]
[ROW][C]100[/C][C]3303[/C][C]3188.86666666667[/C][C]114.133333333333[/C][/ROW]
[ROW][C]101[/C][C]5202[/C][C]5554.37837837838[/C][C]-352.378378378378[/C][/ROW]
[ROW][C]102[/C][C]5231[/C][C]5554.37837837838[/C][C]-323.378378378378[/C][/ROW]
[ROW][C]103[/C][C]4880[/C][C]5554.37837837838[/C][C]-674.378378378378[/C][/ROW]
[ROW][C]104[/C][C]7998[/C][C]5554.37837837838[/C][C]2443.62162162162[/C][/ROW]
[ROW][C]105[/C][C]4977[/C][C]4414.70588235294[/C][C]562.294117647059[/C][/ROW]
[ROW][C]106[/C][C]3531[/C][C]3188.86666666667[/C][C]342.133333333333[/C][/ROW]
[ROW][C]107[/C][C]2025[/C][C]2093.64705882353[/C][C]-68.6470588235293[/C][/ROW]
[ROW][C]108[/C][C]2205[/C][C]2093.64705882353[/C][C]111.352941176471[/C][/ROW]
[ROW][C]109[/C][C]1442[/C][C]2093.64705882353[/C][C]-651.647058823529[/C][/ROW]
[ROW][C]110[/C][C]2238[/C][C]2093.64705882353[/C][C]144.352941176471[/C][/ROW]
[ROW][C]111[/C][C]2179[/C][C]2093.64705882353[/C][C]85.3529411764707[/C][/ROW]
[ROW][C]112[/C][C]3218[/C][C]3188.86666666667[/C][C]29.1333333333332[/C][/ROW]
[ROW][C]113[/C][C]5139[/C][C]4414.70588235294[/C][C]724.294117647059[/C][/ROW]
[ROW][C]114[/C][C]4990[/C][C]5554.37837837838[/C][C]-564.378378378378[/C][/ROW]
[ROW][C]115[/C][C]4914[/C][C]5554.37837837838[/C][C]-640.378378378378[/C][/ROW]
[ROW][C]116[/C][C]6084[/C][C]5554.37837837838[/C][C]529.621621621622[/C][/ROW]
[ROW][C]117[/C][C]5672[/C][C]5554.37837837838[/C][C]117.621621621622[/C][/ROW]
[ROW][C]118[/C][C]3548[/C][C]3188.86666666667[/C][C]359.133333333333[/C][/ROW]
[ROW][C]119[/C][C]1793[/C][C]3188.86666666667[/C][C]-1395.86666666667[/C][/ROW]
[ROW][C]120[/C][C]2086[/C][C]2093.64705882353[/C][C]-7.64705882352928[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=109243&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=109243&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
115792093.64705882353-514.647058823529
221462093.6470588235352.3529411764707
324622093.64705882353368.352941176471
436953188.86666666667506.133333333333
548314414.70588235294416.294117647059
651345554.37837837838-420.378378378378
762505554.37837837838695.621621621622
857605554.37837837838205.621621621622
962495554.37837837838694.621621621622
1029173188.86666666667-271.866666666667
1117412093.64705882353-352.647058823529
1223592093.64705882353265.352941176471
1315112093.64705882353-582.647058823529
1420592093.64705882353-34.6470588235293
1526352093.64705882353541.352941176471
1628672093.64705882353773.352941176471
1744034414.70588235294-11.7058823529414
1857205554.37837837838165.621621621622
1945025554.37837837838-1052.37837837838
2057495554.37837837838194.621621621622
2156274414.705882352941212.29411764706
2228464414.70588235294-1568.70588235294
2317622093.64705882353-331.647058823529
2424292093.64705882353335.352941176471
2511692093.64705882353-924.647058823529
2621542093.6470588235360.3529411764707
2722492093.64705882353155.352941176471
2826873188.86666666667-501.866666666667
2943594414.70588235294-55.7058823529414
3053825554.37837837838-172.378378378378
3144595554.37837837838-1095.37837837838
3263985554.37837837838843.621621621622
3345964414.70588235294181.294117647059
3430243188.86666666667-164.866666666667
3518872093.64705882353-206.647058823529
3620702093.64705882353-23.6470588235293
3713512093.64705882353-742.647058823529
3822182093.64705882353124.352941176471
3924612093.64705882353367.352941176471
4030283188.86666666667-160.866666666667
4147844414.70588235294369.294117647059
4249755554.37837837838-579.378378378378
4346075554.37837837838-947.378378378378
4462495554.37837837838694.621621621622
4548095554.37837837838-745.378378378378
4631572093.647058823531063.35294117647
4719102093.64705882353-183.647058823529
4822282093.64705882353134.352941176471
4915942093.64705882353-499.647058823529
5024672093.64705882353373.352941176471
5122222093.64705882353128.352941176471
5236073188.86666666667418.133333333333
5346854414.70588235294270.294117647059
5449625554.37837837838-592.378378378378
5557705554.37837837838215.621621621622
5654805554.37837837838-74.3783783783783
5750005554.37837837838-554.378378378378
5832283188.8666666666739.1333333333332
5919932093.64705882353-100.647058823529
6022882093.64705882353194.352941176471
6115802093.64705882353-513.647058823529
6221112093.6470588235317.3529411764707
6321922093.6470588235398.3529411764707
6436013188.86666666667412.133333333333
6546654414.70588235294250.294117647059
6648765554.37837837838-678.378378378378
6758135554.37837837838258.621621621622
6855895554.3783783783834.6216216216217
6953315554.37837837838-223.378378378378
7030754414.70588235294-1339.70588235294
7120022093.64705882353-91.6470588235293
7223062093.64705882353212.352941176471
7315072093.64705882353-586.647058823529
7419922093.64705882353-101.647058823529
7524872093.64705882353393.352941176471
7634903188.86666666667301.133333333333
7746474414.70588235294232.294117647059
7855945554.3783783783839.6216216216217
7956115554.3783783783856.6216216216217
8057885554.37837837838233.621621621622
8162045554.37837837838649.621621621622
8230134414.70588235294-1401.70588235294
8319312093.64705882353-162.647058823529
8425492093.64705882353455.352941176471
8515042093.64705882353-589.647058823529
8620902093.64705882353-3.64705882352928
8727022093.64705882353608.352941176471
8829394414.70588235294-1475.70588235294
8945004414.7058823529485.2941176470586
9062085554.37837837838653.621621621622
9164155554.37837837838860.621621621622
9256575554.37837837838102.621621621622
9359644414.705882352941549.29411764706
9431633188.86666666667-25.8666666666668
9519972093.64705882353-96.6470588235293
9624222093.64705882353328.352941176471
9713762093.64705882353-717.647058823529
9822022093.64705882353108.352941176471
9926832093.64705882353589.352941176471
10033033188.86666666667114.133333333333
10152025554.37837837838-352.378378378378
10252315554.37837837838-323.378378378378
10348805554.37837837838-674.378378378378
10479985554.378378378382443.62162162162
10549774414.70588235294562.294117647059
10635313188.86666666667342.133333333333
10720252093.64705882353-68.6470588235293
10822052093.64705882353111.352941176471
10914422093.64705882353-651.647058823529
11022382093.64705882353144.352941176471
11121792093.6470588235385.3529411764707
11232183188.8666666666729.1333333333332
11351394414.70588235294724.294117647059
11449905554.37837837838-564.378378378378
11549145554.37837837838-640.378378378378
11660845554.37837837838529.621621621622
11756725554.37837837838117.621621621622
11835483188.86666666667359.133333333333
11917933188.86666666667-1395.86666666667
12020862093.64705882353-7.64705882352928



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')
}