Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_regression_trees1dm.wasp
Title produced by softwareRecursive Partitioning (Regression Trees)
Date of computationMon, 30 Apr 2012 08:36:42 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Apr/30/t1335789413qrrnkmawznh6lnb.htm/, Retrieved Mon, 29 Apr 2024 06:03:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=165237, Retrieved Mon, 29 Apr 2024 06:03:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Notched Boxplots] [] [2012-04-23 09:07:19] [272f2f17453c7186d6073ebf31ee4b1c]
- RMP   [Recursive Partitioning (Regression Trees)] [] [2012-04-23 09:47:52] [272f2f17453c7186d6073ebf31ee4b1c]
- R P       [Recursive Partitioning (Regression Trees)] [] [2012-04-30 12:36:42] [722cc7f94b3c1568a723b3c5e98a2726] [Current]
Feedback Forum

Post a new message




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

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







Goodness of Fit
Correlation0.9545
R-squared0.9111
RMSE995.3935

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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=165237&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.9545
R-squared0.9111
RMSE995.3935







Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
15123.14895.2725227.8275
25970.446635.59923076923-665.15923076923
310441.1310182.575258.555
47707.267168.52375000001538.736249999994
510489.0614312.9969230769-3823.93692307692
612247.6711971.915625275.754375
76713.046635.5992307692377.4407692307695
89370.70333333338617.29229166666753.411041666637
98282.816635.599230769231647.21076923077
108756.09333333338617.29229166666138.801041666637
1112624.3211971.915625652.404375
128866.34333333338617.29229166666249.051041666637
136063.614895.27251168.3375
147018.637168.52375000001-149.893750000006
155517.954895.2725622.6775
169701.819696.341428571435.46857142857152
179810.0610182.575-372.515000000001
187446.077168.52375000001277.546249999994
197954.658617.29229166666-662.642291666663
206300.77168.52375000001-867.823750000006
217142.286635.59923076923506.680769230769
229202.328500.40176470588701.918235294117
235867.796635.59923076923-767.80923076923
244481.134895.2725-414.1425
2513707.573333333314312.9969230769-605.423589743616
269927.519696.34142857143231.168571428572
278741.73666666678617.29229166666124.444375000037
287095.667168.52375000001-72.8637500000059
299186.738500.40176470588686.328235294117
308958.798500.40176470588458.388235294118
315701.564895.2725806.287499999999
326940.117168.52375000001-228.413750000006
338452.868500.40176470588-47.5417647058821
3413315.123333333314312.9969230769-997.873589743615
356301.376635.59923076923-334.229230769231
365614.494895.2725719.2175
3710239.7810182.57557.2049999999981
387072.17168.52375000001-96.4237500000054
395381.774895.2725486.4975
4010010.0610182.575-172.515000000001
414844.834895.2725-50.4425000000001
427982.68617.29229166666-634.692291666663
438956.81333333338617.29229166666339.521041666636
448350.28500.40176470588-150.201764705882
4513201.7914312.9969230769-1111.20692307691
465350.284895.2725455.0075
479404.769696.34142857143-291.581428571428
486740.527168.52375000001-428.003750000005
4911055.2111971.915625-916.705625000001
5010406.8410182.575224.264999999999
516996.917168.52375000001-171.613750000006
526239.876635.59923076923-395.729230769231
536184.586635.59923076923-451.01923076923
547473.55666666677168.52375000001305.032916666694
5511568.2410182.5751385.665
568569.54666666678617.29229166666-47.7456249999632
5711914.4811971.915625-57.4356250000001
586086.446635.59923076923-549.15923076923
5912749.6611971.915625777.744375
605384.014895.2725488.7375
6111344.711971.915625-627.215624999999
627137.827168.52375000001-30.703750000006
637297.287168.52375000001128.756249999994
647294.086635.59923076923658.48076923077
659876.4310182.575-306.145
668047.748617.29229166666-569.552291666663
679801.269696.34142857143104.918571428572
6811924.2411971.915625-47.6756249999999
6913083.5411971.9156251111.624375
708829.97666666678617.29229166666212.684375000037
716959.317168.52375000001-209.213750000006
729545.519696.34142857143-150.831428571428
738963.52333333338617.29229166666346.231041666637
744868.324895.2725-26.9525000000003
759288.228500.40176470588787.818235294118
768351.328617.29229166666-265.972291666663
778579.568617.29229166666-37.7322916666635
7813804.4114312.9969230769-508.586923076915
797377.95666666677168.52375000001209.432916666694
807727.83666666677168.52375000001559.312916666694
818735.858617.29229166666118.557708333337
8213327.653333333314312.9969230769-985.343589743616
8317394.2714312.99692307693081.27307692309
848975.828500.40176470588475.418235294117
8517338.5914312.99692307693025.59307692309
867967.828500.40176470588-532.581764705883
8711613.8711971.915625-358.045625000001
887894.858500.40176470588-605.551764705882
898315.498500.40176470588-184.911764705883
9015474.5316925.1128571429-1450.58285714286
918821.38500.40176470588320.898235294117
9211025.4111971.915625-946.505625
939762.979696.3414285714366.6285714285732
9412871.9411971.915625900.024375000001
9510142.8210182.575-39.755000000001
9610070.7710182.575-111.805
9716068.9116925.1128571429-856.202857142856
9811407.4311971.915625-564.485624999999
998652.828617.2922916666635.5277083333367
10017509.5114312.99692307693196.51307692309
1017451.386635.59923076923815.78076923077
1028114.978500.40176470588-385.431764705882
1038409.378500.40176470588-91.0317647058837
1049447.6510182.575-734.925000000001
10517281.4816925.1128571429356.367142857143
1065679.414895.2725784.1375
1079826.7410182.575-355.835000000001
10811758.4911971.915625-213.425625
1093928.274895.2725-967.0025
11020683.2416925.11285714293758.12714285714
1116783.196635.59923076923147.59076923077
1128665.678500.40176470588165.268235294117
11314167.7314312.9969230769-145.266923076915
114362.344895.2725-4532.9325
1154380.054895.2725-515.2225
11614235.214312.9969230769-77.796923076914
1175643.244895.2725747.9675
11814639.7816925.1128571429-2285.33285714286
1198517.48617.29229166666-99.8922916666634
12012805.9511971.915625834.034375000001
1215945.526635.59923076923-690.07923076923
1227642.438500.40176470588-857.971764705882
12319226.2916925.11285714292301.17714285714
12413625.0314312.9969230769-687.966923076916
1258005.468500.40176470588-494.941764705883
1268254.538500.40176470588-245.871764705884
12715101.5616925.1128571429-1823.55285714285
12813953.0214312.9969230769-359.976923076914
12910692.6911971.915625-1279.225625
1309730.579696.3414285714334.2285714285717
13112431.0511971.915625459.134375
13210350.3810182.575167.805
1337404.667168.52375000001236.136249999994

