| | *The author of this computation has been verified* | R Software Module: /rwasp_regression_trees1.wasp (opens new window with default values) | Title produced by software: Recursive Partitioning (Regression Trees) | Date of computation: Fri, 24 Dec 2010 13:53:34 +0000 | | Cite this page as follows: | Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/24/t1293198679ifdzyd3swrusszu.htm/, Retrieved Fri, 24 Dec 2010 14:51:19 +0100 | | BibTeX entries for LaTeX users: | @Manual{KEY,
author = {{YOUR NAME}},
publisher = {Office for Research Development and Education},
title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/24/t1293198679ifdzyd3swrusszu.htm/},
year = {2010},
}
@Manual{R,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Development Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2010},
note = {{ISBN} 3-900051-07-0},
url = {http://www.R-project.org},
}
| | Original text written by user: | | | IsPrivate? | No (this computation is public) | | User-defined keywords: | | | Dataseries X: | » Textbox « » Textfile « » CSV « | 1 1595 17 60720 319369
0 5565 47 94355 493408
0 601 6 60720 319210
1 188 11 77655 381180
1 7146 105 134028 297978
0 1135 17 62285 290476
1 450 8 59325 292136
1 34 8 60630 314353
1 133 14 65990 339445
1 119 6 59118 303677
0 2053 53 100423 397144
0 4036 63 100269 424898
1 0 0 60720 315380
1 4655 393 60720 341570
1 131 11 61808 308989
1 1766 73 60438 305959
1 312 14 58598 318690
1 448 40 59781 323361
1 115 13 60945 318903
1 60 10 61124 314049
1 0 0 60720 315380
1 364 35 47705 298466
1 0 0 60720 315380
0 1442 118 121173 438493
0 1389 9 57530 378049
1 149 5 62041 313332
1 2212 14 60720 319864
0 7489 322 136996 430866
1 0 0 60720 315380
1 402 26 84990 332743
0 7419 29 63255 286963
1 0 0 60720 315380
1 307 15 58856 331955
0 1134 162 146216 527021
0 7561 87 82425 364304
1 5131 71 86111 292154
1 9 6 60835 314987
1 2264 24 55174 272713
1 40949 481 129352 1398893
0 4980 91 113521 409642
1 272 8 112995 429112
1 757 19 45689 382712
1 1424 94 131116 374943
1 0 0 60720 315380
0 37 etc... | | Output produced by software: | Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!
Goodness of Fit | Correlation | 0.6588 | R-squared | 0.434 | RMSE | 323514.9255 |
Actuals, Predictions, and Residuals | # | Actuals | Forecasts | Residuals | 1 | 319369 | 311459.00877193 | 7909.99122807017 | 2 | 493408 | 436863.25862069 | 56544.7413793103 | 3 | 319210 | 311459.00877193 | 7750.99122807017 | 4 | 381180 | 311459.00877193 | 69720.9912280702 | 5 | 297978 | 436863.25862069 | -138885.258620690 | 6 | 290476 | 311459.00877193 | -20983.0087719298 | 7 | 292136 | 311459.00877193 | -19323.0087719298 | 8 | 314353 | 311459.00877193 | 2893.99122807017 | 9 | 339445 | 311459.00877193 | 27985.9912280702 | 10 | 303677 | 311459.00877193 | -7782.00877192983 | 11 | 397144 | 436863.25862069 | -39719.2586206897 | 12 | 424898 | 436863.25862069 | -11965.2586206897 | 13 | 315380 | 311459.00877193 | 3920.99122807017 | 14 | 341570 | 311459.00877193 | 30110.9912280702 | 15 | 308989 | 311459.00877193 | -2470.00877192983 | 16 | 305959 | 311459.00877193 | -5500.00877192983 | 17 | 318690 | 311459.00877193 | 7230.99122807017 | 18 | 323361 | 311459.00877193 | 11901.9912280702 | 19 | 318903 | 311459.00877193 | 7443.99122807017 | 20 | 314049 | 311459.00877193 | 2589.99122807017 | 21 | 315380 | 311459.00877193 | 3920.99122807017 | 22 | 298466 | 311459.00877193 | -12993.0087719298 | 23 | 315380 | 311459.00877193 | 3920.99122807017 | 24 | 438493 | 436863.25862069 | 1629.74137931032 | 25 | 378049 | 311459.00877193 | 66589.9912280702 | 26 | 313332 | 311459.00877193 | 1872.99122807017 | 27 | 319864 | 311459.00877193 | 8404.99122807017 | 28 | 430866 | 436863.25862069 | -5997.25862068968 | 29 | 315380 | 311459.00877193 | 3920.99122807017 | 30 | 332743 | 311459.00877193 | 21283.9912280702 | 31 | 286963 | 311459.00877193 | -24496.0087719298 | 32 | 315380 | 311459.00877193 | 3920.99122807017 | 33 | 331955 | 311459.00877193 | 20495.9912280702 | 34 | 527021 | 436863.25862069 | 90157.7413793103 | 35 | 364304 | 311459.00877193 | 52844.9912280702 | 36 | 292154 | 311459.00877193 | -19305.0087719298 | 37 | 314987 | 311459.00877193 | 3527.99122807017 | 38 | 272713 | 311459.00877193 | -38746.0087719298 | 39 | 1398893 | 1991179.08333333 | -592286.083333333 | 40 | 409642 | 436863.25862069 | -27221.2586206897 | 41 | 429112 | 436863.25862069 | -7751.25862068968 | 42 | 382712 | 311459.00877193 | 71252.9912280702 | 43 | 374943 | 436863.25862069 | -61920.2586206897 | 44 | 315380 | 311459.00877193 | 3920.99122807017 | 45 | 297413 | 311459.00877193 | -14046.0087719298 | 46 | 304252 | 311459.00877193 | -7207.00877192983 | 47 | 315380 | 311459.00877193 | 3920.99122807017 | 48 | 309596 | 311459.00877193 | -1863.00877192983 | 49 | 377305 | 436863.25862069 | -59558.2586206897 | 50 | 386212 | 436863.25862069 | -50651.2586206897 | 51 | 657954 | 678836.631578947 | -20882.6315789474 | 52 | 368186 | 311459.00877193 | 56726.9912280702 | 53 | 269753 | 311459.00877193 | -41706.0087719298 | 54 | 585715 | 678836.631578947 | -93121.6315789474 | 55 | 1071292 | 436863.25862069 | 634428.74137931 | 56 | 992426 | 1991179.08333333 | -998753.083333333 | 57 | 315371 | 311459.00877193 | 3911.99122807017 | 58 | 249898 | 311459.00877193 | -61561.0087719298 | 59 | 357312 | 311459.00877193 | 45852.9912280702 | 60 | 315380 | 311459.00877193 | 3920.99122807017 | 61 | 315380 | 311459.00877193 | 3920.99122807017 | 62 | 364839 | 436863.25862069 | -72024.2586206897 | 63 | 230621 | 311459.00877193 | -80838.0087719298 | 64 | 315877 | 311459.00877193 | 4417.99122807017 | 65 | 125390 | 311459.00877193 | -186069.00877193 | 66 | 314882 | 311459.00877193 | 3422.99122807017 | 67 | 370837 | 436863.25862069 | -66026.2586206897 | 68 | 330068 | 311459.00877193 | 18608.9912280702 | 69 | 324385 | 311459.00877193 | 12925.9912280702 | 70 | 315380 | 311459.00877193 | 3920.99122807017 | 71 | 1443586 | 678836.631578947 | 764749.368421053 | 72 | 253537 | 311459.00877193 | -57922.0087719298 | 73 | 4321023 | 1991179.08333333 | 2329843.91666667 | 74 | 315380 | 311459.00877193 | 3920.99122807017 | 75 | 352108 | 311459.00877193 | 40648.9912280702 | 76 | 330059 | 311459.00877193 | 18599.9912280702 | 77 | 340968 | 311459.00877193 | 29508.9912280702 | 78 | 317736 | 311459.00877193 | 6276.99122807017 | 79 | 209458 | 311459.00877193 | -102001.008771930 | 80 | 1491348 | 1991179.08333333 | -499831.083333333 | 81 | 314887 | 311459.00877193 | 3427.99122807017 | 82 | 315380 | 311459.00877193 | 3920.99122807017 | 83 | 315380 | 311459.00877193 | 3920.99122807017 | 84 | 353058 | 311459.00877193 | 41598.9912280702 | 85 | 315380 | 311459.00877193 | 3920.99122807017 | 86 | 315380 | 311459.00877193 | 3920.99122807017 | 87 | 314533 | 311459.00877193 | 3073.99122807017 | 88 | 315354 | 311459.00877193 | 3894.99122807017 | 89 | 302187 | 311459.00877193 | -9272.00877192983 | 90 | 336639 | 311459.00877193 | 25179.9912280702 | 91 | 315380 | 311459.00877193 | 3920.99122807017 | 92 | 296702 | 311459.00877193 | -14757.0087719298 | 93 | 1073089 | 678836.631578947 | 394252.368421053 | 94 | 146494 | 311459.00877193 | -164965.008771930 | 95 | 325249 | 311459.00877193 | 13789.9912280702 | 96 | 331420 | 311459.00877193 | 19960.9912280702 | 97 | 315380 | 311459.00877193 | 3920.99122807017 | 98 | 314922 | 311459.00877193 | 3462.99122807017 | 99 | 320016 | 311459.00877193 | 8556.99122807017 | 100 | 280398 | 311459.00877193 | -31061.0087719298 | 101 | 452469 | 311459.00877193 | 141009.991228070 | 102 | 301164 | 311459.00877193 | -10295.0087719298 | 103 | 317330 | 311459.00877193 | 5870.99122807017 | 104 | 315576 | 311459.00877193 | 4116.99122807017 | 105 | 315380 | 311459.00877193 | 3920.99122807017 | 106 | -7170 | 678836.631578947 | -686006.631578947 | 107 | 322331 | 311459.00877193 | 10871.9912280702 | 108 | 1629616 | 1991179.08333333 | -361563.083333333 | 109 | 292754 | 311459.00877193 | -18705.0087719298 | 110 | 318056 | 311459.00877193 | 6596.99122807017 | 111 | 355178 | 311459.00877193 | 43718.9912280702 | 112 | 204325 | 311459.00877193 | -107134.008771930 | 113 | 315380 | 311459.00877193 | 3920.99122807017 | 114 | 317046 | 311459.00877193 | 5586.99122807017 | 115 | 315380 | 311459.00877193 | 3920.99122807017 | 116 | 309560 | 311459.00877193 | -1899.00877192983 | 117 | 414462 | 436863.25862069 | -22401.2586206897 | 118 | 857217 | 678836.631578947 | 178380.368421053 | 119 | 697458 | 436863.25862069 | 260594.741379310 | 120 | 530670 | 436863.25862069 | 93806.7413793103 | 121 | 238125 | 311459.00877193 | -73334.0087719298 | 122 | 315380 | 311459.00877193 | 3920.99122807017 | 123 | 741409 | 311459.00877193 | 429949.99122807 | 124 | 393343 | 436863.25862069 | -43520.2586206897 | 125 | 372631 | 678836.631578947 | -306205.631578947 | 126 | 315380 | 311459.00877193 | 3920.99122807017 | 127 | 317291 | 311459.00877193 | 5831.99122807017 | 128 | 315380 | 311459.00877193 | 3920.99122807017 | 129 | 306275 | 1991179.08333333 | -1684904.08333333 | 130 | 317892 | 311459.00877193 | 6432.99122807017 | 131 | 334280 | 311459.00877193 | 22820.9912280702 | 132 | 315380 | 311459.00877193 | 3920.99122807017 | 133 | 315380 | 311459.00877193 | 3920.99122807017 | 134 | 315380 | 311459.00877193 | 3920.99122807017 | 135 | 314210 | 311459.00877193 | 2750.99122807017 | 136 | 306948 | 311459.00877193 | -4511.00877192983 | 137 | 315380 | 311459.00877193 | 3920.99122807017 | 138 | 320398 | 311459.00877193 | 8938.99122807017 | 139 | 315380 | 311459.00877193 | 3920.99122807017 | 140 | 315380 | 311459.00877193 | 3920.99122807017 | 141 | 501749 | 436863.25862069 | 64885.7413793103 | 142 | 202055 | 311459.00877193 | -109404.008771930 | 143 | 315380 | 311459.00877193 | 3920.99122807017 | 144 | 315380 | 311459.00877193 | 3920.99122807017 | 145 | 333210 | 311459.00877193 | 21750.9912280702 | 146 | 315380 | 311459.00877193 | 3920.99122807017 | 147 | 322340 | 311459.00877193 | 10880.9912280702 | 148 | 369448 | 311459.00877193 | 57988.9912280702 | 149 | 291841 | 311459.00877193 | -19618.0087719298 | 150 | 315380 | 311459.00877193 | 3920.99122807017 | 151 | 315380 | 311459.00877193 | 3920.99122807017 | 152 | 296919 | 311459.00877193 | -14540.0087719298 | 153 | 315380 | 311459.00877193 | 3920.99122807017 | 154 | 309038 | 311459.00877193 | -2421.00877192983 | 155 | 246541 | 311459.00877193 | -64918.0087719298 | 156 | 289513 | 311459.00877193 | -21946.0087719298 | 157 | 344425 | 311459.00877193 | 32965.9912280702 | 158 | 315380 | 311459.00877193 | 3920.99122807017 | 159 | 314210 | 311459.00877193 | 2750.99122807017 | 160 | 480382 | 436863.25862069 | 43518.7413793103 | 161 | 315009 | 311459.00877193 | 3549.99122807017 | 162 | 315380 | 311459.00877193 | 3920.99122807017 | 163 | 312878 | 311459.00877193 | 1418.99122807017 | 164 | 322031 | 311459.00877193 | 10571.9912280702 | 165 | 315380 | 311459.00877193 | 3920.99122807017 | 166 | 597793 | 436863.25862069 | 160929.741379310 | 167 | 315380 | 311459.00877193 | 3920.99122807017 | 168 | 315688 | 311459.00877193 | 4228.99122807017 | 169 | 378525 | 311459.00877193 | 67065.9912280702 | 170 | 312378 | 311459.00877193 | 918.991228070168 | 171 | 403560 | 436863.25862069 | -33303.2586206897 | 172 | 510834 | 436863.25862069 | 73970.7413793103 | 173 | 214215 | 311459.00877193 | -97244.0087719298 | 174 | 235133 | 436863.25862069 | -201730.258620690 | 175 | 343613 | 311459.00877193 | 32153.9912280702 | 176 | 365959 | 311459.00877193 | 54499.9912280702 | 177 | 315380 | 311459.00877193 | 3920.99122807017 | 178 | 314551 | 311459.00877193 | 3091.99122807017 | 179 | 303230 | 311459.00877193 | -8229.00877192983 | 180 | 315380 | 311459.00877193 | 3920.99122807017 | 181 | 469107 | 436863.25862069 | 32243.7413793103 | 182 | 354228 | 436863.25862069 | -82635.2586206897 | 183 | 315380 | 311459.00877193 | 3920.99122807017 | 184 | 315380 | 311459.00877193 | 3920.99122807017 | 185 | 315380 | 311459.00877193 | 3920.99122807017 | 186 | 315394 | 311459.00877193 | 3934.99122807017 | 187 | 312412 | 311459.00877193 | 952.991228070168 | 188 | 333505 | 311459.00877193 | 22045.9912280702 | 189 | 223193 | 1991179.08333333 | -1767986.08333333 | 190 | 315380 | 311459.00877193 | 3920.99122807017 | 191 | 315656 | 311459.00877193 | 4196.99122807017 | 192 | 296261 | 311459.00877193 | -15198.0087719298 | 193 | 315380 | 311459.00877193 | 3920.99122807017 | 194 | 336425 | 311459.00877193 | 24965.9912280702 | 195 | 359335 | 311459.00877193 | 47875.9912280702 | 196 | 315380 | 311459.00877193 | 3920.99122807017 | 197 | 308636 | 436863.25862069 | -128227.258620690 | 198 | 158492 | 311459.00877193 | -152967.008771930 | 199 | 315380 | 311459.00877193 | 3920.99122807017 | 200 | 315380 | 311459.00877193 | 3920.99122807017 | 201 | 711969 | 678836.631578947 | 33132.3684210526 | 202 | 315380 | 311459.00877193 | 3920.99122807017 | 203 | 315380 | 311459.00877193 | 3920.99122807017 | 204 | 306268 | 311459.00877193 | -5191.00877192983 | 205 | 315380 | 311459.00877193 | 3920.99122807017 | 206 | 442882 | 436863.25862069 | 6018.74137931032 | 207 | 378509 | 311459.00877193 | 67049.9912280702 | 208 | 315380 | 311459.00877193 | 3920.99122807017 | 209 | 346611 | 436863.25862069 | -90252.2586206897 | 210 | 314289 | 311459.00877193 | 2829.99122807017 | 211 | 856956 | 678836.631578947 | 178119.368421053 | 212 | 217193 | 311459.00877193 | -94266.0087719298 | 213 | 315366 | 311459.00877193 | 3906.99122807017 | 214 | 307930 | 311459.00877193 | -3529.00877192983 | 215 | 702380 | 678836.631578947 | 23543.3684210526 | 216 | 194493 | 311459.00877193 | -116966.008771930 | 217 | 316155 | 311459.00877193 | 4695.99122807017 | 218 | 315380 | 311459.00877193 | 3920.99122807017 | 219 | 330546 | 311459.00877193 | 19086.9912280702 | 220 | 394510 | 436863.25862069 | -42353.2586206897 | 221 | 312846 | 311459.00877193 | 1386.99122807017 | 222 | 315380 | 311459.00877193 | 3920.99122807017 | 223 | 296139 | 311459.00877193 | -15320.0087719298 | 224 | 295580 | 311459.00877193 | -15879.0087719298 | 225 | 297765 | 311459.00877193 | -13694.0087719298 | 226 | 377934 | 678836.631578947 | -300902.631578947 | 227 | 315380 | 311459.00877193 | 3920.99122807017 | 228 | 638830 | 436863.25862069 | 201966.741379310 | 229 | 304376 | 311459.00877193 | -7083.00877192983 | 230 | 307424 | 311459.00877193 | -4035.00877192983 | 231 | 644190 | 436863.25862069 | 207326.741379310 | 232 | 295370 | 311459.00877193 | -16089.0087719298 | 233 | 574339 | 436863.25862069 | 137475.741379310 | 234 | 315380 | 311459.00877193 | 3920.99122807017 | 235 | 310201 | 311459.00877193 | -1258.00877192983 | 236 | 327007 | 311459.00877193 | 15547.9912280702 | 237 | 343466 | 311459.00877193 | 32006.9912280702 | 238 | 315380 | 311459.00877193 | 3920.99122807017 | 239 | 315380 | 311459.00877193 | 3920.99122807017 | 240 | 318098 | 311459.00877193 | 6638.99122807017 | 241 | 448243 | 311459.00877193 | 136783.991228070 | 242 | 325738 | 311459.00877193 | 14278.9912280702 | 243 | 315380 | 311459.00877193 | 3920.99122807017 | 244 | 312161 | 311459.00877193 | 701.991228070168 | 245 | 243650 | 311459.00877193 | -67809.0087719298 | 246 | 407159 | 311459.00877193 | 95699.9912280702 | 247 | 315380 | 311459.00877193 | 3920.99122807017 | 248 | 317698 | 311459.00877193 | 6238.99122807017 | 249 | 315380 | 311459.00877193 | 3920.99122807017 | 250 | 312502 | 311459.00877193 | 1042.99122807017 | 251 | 315380 | 311459.00877193 | 3920.99122807017 | 252 | 322378 | 311459.00877193 | 10918.9912280702 | 253 | 315380 | 311459.00877193 | 3920.99122807017 | 254 | 315380 | 311459.00877193 | 3920.99122807017 | 255 | 315380 | 311459.00877193 | 3920.99122807017 | 256 | 315380 | 311459.00877193 | 3920.99122807017 | 257 | 315380 | 311459.00877193 | 3920.99122807017 | 258 | 315380 | 311459.00877193 | 3920.99122807017 | 259 | 640273 | 436863.25862069 | 203409.741379310 | 260 | 345783 | 678836.631578947 | -333053.631578947 | 261 | 652925 | 311459.00877193 | 341465.99122807 | 262 | 439798 | 678836.631578947 | -239038.631578947 | 263 | 278990 | 311459.00877193 | -32469.0087719298 | 264 | 339836 | 436863.25862069 | -97027.2586206897 | 265 | 240897 | 311459.00877193 | -70562.0087719298 | 266 | 315380 | 311459.00877193 | 3920.99122807017 | 267 | 297141 | 311459.00877193 | -14318.0087719298 | 268 | 315380 | 311459.00877193 | 3920.99122807017 | 269 | 331323 | 311459.00877193 | 19863.9912280702 | 270 | 313880 | 311459.00877193 | 2420.99122807017 | 271 | 315380 | 311459.00877193 | 3920.99122807017 | 272 | 315380 | 311459.00877193 | 3920.99122807017 | 273 | 309422 | 311459.00877193 | -2037.00877192983 | 274 | 315245 | 311459.00877193 | 3785.99122807017 | 275 | 405972 | 311459.00877193 | 94512.9912280702 | 276 | 300962 | 311459.00877193 | -10497.0087719298 | 277 | 316176 | 311459.00877193 | 4716.99122807017 | 278 | 302409 | 311459.00877193 | -9050.00877192983 | 279 | 283587 | 311459.00877193 | -27872.0087719298 | 280 | 263276 | 311459.00877193 | -48183.0087719298 | 281 | 312075 | 311459.00877193 | 615.991228070168 | 282 | 308336 | 311459.00877193 | -3123.00877192983 | 283 | 315380 | 311459.00877193 | 3920.99122807017 | 284 | 298700 | 311459.00877193 | -12759.0087719298 | 285 | 315372 | 311459.00877193 | 3912.99122807017 | 286 | 318745 | 311459.00877193 | 7285.99122807017 | 287 | 315380 | 311459.00877193 | 3920.99122807017 | 288 | 408881 | 311459.00877193 | 97421.9912280702 | 289 | 786690 | 311459.00877193 | 475230.99122807 | 290 | -83265 | 311459.00877193 | -394724.00877193 | 291 | 315380 | 311459.00877193 | 3920.99122807017 | 292 | 321376 | 311459.00877193 | 9916.99122807017 | 293 | 315380 | 311459.00877193 | 3920.99122807017 | 294 | 276898 | 311459.00877193 | -34561.0087719298 | 295 | 315547 | 311459.00877193 | 4087.99122807017 | 296 | 315487 | 311459.00877193 | 4027.99122807017 | 297 | 315380 | 311459.00877193 | 3920.99122807017 | 298 | 1405225 | 678836.631578947 | 726388.368421053 | 299 | 315380 | 311459.00877193 | 3920.99122807017 | 300 | 315380 | 311459.00877193 | 3920.99122807017 | 301 | 983660 | 1991179.08333333 | -1007519.08333333 | 302 | 318574 | 311459.00877193 | 7114.99122807017 | 303 | 310768 | 436863.25862069 | -126095.258620690 | 304 | 312887 | 311459.00877193 | 1427.99122807017 | 305 | 312339 | 311459.00877193 | 879.991228070168 | 306 | 314964 | 311459.00877193 | 3504.99122807017 | 307 | 379983 | 436863.25862069 | -56880.2586206897 | 308 | 315380 | 311459.00877193 | 3920.99122807017 | 309 | 315380 | 311459.00877193 | 3920.99122807017 | 310 | 315398 | 311459.00877193 | 3938.99122807017 | 311 | 315380 | 311459.00877193 | 3920.99122807017 | 312 | 253588 | 311459.00877193 | -57871.0087719298 | 313 | 316647 | 311459.00877193 | 5187.99122807017 | 314 | 315688 | 311459.00877193 | 4228.99122807017 | 315 | 310670 | 311459.00877193 | -789.008771929832 | 316 | 165404 | 311459.00877193 | -146055.008771930 | 317 | 4111912 | 1991179.08333333 | 2120732.91666667 | 318 | 291650 | 311459.00877193 | -19809.0087719298 | 319 | 315380 | 311459.00877193 | 3920.99122807017 | 320 | 253468 | 311459.00877193 | -57991.0087719298 | 321 | 315688 | 311459.00877193 | 4228.99122807017 | 322 | 325699 | 311459.00877193 | 14239.9912280702 | 323 | 446211 | 436863.25862069 | 9347.74137931032 | 324 | 315380 | 311459.00877193 | 3920.99122807017 | 325 | 368078 | 436863.25862069 | -68785.2586206897 | 326 | 315380 | 311459.00877193 | 3920.99122807017 | 327 | 352850 | 436863.25862069 | -84013.2586206897 | 328 | 6282154 | 1991179.08333333 | 4290974.91666667 | 329 | 227132 | 1991179.08333333 | -1764047.08333333 | 330 | 283910 | 311459.00877193 | -27549.0087719298 | 331 | 236761 | 311459.00877193 | -74698.0087719298 | 332 | 315380 | 311459.00877193 | 3920.99122807017 | 333 | 315380 | 311459.00877193 | 3920.99122807017 | 334 | 550608 | 436863.25862069 | 113744.741379310 | 335 | 307528 | 311459.00877193 | -3931.00877192983 | 336 | 315380 | 311459.00877193 | 3920.99122807017 | 337 | 355864 | 436863.25862069 | -80999.2586206897 | 338 | 358589 | 678836.631578947 | -320247.631578947 | 339 | 315380 | 311459.00877193 | 3920.99122807017 | 340 | 315380 | 311459.00877193 | 3920.99122807017 | 341 | 375195 | 436863.25862069 | -61668.2586206897 | 342 | 288985 | 311459.00877193 | -22474.0087719298 | 343 | 315380 | 311459.00877193 | 3920.99122807017 | 344 | 458343 | 436863.25862069 | 21479.7413793103 | 345 | 315380 | 311459.00877193 | 3920.99122807017 | 346 | 269587 | 311459.00877193 | -41872.0087719298 | 347 | 315236 | 311459.00877193 | 3776.99122807017 | 348 | 42754 | 311459.00877193 | -268705.00877193 | 349 | 315380 | 311459.00877193 | 3920.99122807017 | 350 | 308256 | 311459.00877193 | -3203.00877192983 | 351 | 315380 | 311459.00877193 | 3920.99122807017 | 352 | 315380 | 311459.00877193 | 3920.99122807017 | 353 | 313164 | 311459.00877193 | 1704.99122807017 | 354 | 315380 | 311459.00877193 | 3920.99122807017 | 355 | 269661 | 311459.00877193 | -41798.0087719298 | 356 | 315380 | 311459.00877193 | 3920.99122807017 | 357 | 315380 | 311459.00877193 | 3920.99122807017 | 358 | 315380 | 311459.00877193 | 3920.99122807017 | 359 | 315380 | 311459.00877193 | 3920.99122807017 | 360 | 518365 | 436863.25862069 | 81501.7413793103 | 361 | 233773 | 436863.25862069 | -203090.258620690 | 362 | 301881 | 311459.00877193 | -9578.00877192983 | 363 | 298568 | 311459.00877193 | -12891.0087719298 | 364 | 325479 | 436863.25862069 | -111384.258620690 | 365 | 325506 | 311459.00877193 | 14046.9912280702 | 366 | 984885 | 678836.631578947 | 306048.368421053 | 367 | 313267 | 311459.00877193 | 1807.99122807017 | 368 | 315793 | 311459.00877193 | 4333.99122807017 | 369 | 315380 | 311459.00877193 | 3920.99122807017 | 370 | 215362 | 311459.00877193 | -96097.0087719298 | 371 | 314073 | 436863.25862069 | -122790.258620690 | 372 | 298096 | 311459.00877193 | -13363.0087719298 | 373 | 325176 | 311459.00877193 | 13716.9912280702 | 374 | 207393 | 311459.00877193 | -104066.008771930 | 375 | 314806 | 311459.00877193 | 3346.99122807017 | 376 | 341340 | 436863.25862069 | -95523.2586206897 | 377 | 426280 | 436863.25862069 | -10583.2586206897 | 378 | 929118 | 678836.631578947 | 250281.368421053 | 379 | 307322 | 311459.00877193 | -4137.00877192983 | 380 | 315380 | 311459.00877193 | 3920.99122807017 | 381 | 387475 | 311459.00877193 | 76015.9912280702 | 382 | 291787 | 311459.00877193 | -19672.0087719298 | 383 | 247060 | 311459.00877193 | -64399.0087719298 | 384 | 329784 | 311459.00877193 | 18324.9912280702 | 385 | 315834 | 311459.00877193 | 4374.99122807017 | 386 | 304555 | 311459.00877193 | -6904.00877192983 | 387 | 376641 | 311459.00877193 | 65181.9912280702 | 388 | 315380 | 311459.00877193 | 3920.99122807017 | 389 | 315380 | 311459.00877193 | 3920.99122807017 | 390 | 315380 | 311459.00877193 | 3920.99122807017 | 391 | 315380 | 311459.00877193 | 3920.99122807017 | 392 | 315380 | 311459.00877193 | 3920.99122807017 | 393 | 357760 | 678836.631578947 | -321076.631578947 | 394 | 315637 | 311459.00877193 | 4177.99122807017 | 395 | 315380 | 311459.00877193 | 3920.99122807017 | 396 | 315380 | 311459.00877193 | 3920.99122807017 | 397 | 315380 | 311459.00877193 | 3920.99122807017 | 398 | 315380 | 311459.00877193 | 3920.99122807017 | 399 | 327071 | 311459.00877193 | 15611.9912280702 | 400 | 377516 | 436863.25862069 | -59347.2586206897 | 401 | 299243 | 436863.25862069 | -137620.258620690 | 402 | 387699 | 436863.25862069 | -49164.2586206897 | 403 | 309836 | 311459.00877193 | -1623.00877192983 | 404 | 444477 | 678836.631578947 | -234359.631578947 | 405 | 322327 | 311459.00877193 | 10867.9912280702 | 406 | 314913 | 311459.00877193 | 3453.99122807017 | 407 | 315553 | 311459.00877193 | 4093.99122807017 | 408 | 688779 | 436863.25862069 | 251915.741379310 | 409 | 321896 | 436863.25862069 | -114967.258620690 | 410 | 301607 | 436863.25862069 | -135256.258620690 | 411 | 304485 | 311459.00877193 | -6974.00877192983 | 412 | 315380 | 311459.00877193 | 3920.99122807017 | 413 | 315380 | 311459.00877193 | 3920.99122807017 | 414 | 231861 | 311459.00877193 | -79598.0087719298 | 415 | 347385 | 311459.00877193 | 35925.9912280702 | 416 | 316386 | 311459.00877193 | 4926.99122807017 | 417 | 491303 | 436863.25862069 | 54439.7413793103 | 418 | 261216 | 311459.00877193 | -50243.0087719298 | 419 | 315388 | 311459.00877193 | 3928.99122807017 | 420 | 315380 | 311459.00877193 | 3920.99122807017 | 421 | 313729 | 311459.00877193 | 2269.99122807017 | 422 | 358649 | 311459.00877193 | 47189.9912280702 | 423 | 1926517 | 1991179.08333333 | -64662.0833333333 | 424 | 296656 | 311459.00877193 | -14803.0087719298 | 425 | 275311 | 311459.00877193 | -36148.0087719298 | 426 | -42143 | 311459.00877193 | -353602.00877193 | 427 | 315380 | 311459.00877193 | 3920.99122807017 | 428 | 343929 | 311459.00877193 | 32469.9912280702 | 429 | 367655 | 311459.00877193 | 56195.9912280702 | 430 | 315380 | 311459.00877193 | 3920.99122807017 | 431 | 313491 | 311459.00877193 | 2031.99122807017 |
| | Charts produced by software: | | http://www.freestatistics.org/blog/date/2010/Dec/24/t1293198679ifdzyd3swrusszu/2znk91293198800.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/24/t1293198679ifdzyd3swrusszu/2znk91293198800.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/24/t1293198679ifdzyd3swrusszu/3znk91293198800.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/24/t1293198679ifdzyd3swrusszu/3znk91293198800.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/24/t1293198679ifdzyd3swrusszu/4rw1u1293198800.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/24/t1293198679ifdzyd3swrusszu/4rw1u1293198800.ps (open in new window) |
| | Parameters (Session): | par1 = 5 ; par2 = none ; par4 = no ; | | Parameters (R input): | par1 = 5 ; par2 = none ; 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')
}
| |
Copyright
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Software written by Ed van Stee & Patrick Wessa
Disclaimer
Information provided on this web site is provided
"AS IS" without warranty of any kind, either express or implied,
including, without limitation, warranties of merchantability, fitness
for a particular purpose, and noninfringement. We use reasonable
efforts to include accurate and timely information and periodically
update the information, and software without notice. However, we make
no warranties or representations as to the accuracy or
completeness of such information (or software), and we assume no
liability or responsibility for errors or omissions in the content of
this web site, or any software bugs in online applications. Your use of
this web site is AT YOUR OWN RISK. Under no circumstances and under no
legal theory shall we be liable to you or any other person
for any direct, indirect, special, incidental, exemplary, or
consequential damages arising from your access to, or use of, this web
site.
Privacy Policy
We may request personal information to be submitted to our servers in order to be able to:
- personalize online software applications according to your needs
- enforce strict security rules with respect to the data that you upload (e.g. statistical data)
- manage user sessions of online applications
- alert you about important changes or upgrades in resources or applications
We NEVER allow other companies to directly offer registered users
information about their products and services. Banner references and
hyperlinks of third parties NEVER contain any personal data of the
visitor.
We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.
We carefully protect your data from loss, misuse, alteration,
and destruction. However, at any time, and under any circumstance you
are solely responsible for managing your passwords, and keeping them
secret.
We store a unique ANONYMOUS USER ID in the form of a small
'Cookie' on your computer. This allows us to track your progress when
using this website which is necessary to create state-dependent
features. The cookie is used for NO OTHER PURPOSE. At any time you may
opt to disallow cookies from this website - this will not affect other
features of this website.
We examine cookies that are used by third-parties (banner and
online ads) very closely: abuse from third-parties automatically
results in termination of the advertising contract without refund. We
have very good reason to believe that the cookies that are produced by
third parties (banner ads) do NOT cause any privacy or security risk.
FreeStatistics.org is safe. There is no need to download any
software to use the applications and services contained in this
website. Hence, your system's security is not compromised by their use,
and your personal data - other than data you submit in the account
application form, and the user-agent information that is transmitted by
your browser - is never transmitted to our servers.
As a general rule, we do not log on-line behavior of
individuals (other than normal logging of webserver 'hits'). However,
in cases of abuse, hacking, unauthorized access, Denial of Service
attacks, illegal copying, hotlinking, non-compliance with international
webstandards (such as robots.txt), or any other harmful behavior, our
system engineers are empowered to log, track, identify, publish, and
ban misbehaving individuals - even if this leads to ban entire blocks
of IP addresses, or disclosing user's identity.
FreeStatistics.org is powered by
|