\begin{tabular}{lllllllll}
\hline
Actuals, Predictions, and Residuals \tabularnewline
# & Actuals & Forecasts & Residuals \tabularnewline
1 & 5123.1 & 4895.2725 & 227.8275 \tabularnewline
2 & 5970.44 & 6635.59923076923 & -665.15923076923 \tabularnewline
3 & 10441.13 & 10182.575 & 258.555 \tabularnewline
4 & 7707.26 & 7168.52375000001 & 538.736249999994 \tabularnewline
5 & 10489.06 & 14312.9969230769 & -3823.93692307692 \tabularnewline
6 & 12247.67 & 11971.915625 & 275.754375 \tabularnewline
7 & 6713.04 & 6635.59923076923 & 77.4407692307695 \tabularnewline
8 & 9370.7033333333 & 8617.29229166666 & 753.411041666637 \tabularnewline
9 & 8282.81 & 6635.59923076923 & 1647.21076923077 \tabularnewline
10 & 8756.0933333333 & 8617.29229166666 & 138.801041666637 \tabularnewline
11 & 12624.32 & 11971.915625 & 652.404375 \tabularnewline
12 & 8866.3433333333 & 8617.29229166666 & 249.051041666637 \tabularnewline
13 & 6063.61 & 4895.2725 & 1168.3375 \tabularnewline
14 & 7018.63 & 7168.52375000001 & -149.893750000006 \tabularnewline
15 & 5517.95 & 4895.2725 & 622.6775 \tabularnewline
16 & 9701.81 & 9696.34142857143 & 5.46857142857152 \tabularnewline
17 & 9810.06 & 10182.575 & -372.515000000001 \tabularnewline
18 & 7446.07 & 7168.52375000001 & 277.546249999994 \tabularnewline
19 & 7954.65 & 8617.29229166666 & -662.642291666663 \tabularnewline
20 & 6300.7 & 7168.52375000001 & -867.823750000006 \tabularnewline
21 & 7142.28 & 6635.59923076923 & 506.680769230769 \tabularnewline
22 & 9202.32 & 8500.40176470588 & 701.918235294117 \tabularnewline
23 & 5867.79 & 6635.59923076923 & -767.80923076923 \tabularnewline
24 & 4481.13 & 4895.2725 & -414.1425 \tabularnewline
25 & 13707.5733333333 & 14312.9969230769 & -605.423589743616 \tabularnewline
26 & 9927.51 & 9696.34142857143 & 231.168571428572 \tabularnewline
27 & 8741.7366666667 & 8617.29229166666 & 124.444375000037 \tabularnewline
28 & 7095.66 & 7168.52375000001 & -72.8637500000059 \tabularnewline
29 & 9186.73 & 8500.40176470588 & 686.328235294117 \tabularnewline
30 & 8958.79 & 8500.40176470588 & 458.388235294118 \tabularnewline
31 & 5701.56 & 4895.2725 & 806.287499999999 \tabularnewline
32 & 6940.11 & 7168.52375000001 & -228.413750000006 \tabularnewline
33 & 8452.86 & 8500.40176470588 & -47.5417647058821 \tabularnewline
34 & 13315.1233333333 & 14312.9969230769 & -997.873589743615 \tabularnewline
35 & 6301.37 & 6635.59923076923 & -334.229230769231 \tabularnewline
36 & 5614.49 & 4895.2725 & 719.2175 \tabularnewline
37 & 10239.78 & 10182.575 & 57.2049999999981 \tabularnewline
38 & 7072.1 & 7168.52375000001 & -96.4237500000054 \tabularnewline
39 & 5381.77 & 4895.2725 & 486.4975 \tabularnewline
40 & 10010.06 & 10182.575 & -172.515000000001 \tabularnewline
41 & 4844.83 & 4895.2725 & -50.4425000000001 \tabularnewline
42 & 7982.6 & 8617.29229166666 & -634.692291666663 \tabularnewline
43 & 8956.8133333333 & 8617.29229166666 & 339.521041666636 \tabularnewline
44 & 8350.2 & 8500.40176470588 & -150.201764705882 \tabularnewline
45 & 13201.79 & 14312.9969230769 & -1111.20692307691 \tabularnewline
46 & 5350.28 & 4895.2725 & 455.0075 \tabularnewline
47 & 9404.76 & 9696.34142857143 & -291.581428571428 \tabularnewline
48 & 6740.52 & 7168.52375000001 & -428.003750000005 \tabularnewline
49 & 11055.21 & 11971.915625 & -916.705625000001 \tabularnewline
50 & 10406.84 & 10182.575 & 224.264999999999 \tabularnewline
51 & 6996.91 & 7168.52375000001 & -171.613750000006 \tabularnewline
52 & 6239.87 & 6635.59923076923 & -395.729230769231 \tabularnewline
53 & 6184.58 & 6635.59923076923 & -451.01923076923 \tabularnewline
54 & 7473.5566666667 & 7168.52375000001 & 305.032916666694 \tabularnewline
55 & 11568.24 & 10182.575 & 1385.665 \tabularnewline
56 & 8569.5466666667 & 8617.29229166666 & -47.7456249999632 \tabularnewline
57 & 11914.48 & 11971.915625 & -57.4356250000001 \tabularnewline
58 & 6086.44 & 6635.59923076923 & -549.15923076923 \tabularnewline
59 & 12749.66 & 11971.915625 & 777.744375 \tabularnewline
60 & 5384.01 & 4895.2725 & 488.7375 \tabularnewline
61 & 11344.7 & 11971.915625 & -627.215624999999 \tabularnewline
62 & 7137.82 & 7168.52375000001 & -30.703750000006 \tabularnewline
63 & 7297.28 & 7168.52375000001 & 128.756249999994 \tabularnewline
64 & 7294.08 & 6635.59923076923 & 658.48076923077 \tabularnewline
65 & 9876.43 & 10182.575 & -306.145 \tabularnewline
66 & 8047.74 & 8617.29229166666 & -569.552291666663 \tabularnewline
67 & 9801.26 & 9696.34142857143 & 104.918571428572 \tabularnewline
68 & 11924.24 & 11971.915625 & -47.6756249999999 \tabularnewline
69 & 13083.54 & 11971.915625 & 1111.624375 \tabularnewline
70 & 8829.9766666667 & 8617.29229166666 & 212.684375000037 \tabularnewline
71 & 6959.31 & 7168.52375000001 & -209.213750000006 \tabularnewline
72 & 9545.51 & 9696.34142857143 & -150.831428571428 \tabularnewline
73 & 8963.5233333333 & 8617.29229166666 & 346.231041666637 \tabularnewline
74 & 4868.32 & 4895.2725 & -26.9525000000003 \tabularnewline
75 & 9288.22 & 8500.40176470588 & 787.818235294118 \tabularnewline
76 & 8351.32 & 8617.29229166666 & -265.972291666663 \tabularnewline
77 & 8579.56 & 8617.29229166666 & -37.7322916666635 \tabularnewline
78 & 13804.41 & 14312.9969230769 & -508.586923076915 \tabularnewline
79 & 7377.9566666667 & 7168.52375000001 & 209.432916666694 \tabularnewline
80 & 7727.8366666667 & 7168.52375000001 & 559.312916666694 \tabularnewline
81 & 8735.85 & 8617.29229166666 & 118.557708333337 \tabularnewline
82 & 13327.6533333333 & 14312.9969230769 & -985.343589743616 \tabularnewline
83 & 17394.27 & 14312.9969230769 & 3081.27307692309 \tabularnewline
84 & 8975.82 & 8500.40176470588 & 475.418235294117 \tabularnewline
85 & 17338.59 & 14312.9969230769 & 3025.59307692309 \tabularnewline
86 & 7967.82 & 8500.40176470588 & -532.581764705883 \tabularnewline
87 & 11613.87 & 11971.915625 & -358.045625000001 \tabularnewline
88 & 7894.85 & 8500.40176470588 & -605.551764705882 \tabularnewline
89 & 8315.49 & 8500.40176470588 & -184.911764705883 \tabularnewline
90 & 15474.53 & 16925.1128571429 & -1450.58285714286 \tabularnewline
91 & 8821.3 & 8500.40176470588 & 320.898235294117 \tabularnewline
92 & 11025.41 & 11971.915625 & -946.505625 \tabularnewline
93 & 9762.97 & 9696.34142857143 & 66.6285714285732 \tabularnewline
94 & 12871.94 & 11971.915625 & 900.024375000001 \tabularnewline
95 & 10142.82 & 10182.575 & -39.755000000001 \tabularnewline
96 & 10070.77 & 10182.575 & -111.805 \tabularnewline
97 & 16068.91 & 16925.1128571429 & -856.202857142856 \tabularnewline
98 & 11407.43 & 11971.915625 & -564.485624999999 \tabularnewline
99 & 8652.82 & 8617.29229166666 & 35.5277083333367 \tabularnewline
100 & 17509.51 & 14312.9969230769 & 3196.51307692309 \tabularnewline
101 & 7451.38 & 6635.59923076923 & 815.78076923077 \tabularnewline
102 & 8114.97 & 8500.40176470588 & -385.431764705882 \tabularnewline
103 & 8409.37 & 8500.40176470588 & -91.0317647058837 \tabularnewline
104 & 9447.65 & 10182.575 & -734.925000000001 \tabularnewline
105 & 17281.48 & 16925.1128571429 & 356.367142857143 \tabularnewline
106 & 5679.41 & 4895.2725 & 784.1375 \tabularnewline
107 & 9826.74 & 10182.575 & -355.835000000001 \tabularnewline
108 & 11758.49 & 11971.915625 & -213.425625 \tabularnewline
109 & 3928.27 & 4895.2725 & -967.0025 \tabularnewline
110 & 20683.24 & 16925.1128571429 & 3758.12714285714 \tabularnewline
111 & 6783.19 & 6635.59923076923 & 147.59076923077 \tabularnewline
112 & 8665.67 & 8500.40176470588 & 165.268235294117 \tabularnewline
113 & 14167.73 & 14312.9969230769 & -145.266923076915 \tabularnewline
114 & 362.34 & 4895.2725 & -4532.9325 \tabularnewline
115 & 4380.05 & 4895.2725 & -515.2225 \tabularnewline
116 & 14235.2 & 14312.9969230769 & -77.796923076914 \tabularnewline
117 & 5643.24 & 4895.2725 & 747.9675 \tabularnewline
118 & 14639.78 & 16925.1128571429 & -2285.33285714286 \tabularnewline
119 & 8517.4 & 8617.29229166666 & -99.8922916666634 \tabularnewline
120 & 12805.95 & 11971.915625 & 834.034375000001 \tabularnewline
121 & 5945.52 & 6635.59923076923 & -690.07923076923 \tabularnewline
122 & 7642.43 & 8500.40176470588 & -857.971764705882 \tabularnewline
123 & 19226.29 & 16925.1128571429 & 2301.17714285714 \tabularnewline
124 & 13625.03 & 14312.9969230769 & -687.966923076916 \tabularnewline
125 & 8005.46 & 8500.40176470588 & -494.941764705883 \tabularnewline
126 & 8254.53 & 8500.40176470588 & -245.871764705884 \tabularnewline
127 & 15101.56 & 16925.1128571429 & -1823.55285714285 \tabularnewline
128 & 13953.02 & 14312.9969230769 & -359.976923076914 \tabularnewline
129 & 10692.69 & 11971.915625 & -1279.225625 \tabularnewline
130 & 9730.57 & 9696.34142857143 & 34.2285714285717 \tabularnewline
131 & 12431.05 & 11971.915625 & 459.134375 \tabularnewline
132 & 10350.38 & 10182.575 & 167.805 \tabularnewline
133 & 7404.66 & 7168.52375000001 & 236.136249999994 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=165237&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]5123.1[/C][C]4895.2725[/C][C]227.8275[/C][/ROW]
[ROW][C]2[/C][C]5970.44[/C][C]6635.59923076923[/C][C]-665.15923076923[/C][/ROW]
[ROW][C]3[/C][C]10441.13[/C][C]10182.575[/C][C]258.555[/C][/ROW]
[ROW][C]4[/C][C]7707.26[/C][C]7168.52375000001[/C][C]538.736249999994[/C][/ROW]
[ROW][C]5[/C][C]10489.06[/C][C]14312.9969230769[/C][C]-3823.93692307692[/C][/ROW]
[ROW][C]6[/C][C]12247.67[/C][C]11971.915625[/C][C]275.754375[/C][/ROW]
[ROW][C]7[/C][C]6713.04[/C][C]6635.59923076923[/C][C]77.4407692307695[/C][/ROW]
[ROW][C]8[/C][C]9370.7033333333[/C][C]8617.29229166666[/C][C]753.411041666637[/C][/ROW]
[ROW][C]9[/C][C]8282.81[/C][C]6635.59923076923[/C][C]1647.21076923077[/C][/ROW]
[ROW][C]10[/C][C]8756.0933333333[/C][C]8617.29229166666[/C][C]138.801041666637[/C][/ROW]
[ROW][C]11[/C][C]12624.32[/C][C]11971.915625[/C][C]652.404375[/C][/ROW]
[ROW][C]12[/C][C]8866.3433333333[/C][C]8617.29229166666[/C][C]249.051041666637[/C][/ROW]
[ROW][C]13[/C][C]6063.61[/C][C]4895.2725[/C][C]1168.3375[/C][/ROW]
[ROW][C]14[/C][C]7018.63[/C][C]7168.52375000001[/C][C]-149.893750000006[/C][/ROW]
[ROW][C]15[/C][C]5517.95[/C][C]4895.2725[/C][C]622.6775[/C][/ROW]
[ROW][C]16[/C][C]9701.81[/C][C]9696.34142857143[/C][C]5.46857142857152[/C][/ROW]
[ROW][C]17[/C][C]9810.06[/C][C]10182.575[/C][C]-372.515000000001[/C][/ROW]
[ROW][C]18[/C][C]7446.07[/C][C]7168.52375000001[/C][C]277.546249999994[/C][/ROW]
[ROW][C]19[/C][C]7954.65[/C][C]8617.29229166666[/C][C]-662.642291666663[/C][/ROW]
[ROW][C]20[/C][C]6300.7[/C][C]7168.52375000001[/C][C]-867.823750000006[/C][/ROW]
[ROW][C]21[/C][C]7142.28[/C][C]6635.59923076923[/C][C]506.680769230769[/C][/ROW]
[ROW][C]22[/C][C]9202.32[/C][C]8500.40176470588[/C][C]701.918235294117[/C][/ROW]
[ROW][C]23[/C][C]5867.79[/C][C]6635.59923076923[/C][C]-767.80923076923[/C][/ROW]
[ROW][C]24[/C][C]4481.13[/C][C]4895.2725[/C][C]-414.1425[/C][/ROW]
[ROW][C]25[/C][C]13707.5733333333[/C][C]14312.9969230769[/C][C]-605.423589743616[/C][/ROW]
[ROW][C]26[/C][C]9927.51[/C][C]9696.34142857143[/C][C]231.168571428572[/C][/ROW]
[ROW][C]27[/C][C]8741.7366666667[/C][C]8617.29229166666[/C][C]124.444375000037[/C][/ROW]
[ROW][C]28[/C][C]7095.66[/C][C]7168.52375000001[/C][C]-72.8637500000059[/C][/ROW]
[ROW][C]29[/C][C]9186.73[/C][C]8500.40176470588[/C][C]686.328235294117[/C][/ROW]
[ROW][C]30[/C][C]8958.79[/C][C]8500.40176470588[/C][C]458.388235294118[/C][/ROW]
[ROW][C]31[/C][C]5701.56[/C][C]4895.2725[/C][C]806.287499999999[/C][/ROW]
[ROW][C]32[/C][C]6940.11[/C][C]7168.52375000001[/C][C]-228.413750000006[/C][/ROW]
[ROW][C]33[/C][C]8452.86[/C][C]8500.40176470588[/C][C]-47.5417647058821[/C][/ROW]
[ROW][C]34[/C][C]13315.1233333333[/C][C]14312.9969230769[/C][C]-997.873589743615[/C][/ROW]
[ROW][C]35[/C][C]6301.37[/C][C]6635.59923076923[/C][C]-334.229230769231[/C][/ROW]
[ROW][C]36[/C][C]5614.49[/C][C]4895.2725[/C][C]719.2175[/C][/ROW]
[ROW][C]37[/C][C]10239.78[/C][C]10182.575[/C][C]57.2049999999981[/C][/ROW]
[ROW][C]38[/C][C]7072.1[/C][C]7168.52375000001[/C][C]-96.4237500000054[/C][/ROW]
[ROW][C]39[/C][C]5381.77[/C][C]4895.2725[/C][C]486.4975[/C][/ROW]
[ROW][C]40[/C][C]10010.06[/C][C]10182.575[/C][C]-172.515000000001[/C][/ROW]
[ROW][C]41[/C][C]4844.83[/C][C]4895.2725[/C][C]-50.4425000000001[/C][/ROW]
[ROW][C]42[/C][C]7982.6[/C][C]8617.29229166666[/C][C]-634.692291666663[/C][/ROW]
[ROW][C]43[/C][C]8956.8133333333[/C][C]8617.29229166666[/C][C]339.521041666636[/C][/ROW]
[ROW][C]44[/C][C]8350.2[/C][C]8500.40176470588[/C][C]-150.201764705882[/C][/ROW]
[ROW][C]45[/C][C]13201.79[/C][C]14312.9969230769[/C][C]-1111.20692307691[/C][/ROW]
[ROW][C]46[/C][C]5350.28[/C][C]4895.2725[/C][C]455.0075[/C][/ROW]
[ROW][C]47[/C][C]9404.76[/C][C]9696.34142857143[/C][C]-291.581428571428[/C][/ROW]
[ROW][C]48[/C][C]6740.52[/C][C]7168.52375000001[/C][C]-428.003750000005[/C][/ROW]
[ROW][C]49[/C][C]11055.21[/C][C]11971.915625[/C][C]-916.705625000001[/C][/ROW]
[ROW][C]50[/C][C]10406.84[/C][C]10182.575[/C][C]224.264999999999[/C][/ROW]
[ROW][C]51[/C][C]6996.91[/C][C]7168.52375000001[/C][C]-171.613750000006[/C][/ROW]
[ROW][C]52[/C][C]6239.87[/C][C]6635.59923076923[/C][C]-395.729230769231[/C][/ROW]
[ROW][C]53[/C][C]6184.58[/C][C]6635.59923076923[/C][C]-451.01923076923[/C][/ROW]
[ROW][C]54[/C][C]7473.5566666667[/C][C]7168.52375000001[/C][C]305.032916666694[/C][/ROW]
[ROW][C]55[/C][C]11568.24[/C][C]10182.575[/C][C]1385.665[/C][/ROW]
[ROW][C]56[/C][C]8569.5466666667[/C][C]8617.29229166666[/C][C]-47.7456249999632[/C][/ROW]
[ROW][C]57[/C][C]11914.48[/C][C]11971.915625[/C][C]-57.4356250000001[/C][/ROW]
[ROW][C]58[/C][C]6086.44[/C][C]6635.59923076923[/C][C]-549.15923076923[/C][/ROW]
[ROW][C]59[/C][C]12749.66[/C][C]11971.915625[/C][C]777.744375[/C][/ROW]
[ROW][C]60[/C][C]5384.01[/C][C]4895.2725[/C][C]488.7375[/C][/ROW]
[ROW][C]61[/C][C]11344.7[/C][C]11971.915625[/C][C]-627.215624999999[/C][/ROW]
[ROW][C]62[/C][C]7137.82[/C][C]7168.52375000001[/C][C]-30.703750000006[/C][/ROW]
[ROW][C]63[/C][C]7297.28[/C][C]7168.52375000001[/C][C]128.756249999994[/C][/ROW]
[ROW][C]64[/C][C]7294.08[/C][C]6635.59923076923[/C][C]658.48076923077[/C][/ROW]
[ROW][C]65[/C][C]9876.43[/C][C]10182.575[/C][C]-306.145[/C][/ROW]
[ROW][C]66[/C][C]8047.74[/C][C]8617.29229166666[/C][C]-569.552291666663[/C][/ROW]
[ROW][C]67[/C][C]9801.26[/C][C]9696.34142857143[/C][C]104.918571428572[/C][/ROW]
[ROW][C]68[/C][C]11924.24[/C][C]11971.915625[/C][C]-47.6756249999999[/C][/ROW]
[ROW][C]69[/C][C]13083.54[/C][C]11971.915625[/C][C]1111.624375[/C][/ROW]
[ROW][C]70[/C][C]8829.9766666667[/C][C]8617.29229166666[/C][C]212.684375000037[/C][/ROW]
[ROW][C]71[/C][C]6959.31[/C][C]7168.52375000001[/C][C]-209.213750000006[/C][/ROW]
[ROW][C]72[/C][C]9545.51[/C][C]9696.34142857143[/C][C]-150.831428571428[/C][/ROW]
[ROW][C]73[/C][C]8963.5233333333[/C][C]8617.29229166666[/C][C]346.231041666637[/C][/ROW]
[ROW][C]74[/C][C]4868.32[/C][C]4895.2725[/C][C]-26.9525000000003[/C][/ROW]
[ROW][C]75[/C][C]9288.22[/C][C]8500.40176470588[/C][C]787.818235294118[/C][/ROW]
[ROW][C]76[/C][C]8351.32[/C][C]8617.29229166666[/C][C]-265.972291666663[/C][/ROW]
[ROW][C]77[/C][C]8579.56[/C][C]8617.29229166666[/C][C]-37.7322916666635[/C][/ROW]
[ROW][C]78[/C][C]13804.41[/C][C]14312.9969230769[/C][C]-508.586923076915[/C][/ROW]
[ROW][C]79[/C][C]7377.9566666667[/C][C]7168.52375000001[/C][C]209.432916666694[/C][/ROW]
[ROW][C]80[/C][C]7727.8366666667[/C][C]7168.52375000001[/C][C]559.312916666694[/C][/ROW]
[ROW][C]81[/C][C]8735.85[/C][C]8617.29229166666[/C][C]118.557708333337[/C][/ROW]
[ROW][C]82[/C][C]13327.6533333333[/C][C]14312.9969230769[/C][C]-985.343589743616[/C][/ROW]
[ROW][C]83[/C][C]17394.27[/C][C]14312.9969230769[/C][C]3081.27307692309[/C][/ROW]
[ROW][C]84[/C][C]8975.82[/C][C]8500.40176470588[/C][C]475.418235294117[/C][/ROW]
[ROW][C]85[/C][C]17338.59[/C][C]14312.9969230769[/C][C]3025.59307692309[/C][/ROW]
[ROW][C]86[/C][C]7967.82[/C][C]8500.40176470588[/C][C]-532.581764705883[/C][/ROW]
[ROW][C]87[/C][C]11613.87[/C][C]11971.915625[/C][C]-358.045625000001[/C][/ROW]
[ROW][C]88[/C][C]7894.85[/C][C]8500.40176470588[/C][C]-605.551764705882[/C][/ROW]
[ROW][C]89[/C][C]8315.49[/C][C]8500.40176470588[/C][C]-184.911764705883[/C][/ROW]
[ROW][C]90[/C][C]15474.53[/C][C]16925.1128571429[/C][C]-1450.58285714286[/C][/ROW]
[ROW][C]91[/C][C]8821.3[/C][C]8500.40176470588[/C][C]320.898235294117[/C][/ROW]
[ROW][C]92[/C][C]11025.41[/C][C]11971.915625[/C][C]-946.505625[/C][/ROW]
[ROW][C]93[/C][C]9762.97[/C][C]9696.34142857143[/C][C]66.6285714285732[/C][/ROW]
[ROW][C]94[/C][C]12871.94[/C][C]11971.915625[/C][C]900.024375000001[/C][/ROW]
[ROW][C]95[/C][C]10142.82[/C][C]10182.575[/C][C]-39.755000000001[/C][/ROW]
[ROW][C]96[/C][C]10070.77[/C][C]10182.575[/C][C]-111.805[/C][/ROW]
[ROW][C]97[/C][C]16068.91[/C][C]16925.1128571429[/C][C]-856.202857142856[/C][/ROW]
[ROW][C]98[/C][C]11407.43[/C][C]11971.915625[/C][C]-564.485624999999[/C][/ROW]
[ROW][C]99[/C][C]8652.82[/C][C]8617.29229166666[/C][C]35.5277083333367[/C][/ROW]
[ROW][C]100[/C][C]17509.51[/C][C]14312.9969230769[/C][C]3196.51307692309[/C][/ROW]
[ROW][C]101[/C][C]7451.38[/C][C]6635.59923076923[/C][C]815.78076923077[/C][/ROW]
[ROW][C]102[/C][C]8114.97[/C][C]8500.40176470588[/C][C]-385.431764705882[/C][/ROW]
[ROW][C]103[/C][C]8409.37[/C][C]8500.40176470588[/C][C]-91.0317647058837[/C][/ROW]
[ROW][C]104[/C][C]9447.65[/C][C]10182.575[/C][C]-734.925000000001[/C][/ROW]
[ROW][C]105[/C][C]17281.48[/C][C]16925.1128571429[/C][C]356.367142857143[/C][/ROW]
[ROW][C]106[/C][C]5679.41[/C][C]4895.2725[/C][C]784.1375[/C][/ROW]
[ROW][C]107[/C][C]9826.74[/C][C]10182.575[/C][C]-355.835000000001[/C][/ROW]
[ROW][C]108[/C][C]11758.49[/C][C]11971.915625[/C][C]-213.425625[/C][/ROW]
[ROW][C]109[/C][C]3928.27[/C][C]4895.2725[/C][C]-967.0025[/C][/ROW]
[ROW][C]110[/C][C]20683.24[/C][C]16925.1128571429[/C][C]3758.12714285714[/C][/ROW]
[ROW][C]111[/C][C]6783.19[/C][C]6635.59923076923[/C][C]147.59076923077[/C][/ROW]
[ROW][C]112[/C][C]8665.67[/C][C]8500.40176470588[/C][C]165.268235294117[/C][/ROW]
[ROW][C]113[/C][C]14167.73[/C][C]14312.9969230769[/C][C]-145.266923076915[/C][/ROW]
[ROW][C]114[/C][C]362.34[/C][C]4895.2725[/C][C]-4532.9325[/C][/ROW]
[ROW][C]115[/C][C]4380.05[/C][C]4895.2725[/C][C]-515.2225[/C][/ROW]
[ROW][C]116[/C][C]14235.2[/C][C]14312.9969230769[/C][C]-77.796923076914[/C][/ROW]
[ROW][C]117[/C][C]5643.24[/C][C]4895.2725[/C][C]747.9675[/C][/ROW]
[ROW][C]118[/C][C]14639.78[/C][C]16925.1128571429[/C][C]-2285.33285714286[/C][/ROW]
[ROW][C]119[/C][C]8517.4[/C][C]8617.29229166666[/C][C]-99.8922916666634[/C][/ROW]
[ROW][C]120[/C][C]12805.95[/C][C]11971.915625[/C][C]834.034375000001[/C][/ROW]
[ROW][C]121[/C][C]5945.52[/C][C]6635.59923076923[/C][C]-690.07923076923[/C][/ROW]
[ROW][C]122[/C][C]7642.43[/C][C]8500.40176470588[/C][C]-857.971764705882[/C][/ROW]
[ROW][C]123[/C][C]19226.29[/C][C]16925.1128571429[/C][C]2301.17714285714[/C][/ROW]
[ROW][C]124[/C][C]13625.03[/C][C]14312.9969230769[/C][C]-687.966923076916[/C][/ROW]
[ROW][C]125[/C][C]8005.46[/C][C]8500.40176470588[/C][C]-494.941764705883[/C][/ROW]
[ROW][C]126[/C][C]8254.53[/C][C]8500.40176470588[/C][C]-245.871764705884[/C][/ROW]
[ROW][C]127[/C][C]15101.56[/C][C]16925.1128571429[/C][C]-1823.55285714285[/C][/ROW]
[ROW][C]128[/C][C]13953.02[/C][C]14312.9969230769[/C][C]-359.976923076914[/C][/ROW]
[ROW][C]129[/C][C]10692.69[/C][C]11971.915625[/C][C]-1279.225625[/C][/ROW]
[ROW][C]130[/C][C]9730.57[/C][C]9696.34142857143[/C][C]34.2285714285717[/C][/ROW]
[ROW][C]131[/C][C]12431.05[/C][C]11971.915625[/C][C]459.134375[/C][/ROW]
[ROW][C]132[/C][C]10350.38[/C][C]10182.575[/C][C]167.805[/C][/ROW]
[ROW][C]133[/C][C]7404.66[/C][C]7168.52375000001[/C][C]236.136249999994[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=165237&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=165237&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
15123.14895.2725227.8275
25970.446635.59923076923-665.15923076923
310441.1310182.575258.555
47707.267168.52375000001538.736249999994
510489.0614312.9969230769-3823.93692307692
612247.6711971.915625275.754375
76713.046635.5992307692377.4407692307695
89370.70333333338617.29229166666753.411041666637
98282.816635.599230769231647.21076923077
108756.09333333338617.29229166666138.801041666637
1112624.3211971.915625652.404375
128866.34333333338617.29229166666249.051041666637
136063.614895.27251168.3375
147018.637168.52375000001-149.893750000006
155517.954895.2725622.6775
169701.819696.341428571435.46857142857152
179810.0610182.575-372.515000000001
187446.077168.52375000001277.546249999994
197954.658617.29229166666-662.642291666663
206300.77168.52375000001-867.823750000006
217142.286635.59923076923506.680769230769
229202.328500.40176470588701.918235294117
235867.796635.59923076923-767.80923076923
244481.134895.2725-414.1425
2513707.573333333314312.9969230769-605.423589743616
269927.519696.34142857143231.168571428572
278741.73666666678617.29229166666124.444375000037
287095.667168.52375000001-72.8637500000059
299186.738500.40176470588686.328235294117
308958.798500.40176470588458.388235294118
315701.564895.2725806.287499999999
326940.117168.52375000001-228.413750000006
338452.868500.40176470588-47.5417647058821
3413315.123333333314312.9969230769-997.873589743615
356301.376635.59923076923-334.229230769231
365614.494895.2725719.2175
3710239.7810182.57557.2049999999981
387072.17168.52375000001-96.4237500000054
395381.774895.2725486.4975
4010010.0610182.575-172.515000000001
414844.834895.2725-50.4425000000001
427982.68617.29229166666-634.692291666663
438956.81333333338617.29229166666339.521041666636
448350.28500.40176470588-150.201764705882
4513201.7914312.9969230769-1111.20692307691
465350.284895.2725455.0075
479404.769696.34142857143-291.581428571428
486740.527168.52375000001-428.003750000005
4911055.2111971.915625-916.705625000001
5010406.8410182.575224.264999999999
516996.917168.52375000001-171.613750000006
526239.876635.59923076923-395.729230769231
536184.586635.59923076923-451.01923076923
547473.55666666677168.52375000001305.032916666694
5511568.2410182.5751385.665
568569.54666666678617.29229166666-47.7456249999632
5711914.4811971.915625-57.4356250000001
586086.446635.59923076923-549.15923076923
5912749.6611971.915625777.744375
605384.014895.2725488.7375
6111344.711971.915625-627.215624999999
627137.827168.52375000001-30.703750000006
637297.287168.52375000001128.756249999994
647294.086635.59923076923658.48076923077
659876.4310182.575-306.145
668047.748617.29229166666-569.552291666663
679801.269696.34142857143104.918571428572
6811924.2411971.915625-47.6756249999999
6913083.5411971.9156251111.624375
708829.97666666678617.29229166666212.684375000037
716959.317168.52375000001-209.213750000006
729545.519696.34142857143-150.831428571428
738963.52333333338617.29229166666346.231041666637
744868.324895.2725-26.9525000000003
759288.228500.40176470588787.818235294118
768351.328617.29229166666-265.972291666663
778579.568617.29229166666-37.7322916666635
7813804.4114312.9969230769-508.586923076915
797377.95666666677168.52375000001209.432916666694
807727.83666666677168.52375000001559.312916666694
818735.858617.29229166666118.557708333337
8213327.653333333314312.9969230769-985.343589743616
8317394.2714312.99692307693081.27307692309
848975.828500.40176470588475.418235294117
8517338.5914312.99692307693025.59307692309
867967.828500.40176470588-532.581764705883
8711613.8711971.915625-358.045625000001
887894.858500.40176470588-605.551764705882
898315.498500.40176470588-184.911764705883
9015474.5316925.1128571429-1450.58285714286
918821.38500.40176470588320.898235294117
9211025.4111971.915625-946.505625
939762.979696.3414285714366.6285714285732
9412871.9411971.915625900.024375000001
9510142.8210182.575-39.755000000001
9610070.7710182.575-111.805
9716068.9116925.1128571429-856.202857142856
9811407.4311971.915625-564.485624999999
998652.828617.2922916666635.5277083333367
10017509.5114312.99692307693196.51307692309
1017451.386635.59923076923815.78076923077
1028114.978500.40176470588-385.431764705882
1038409.378500.40176470588-91.0317647058837
1049447.6510182.575-734.925000000001
10517281.4816925.1128571429356.367142857143
1065679.414895.2725784.1375
1079826.7410182.575-355.835000000001
10811758.4911971.915625-213.425625
1093928.274895.2725-967.0025
11020683.2416925.11285714293758.12714285714
1116783.196635.59923076923147.59076923077
1128665.678500.40176470588165.268235294117
11314167.7314312.9969230769-145.266923076915
114362.344895.2725-4532.9325
1154380.054895.2725-515.2225
11614235.214312.9969230769-77.796923076914
1175643.244895.2725747.9675
11814639.7816925.1128571429-2285.33285714286
1198517.48617.29229166666-99.8922916666634
12012805.9511971.915625834.034375000001
1215945.526635.59923076923-690.07923076923
1227642.438500.40176470588-857.971764705882
12319226.2916925.11285714292301.17714285714
12413625.0314312.9969230769-687.966923076916
1258005.468500.40176470588-494.941764705883
1268254.538500.40176470588-245.871764705884
12715101.5616925.1128571429-1823.55285714285
12813953.0214312.9969230769-359.976923076914
12910692.6911971.915625-1279.225625
1309730.579696.3414285714334.2285714285717
13112431.0511971.915625459.134375
13210350.3810182.575167.805
1337404.667168.52375000001236.136249999994



Parameters (Session):
par1 = correlation matrix ; par2 = ATTLES all ; par3 = COLLES all ; par4 = all ; par5 = bachelor ; par6 = all ;
Parameters (R input):
par1 = 0 ; par2 = none ; par3 = 3 ; par4 = no ; par5 = female ; par6 = bachelor ; par7 = all ; par8 = Learning Activities ; par9 = Learning Activities ;
R code (references can be found in the software module):
library(party)
library(Hmisc)
par1 <- as.numeric(par1)
par3 <- as.numeric(par3)
x <- as.data.frame(read.table(file='https://automated.biganalytics.eu/download/utaut.csv',sep=',',header=T))
x$U25 <- 6-x$U25
if(par5 == 'female') x <- x[x$Gender==0,]
if(par5 == 'male') x <- x[x$Gender==1,]
if(par6 == 'prep') x <- x[x$Pop==1,]
if(par6 == 'bachelor') x <- x[x$Pop==0,]
if(par7 != 'all') {
x <- x[x$Year==as.numeric(par7),]
}
cAc <- with(x,cbind( A1, A2, A3, A4, A5, A6, A7, A8, A9,A10))
cAs <- with(x,cbind(A11,A12,A13,A14,A15,A16,A17,A18,A19,A20))
cA <- cbind(cAc,cAs)
cCa <- with(x,cbind(C1,C3,C5,C7, C9,C11,C13,C15,C17,C19,C21,C23,C25,C27,C29,C31,C33,C35,C37,C39,C41,C43,C45,C47))
cCp <- with(x,cbind(C2,C4,C6,C8,C10,C12,C14,C16,C18,C20,C22,C24,C26,C28,C30,C32,C34,C36,C38,C40,C42,C44,C46,C48))
cC <- cbind(cCa,cCp)
cU <- with(x,cbind(U1,U2,U3,U4,U5,U6,U7,U8,U9,U10,U11,U12,U13,U14,U15,U16,U17,U18,U19,U20,U21,U22,U23,U24,U25,U26,U27,U28,U29,U30,U31,U32,U33))
cE <- with(x,cbind(BC,NNZFG,MRT,AFL,LPM,LPC,W,WPA))
cX <- with(x,cbind(X1,X2,X3,X4,X5,X6,X7,X8,X9,X10,X11,X12,X13,X14,X15,X16,X17,X18))
if (par8=='ATTLES connected') x <- cAc
if (par8=='ATTLES separate') x <- cAs
if (par8=='ATTLES all') x <- cA
if (par8=='COLLES actuals') x <- cCa
if (par8=='COLLES preferred') x <- cCp
if (par8=='COLLES all') x <- cC
if (par8=='CSUQ') x <- cU
if (par8=='Learning Activities') x <- cE
if (par8=='Exam Items') x <- cX
if (par9=='ATTLES connected') y <- cAc
if (par9=='ATTLES separate') y <- cAs
if (par9=='ATTLES all') y <- cA
if (par9=='COLLES actuals') y <- cCa
if (par9=='COLLES preferred') y <- cCp
if (par9=='COLLES all') y <- cC
if (par9=='CSUQ') y <- cU
if (par9=='Learning Activities') y <- cE
if (par9=='Exam Items') y <- cX
if (par1==0) {
nr <- length(y[,1])
nc <- length(y[1,])
mysum <- array(0,dim=nr)
for(jjj in 1:nr) {
for(iii in 1:nc) {
mysum[jjj] = mysum[jjj] + y[jjj,iii]
}
}
y <- mysum
} else {
y <- y[,par1]
}
nx <- cbind(y,x)
colnames(nx) <- c('endo',colnames(x))
x <- nx
par1=1
ncol <- length(x[1,])
for (jjj in 1:ncol) {
x <- x[!is.na(x[,jjj]),]
}
x <- as.data.frame(x)
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')
}