| | *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: Tue, 21 Dec 2010 19:27:58 +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/21/t1292959594sw9rypifomfmtov.htm/, Retrieved Tue, 21 Dec 2010 20:26:35 +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/21/t1292959594sw9rypifomfmtov.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 « | 162556 807 213118 6282154 131182692 34643609608 171986226
29790 444 81767 4321023 13226760 2435838930 36304548
87550 412 153198 4111912 36070600 13412484900 63117576
84738 428 -26007 223193 36267864 -2203781166 -11130996
54660 315 126942 1491348 17217900 6938649720 39986730
42634 168 157214 1629616 7162512 6702661676 26411952
40949 263 129352 1398893 10769587 5296835048 34019576
45187 267 234817 1926517 12064929 10610675779 62696139
37704 228 60448 983660 8596512 2279131392 13782144
16275 129 47818 1443586 2099475 778237950 6168522
25830 104 245546 1073089 2686320 6342453180 25536784
12679 122 48020 984885 1546838 608845580 5858440
18014 393 -1710 1405225 7079502 -30803940 -672030
43556 190 32648 227132 8275640 1422016288 6203120
24811 280 95350 929118 6947080 2365728850 26698000
6575 63 151352 1071292 414225 995139400 9535176
7123 102 288170 638830 726546 2052634910 29393340
21950 265 114337 856956 5816750 2509697150 30299305
37597 234 37884 992426 8797698 1424324748 8864856
17821 277 1228 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.7221 | R-squared | 0.5215 | RMSE | 297467.042 |
Actuals, Predictions, and Residuals | # | Actuals | Forecasts | Residuals | 1 | 6282154 | 2339778.3 | 3942375.7 | 2 | 4321023 | 2339778.3 | 1981244.7 | 3 | 4111912 | 2339778.3 | 1772133.7 | 4 | 223193 | 491791.181818182 | -268598.181818182 | 5 | 1491348 | 2339778.3 | -848430.3 | 6 | 1629616 | 2339778.3 | -710162.3 | 7 | 1398893 | 2339778.3 | -940885.3 | 8 | 1926517 | 2339778.3 | -413261.3 | 9 | 983660 | 553455.80952381 | 430204.190476191 | 10 | 1443586 | 553455.80952381 | 890130.19047619 | 11 | 1073089 | 2339778.3 | -1266689.3 | 12 | 984885 | 553455.80952381 | 431429.190476191 | 13 | 1405225 | 491791.181818182 | 913433.818181818 | 14 | 227132 | 553455.80952381 | -326323.809523809 | 15 | 929118 | 553455.80952381 | 375662.190476191 | 16 | 1071292 | 553455.80952381 | 517836.190476191 | 17 | 638830 | 553455.80952381 | 85374.1904761905 | 18 | 856956 | 2339778.3 | -1482822.3 | 19 | 992426 | 553455.80952381 | 438970.190476191 | 20 | 444477 | 553455.80952381 | -108978.809523809 | 21 | 857217 | 553455.80952381 | 303761.190476191 | 22 | 711969 | 553455.80952381 | 158513.190476191 | 23 | 702380 | 553455.80952381 | 148924.190476191 | 24 | 358589 | 553455.80952381 | -194866.809523809 | 25 | 297978 | 553455.80952381 | -255477.809523809 | 26 | 585715 | 553455.80952381 | 32259.1904761905 | 27 | 657954 | 553455.80952381 | 104498.190476191 | 28 | 209458 | 267847.518518519 | -58389.5185185185 | 29 | 786690 | 267847.518518519 | 518842.481481481 | 30 | 439798 | 553455.80952381 | -113657.809523809 | 31 | 688779 | 398818.8 | 289960.2 | 32 | 574339 | 553455.80952381 | 20883.1904761905 | 33 | 741409 | 553455.80952381 | 187953.190476191 | 34 | 597793 | 398818.8 | 198974.2 | 35 | 644190 | 553455.80952381 | 90734.1904761905 | 36 | 377934 | 553455.80952381 | -175521.809523809 | 37 | 640273 | 553455.80952381 | 86817.1904761905 | 38 | 697458 | 553455.80952381 | 144002.190476191 | 39 | 550608 | 491791.181818182 | 58816.8181818182 | 40 | 207393 | 491791.181818182 | -284398.181818182 | 41 | 301607 | 553455.80952381 | -251848.809523809 | 42 | 345783 | 553455.80952381 | -207672.809523809 | 43 | 501749 | 491791.181818182 | 9957.81818181818 | 44 | 379983 | 553455.80952381 | -173472.809523809 | 45 | 387475 | 267847.518518519 | 119627.481481481 | 46 | 377305 | 398818.8 | -21513.8 | 47 | 370837 | 553455.80952381 | -182618.809523809 | 48 | 430866 | 553455.80952381 | -122589.809523809 | 49 | 469107 | 553455.80952381 | -84348.8095238095 | 50 | 194493 | 267847.518518519 | -73354.5185185185 | 51 | 530670 | 491791.181818182 | 38878.8181818182 | 52 | 518365 | 553455.80952381 | -35090.8095238095 | 53 | 491303 | 553455.80952381 | -62152.8095238095 | 54 | 527021 | 398818.8 | 128202.2 | 55 | 233773 | 553455.80952381 | -319682.809523809 | 56 | 405972 | 267847.518518519 | 138124.481481481 | 57 | 652925 | 378225.375 | 274699.625 | 58 | 446211 | 398818.8 | 47392.2 | 59 | 341340 | 398818.8 | -57478.8 | 60 | 387699 | 553455.80952381 | -165756.809523809 | 61 | 493408 | 553455.80952381 | -60047.8095238095 | 62 | 146494 | 305290.6875 | -158796.6875 | 63 | 414462 | 398818.8 | 15643.2 | 64 | 364304 | 553455.80952381 | -189151.809523809 | 65 | 355178 | 267847.518518519 | 87330.4814814815 | 66 | 357760 | 553455.80952381 | -195695.809523809 | 67 | 261216 | 305290.6875 | -44074.6875 | 68 | 397144 | 398818.8 | -1674.79999999999 | 69 | 374943 | 398818.8 | -23875.8 | 70 | 424898 | 491791.181818182 | -66893.1818181818 | 71 | 202055 | 267847.518518519 | -65792.5185185185 | 72 | 378525 | 267847.518518519 | 110677.481481481 | 73 | 310768 | 398818.8 | -88050.8 | 74 | 325738 | 305290.6875 | 20447.3125 | 75 | 394510 | 398818.8 | -4308.79999999999 | 76 | 247060 | 305290.6875 | -58230.6875 | 77 | 368078 | 398818.8 | -30740.8 | 78 | 236761 | 305290.6875 | -68529.6875 | 79 | 312378 | 305290.6875 | 7087.3125 | 80 | 339836 | 398818.8 | -58982.8 | 81 | 347385 | 305290.6875 | 42094.3125 | 82 | 426280 | 398818.8 | 27461.2 | 83 | 352850 | 398818.8 | -45968.8 | 84 | 301881 | 378225.375 | -76344.375 | 85 | 377516 | 398818.8 | -21302.8 | 86 | 357312 | 267847.518518519 | 89464.4814814815 | 87 | 458343 | 491791.181818182 | -33448.1818181818 | 88 | 354228 | 398818.8 | -44590.8 | 89 | 308636 | 398818.8 | -90182.8 | 90 | 386212 | 398818.8 | -12606.8 | 91 | 393343 | 398818.8 | -5475.79999999999 | 92 | 378509 | 267847.518518519 | 110661.481481481 | 93 | 452469 | 267847.518518519 | 184621.481481481 | 94 | 364839 | 553455.80952381 | -188616.809523809 | 95 | 358649 | 378225.375 | -19576.375 | 96 | 376641 | 267847.518518519 | 108793.481481481 | 97 | 429112 | 398818.8 | 30293.2 | 98 | 330546 | 305290.6875 | 25255.3125 | 99 | 403560 | 398818.8 | 4741.20000000001 | 100 | 317892 | 305290.6875 | 12601.3125 | 101 | 307528 | 305290.6875 | 2237.3125 | 102 | 235133 | 398818.8 | -163685.8 | 103 | 299243 | 398818.8 | -99575.8 | 104 | 314073 | 398818.8 | -84745.8 | 105 | 368186 | 305290.6875 | 62895.3125 | 106 | 269661 | 305290.6875 | -35629.6875 | 107 | 125390 | 267847.518518519 | -142457.518518519 | 108 | 510834 | 398818.8 | 112015.2 | 109 | 321896 | 553455.80952381 | -231559.809523809 | 110 | 249898 | 305290.6875 | -55392.6875 | 111 | 408881 | 305290.6875 | 103590.3125 | 112 | 158492 | 267847.518518519 | -109355.518518519 | 113 | 292154 | 267847.518518519 | 24306.4814814815 | 114 | 289513 | 260725.375 | 28787.625 | 115 | 378049 | 305290.6875 | 72758.3125 | 116 | 343466 | 305290.6875 | 38175.3125 | 117 | 332743 | 305290.6875 | 27452.3125 | 118 | 442882 | 398818.8 | 44063.2 | 119 | 214215 | 260725.375 | -46510.375 | 120 | 315688 | 305290.6875 | 10397.3125 | 121 | 375195 | 553455.80952381 | -178260.809523809 | 122 | 334280 | 305290.6875 | 28989.3125 | 123 | 355864 | 491791.181818182 | -135927.181818182 | 124 | 480382 | 398818.8 | 81563.2 | 125 | 353058 | 260725.375 | 92332.625 | 126 | 217193 | 260725.375 | -43532.375 | 127 | 315380 | 314858.418269231 | 521.581730769249 | 128 | 314533 | 314858.418269231 | -325.418269230751 | 129 | 318056 | 314858.418269231 | 3197.58173076925 | 130 | 315380 | 314858.418269231 | 521.581730769249 | 131 | 314353 | 314858.418269231 | -505.418269230751 | 132 | 369448 | 305290.6875 | 64157.3125 | 133 | 315380 | 314858.418269231 | 521.581730769249 | 134 | 312846 | 314858.418269231 | -2012.41826923075 | 135 | 312075 | 305290.6875 | 6784.3125 | 136 | 315009 | 314858.418269231 | 150.581730769249 | 137 | 318903 | 314858.418269231 | 4044.58173076925 | 138 | 314887 | 314858.418269231 | 28.5817307692487 | 139 | 314913 | 305290.6875 | 9622.3125 | 140 | 315380 | 314858.418269231 | 521.581730769249 | 141 | 325506 | 314858.418269231 | 10647.5817307692 | 142 | 315380 | 314858.418269231 | 521.581730769249 | 143 | 298568 | 305290.6875 | -6722.6875 | 144 | 315834 | 314858.418269231 | 975.581730769249 | 145 | 329784 | 305290.6875 | 24493.3125 | 146 | 312878 | 314858.418269231 | -1980.41826923075 | 147 | 315380 | 314858.418269231 | 521.581730769249 | 148 | 314987 | 314858.418269231 | 128.581730769249 | 149 | 325249 | 314858.418269231 | 10390.5817307692 | 150 | 315877 | 314858.418269231 | 1018.58173076925 | 151 | 291650 | 305290.6875 | -13640.6875 | 152 | 305959 | 305290.6875 | 668.3125 | 153 | 315380 | 314858.418269231 | 521.581730769249 | 154 | 297765 | 305290.6875 | -7525.6875 | 155 | 315245 | 314858.418269231 | 386.581730769249 | 156 | 315380 | 314858.418269231 | 521.581730769249 | 157 | 315380 | 314858.418269231 | 521.581730769249 | 158 | 315236 | 314858.418269231 | 377.581730769249 | 159 | 336425 | 314858.418269231 | 21566.5817307692 | 160 | 315380 | 314858.418269231 | 521.581730769249 | 161 | 315380 | 314858.418269231 | 521.581730769249 | 162 | 315380 | 314858.418269231 | 521.581730769249 | 163 | 315380 | 314858.418269231 | 521.581730769249 | 164 | 306268 | 305290.6875 | 977.3125 | 165 | 302187 | 305290.6875 | -3103.6875 | 166 | 314882 | 314858.418269231 | 23.5817307692487 | 167 | 315380 | 314858.418269231 | 521.581730769249 | 168 | 382712 | 378225.375 | 4486.625 | 169 | 341570 | 267847.518518519 | 73722.4814814815 | 170 | 315380 | 314858.418269231 | 521.581730769249 | 171 | 315380 | 314858.418269231 | 521.581730769249 | 172 | 312412 | 314858.418269231 | -2446.41826923075 | 173 | 315380 | 314858.418269231 | 521.581730769249 | 174 | 309596 | 314858.418269231 | -5262.41826923075 | 175 | 315380 | 314858.418269231 | 521.581730769249 | 176 | 315547 | 314858.418269231 | 688.581730769249 | 177 | 313267 | 491791.181818182 | -178524.181818182 | 178 | 316176 | 314858.418269231 | 1317.58173076925 | 179 | 315380 | 314858.418269231 | 521.581730769249 | 180 | 315380 | 314858.418269231 | 521.581730769249 | 181 | 359335 | 305290.6875 | 54044.3125 | 182 | 330068 | 305290.6875 | 24777.3125 | 183 | 314289 | 305290.6875 | 8998.3125 | 184 | 297413 | 305290.6875 | -7877.6875 | 185 | 314806 | 314858.418269231 | -52.4182692307513 | 186 | 333210 | 305290.6875 | 27919.3125 | 187 | 352108 | 305290.6875 | 46817.3125 | 188 | 313332 | 314858.418269231 | -1526.41826923075 | 189 | 291787 | 314858.418269231 | -23071.4182692308 | 190 | 315380 | 314858.418269231 | 521.581730769249 | 191 | 318745 | 314858.418269231 | 3886.58173076925 | 192 | 315380 | 314858.418269231 | 521.581730769249 | 193 | 315366 | 314858.418269231 | 507.581730769249 | 194 | 315380 | 314858.418269231 | 521.581730769249 | 195 | 315688 | 314858.418269231 | 829.581730769249 | 196 | 315380 | 314858.418269231 | 521.581730769249 | 197 | 409642 | 553455.80952381 | -143813.809523809 | 198 | 315380 | 314858.418269231 | 521.581730769249 | 199 | 315380 | 314858.418269231 | 521.581730769249 | 200 | 269587 | 305290.6875 | -35703.6875 | 201 | 315380 | 314858.418269231 | 521.581730769249 | 202 | 315380 | 314858.418269231 | 521.581730769249 | 203 | 315380 | 314858.418269231 | 521.581730769249 | 204 | 300962 | 314858.418269231 | -13896.4182692308 | 205 | 325479 | 398818.8 | -73339.8 | 206 | 316155 | 314858.418269231 | 1296.58173076925 | 207 | 318574 | 314858.418269231 | 3715.58173076925 | 208 | 315380 | 314858.418269231 | 521.581730769249 | 209 | 343613 | 378225.375 | -34612.375 | 210 | 306948 | 314858.418269231 | -7910.41826923075 | 211 | 315380 | 314858.418269231 | 521.581730769249 | 212 | 315380 | 314858.418269231 | 521.581730769249 | 213 | 330059 | 314858.418269231 | 15200.5817307692 | 214 | 288985 | 305290.6875 | -16305.6875 | 215 | 304485 | 305290.6875 | -805.6875 | 216 | 315380 | 314858.418269231 | 521.581730769249 | 217 | 315688 | 314858.418269231 | 829.581730769249 | 218 | 317736 | 314858.418269231 | 2877.58173076925 | 219 | 315380 | 314858.418269231 | 521.581730769249 | 220 | 322331 | 305290.6875 | 17040.3125 | 221 | 296656 | 314858.418269231 | -18202.4182692308 | 222 | 315380 | 314858.418269231 | 521.581730769249 | 223 | 315354 | 314858.418269231 | 495.581730769249 | 224 | 312161 | 305290.6875 | 6870.3125 | 225 | 315576 | 314858.418269231 | 717.581730769249 | 226 | 314922 | 314858.418269231 | 63.5817307692487 | 227 | 314551 | 314858.418269231 | -307.418269230751 | 228 | 315380 | 314858.418269231 | 521.581730769249 | 229 | 312339 | 314858.418269231 | -2519.41826923075 | 230 | 315380 | 314858.418269231 | 521.581730769249 | 231 | 298700 | 314858.418269231 | -16158.4182692308 | 232 | 321376 | 305290.6875 | 16085.3125 | 233 | 315380 | 314858.418269231 | 521.581730769249 | 234 | 303230 | 314858.418269231 | -11628.4182692308 | 235 | 315380 | 314858.418269231 | 521.581730769249 | 236 | 315487 | 314858.418269231 | 628.581730769249 | 237 | 315380 | 314858.418269231 | 521.581730769249 | 238 | 315793 | 314858.418269231 | 934.581730769249 | 239 | 315380 | 314858.418269231 | 521.581730769249 | 240 | 315380 | 314858.418269231 | 521.581730769249 | 241 | 315380 | 314858.418269231 | 521.581730769249 | 242 | 312887 | 314858.418269231 | -1971.41826923075 | 243 | 315380 | 314858.418269231 | 521.581730769249 | 244 | 315637 | 314858.418269231 | 778.581730769249 | 245 | 324385 | 260725.375 | 63659.625 | 246 | 315380 | 314858.418269231 | 521.581730769249 | 247 | 315380 | 314858.418269231 | 521.581730769249 | 248 | 308989 | 314858.418269231 | -5869.41826923075 | 249 | 315380 | 314858.418269231 | 521.581730769249 | 250 | 315380 | 314858.418269231 | 521.581730769249 | 251 | 296702 | 314858.418269231 | -18156.4182692308 | 252 | 315380 | 314858.418269231 | 521.581730769249 | 253 | 307322 | 314858.418269231 | -7536.41826923075 | 254 | 304376 | 305290.6875 | -914.6875 | 255 | 253588 | 267847.518518519 | -14259.5185185185 | 256 | 315380 | 314858.418269231 | 521.581730769249 | 257 | 309560 | 314858.418269231 | -5298.41826923075 | 258 | 298466 | 378225.375 | -79759.375 | 259 | 315380 | 314858.418269231 | 521.581730769249 | 260 | 315380 | 314858.418269231 | 521.581730769249 | 261 | 315380 | 314858.418269231 | 521.581730769249 | 262 | 315380 | 314858.418269231 | 521.581730769249 | 263 | 343929 | 339229.428571429 | 4699.57142857142 | 264 | 331955 | 314858.418269231 | 17096.5817307692 | 265 | 315380 | 314858.418269231 | 521.581730769249 | 266 | 315380 | 314858.418269231 | 521.581730769249 | 267 | 315380 | 314858.418269231 | 521.581730769249 | 268 | 381180 | 339229.428571429 | 41950.5714285714 | 269 | 315380 | 314858.418269231 | 521.581730769249 | 270 | 331420 | 339229.428571429 | -7809.42857142858 | 271 | 315380 | 314858.418269231 | 521.581730769249 | 272 | 315380 | 314858.418269231 | 521.581730769249 | 273 | 315380 | 314858.418269231 | 521.581730769249 | 274 | 310201 | 314858.418269231 | -4657.41826923075 | 275 | 315380 | 314858.418269231 | 521.581730769249 | 276 | 320016 | 314858.418269231 | 5157.58173076925 | 277 | 320398 | 314858.418269231 | 5539.58173076925 | 278 | 315380 | 314858.418269231 | 521.581730769249 | 279 | 291841 | 305290.6875 | -13449.6875 | 280 | 310670 | 339229.428571429 | -28559.4285714286 | 281 | 315380 | 314858.418269231 | 521.581730769249 | 282 | 315380 | 314858.418269231 | 521.581730769249 | 283 | 313491 | 314858.418269231 | -1367.41826923075 | 284 | 315380 | 314858.418269231 | 521.581730769249 | 285 | 331323 | 339229.428571429 | -7906.42857142858 | 286 | 315380 | 314858.418269231 | 521.581730769249 | 287 | 319210 | 305290.6875 | 13919.3125 | 288 | 318098 | 314858.418269231 | 3239.58173076925 | 289 | 315380 | 314858.418269231 | 521.581730769249 | 290 | 292754 | 314858.418269231 | -22104.4182692308 | 291 | 315380 | 314858.418269231 | 521.581730769249 | 292 | 325176 | 314858.418269231 | 10317.5817307692 | 293 | 365959 | 305290.6875 | 60668.3125 | 294 | 315380 | 314858.418269231 | 521.581730769249 | 295 | 302409 | 314858.418269231 | -12449.4182692308 | 296 | 340968 | 314858.418269231 | 26109.5817307692 | 297 | 315380 | 314858.418269231 | 521.581730769249 | 298 | 315380 | 314858.418269231 | 521.581730769249 | 299 | 315380 | 314858.418269231 | 521.581730769249 | 300 | 315380 | 314858.418269231 | 521.581730769249 | 301 | 313164 | 314858.418269231 | -1694.41826923075 | 302 | 301164 | 314858.418269231 | -13694.4182692308 | 303 | 315380 | 314858.418269231 | 521.581730769249 | 304 | 315380 | 314858.418269231 | 521.581730769249 | 305 | 344425 | 314858.418269231 | 29566.5817307692 | 306 | 315394 | 314858.418269231 | 535.581730769249 | 307 | 315380 | 314858.418269231 | 521.581730769249 | 308 | 316647 | 314858.418269231 | 1788.58173076925 | 309 | 309836 | 314858.418269231 | -5022.41826923075 | 310 | 315380 | 314858.418269231 | 521.581730769249 | 311 | 315380 | 314858.418269231 | 521.581730769249 | 312 | 346611 | 398818.8 | -52207.8 | 313 | 315380 | 314858.418269231 | 521.581730769249 | 314 | 322031 | 314858.418269231 | 7172.58173076925 | 315 | 315656 | 314858.418269231 | 797.581730769249 | 316 | 339445 | 339229.428571429 | 215.57142857142 | 317 | 314964 | 314858.418269231 | 105.581730769249 | 318 | 297141 | 314858.418269231 | -17717.4182692308 | 319 | 315372 | 314858.418269231 | 513.581730769249 | 320 | 315380 | 314858.418269231 | 521.581730769249 | 321 | 315380 | 314858.418269231 | 521.581730769249 | 322 | 315380 | 314858.418269231 | 521.581730769249 | 323 | 315380 | 314858.418269231 | 521.581730769249 | 324 | 315380 | 314858.418269231 | 521.581730769249 | 325 | 315380 | 314858.418269231 | 521.581730769249 | 326 | 312502 | 314858.418269231 | -2356.41826923075 | 327 | 315380 | 314858.418269231 | 521.581730769249 | 328 | 315380 | 314858.418269231 | 521.581730769249 | 329 | 315380 | 314858.418269231 | 521.581730769249 | 330 | 315380 | 314858.418269231 | 521.581730769249 | 331 | 315380 | 314858.418269231 | 521.581730769249 | 332 | 315380 | 314858.418269231 | 521.581730769249 | 333 | 315380 | 314858.418269231 | 521.581730769249 | 334 | 313729 | 314858.418269231 | -1129.41826923075 | 335 | 315388 | 314858.418269231 | 529.581730769249 | 336 | 315371 | 314858.418269231 | 512.581730769249 | 337 | 296139 | 305290.6875 | -9151.6875 | 338 | 315380 | 314858.418269231 | 521.581730769249 | 339 | 313880 | 314858.418269231 | -978.418269230751 | 340 | 317698 | 314858.418269231 | 2839.58173076925 | 341 | 295580 | 314858.418269231 | -19278.4182692308 | 342 | 315380 | 314858.418269231 | 521.581730769249 | 343 | 315380 | 314858.418269231 | 521.581730769249 | 344 | 315380 | 314858.418269231 | 521.581730769249 | 345 | 308256 | 305290.6875 | 2965.3125 | 346 | 315380 | 314858.418269231 | 521.581730769249 | 347 | 303677 | 314858.418269231 | -11181.4182692308 | 348 | 315380 | 314858.418269231 | 521.581730769249 | 349 | 315380 | 314858.418269231 | 521.581730769249 | 350 | 319369 | 305290.6875 | 14078.3125 | 351 | 318690 | 314858.418269231 | 3831.58173076925 | 352 | 314049 | 314858.418269231 | -809.418269230751 | 353 | 325699 | 305290.6875 | 20408.3125 | 354 | 314210 | 314858.418269231 | -648.418269230751 | 355 | 315380 | 314858.418269231 | 521.581730769249 | 356 | 315380 | 314858.418269231 | 521.581730769249 | 357 | 322378 | 305290.6875 | 17087.3125 | 358 | 315380 | 314858.418269231 | 521.581730769249 | 359 | 315380 | 314858.418269231 | 521.581730769249 | 360 | 315380 | 314858.418269231 | 521.581730769249 | 361 | 315398 | 314858.418269231 | 539.581730769249 | 362 | 315380 | 314858.418269231 | 521.581730769249 | 363 | 315380 | 314858.418269231 | 521.581730769249 | 364 | 308336 | 305290.6875 | 3045.3125 | 365 | 316386 | 314858.418269231 | 1527.58173076925 | 366 | 315380 | 314858.418269231 | 521.581730769249 | 367 | 315380 | 314858.418269231 | 521.581730769249 | 368 | 315380 | 314858.418269231 | 521.581730769249 | 369 | 315380 | 314858.418269231 | 521.581730769249 | 370 | 315553 | 314858.418269231 | 694.581730769249 | 371 | 315380 | 314858.418269231 | 521.581730769249 | 372 | 323361 | 305290.6875 | 18070.3125 | 373 | 336639 | 339229.428571429 | -2590.42857142858 | 374 | 307424 | 314858.418269231 | -7434.41826923075 | 375 | 315380 | 314858.418269231 | 521.581730769249 | 376 | 315380 | 314858.418269231 | 521.581730769249 | 377 | 295370 | 314858.418269231 | -19488.4182692308 | 378 | 322340 | 305290.6875 | 17049.3125 | 379 | 319864 | 305290.6875 | 14573.3125 | 380 | 315380 | 314858.418269231 | 521.581730769249 | 381 | 315380 | 314858.418269231 | 521.581730769249 | 382 | 317291 | 305290.6875 | 12000.3125 | 383 | 280398 | 378225.375 | -97827.375 | 384 | 315380 | 314858.418269231 | 521.581730769249 | 385 | 317330 | 314858.418269231 | 2471.58173076925 | 386 | 238125 | 260725.375 | -22600.375 | 387 | 327071 | 314858.418269231 | 12212.5817307692 | 388 | 309038 | 305290.6875 | 3747.3125 | 389 | 314210 | 314858.418269231 | -648.418269230751 | 390 | 307930 | 305290.6875 | 2639.3125 | 391 | 322327 | 314858.418269231 | 7468.58173076925 | 392 | 292136 | 305290.6875 | -13154.6875 | 393 | 263276 | 305290.6875 | -42014.6875 | 394 | 367655 | 305290.6875 | 62364.3125 | 395 | 283910 | 260725.375 | 23184.625 | 396 | 283587 | 305290.6875 | -21703.6875 | 397 | 243650 | 267847.518518519 | -24197.5185185185 | 398 | 438493 | 491791.181818182 | -53298.1818181818 | 399 | 296261 | 305290.6875 | -9029.6875 | 400 | 230621 | 267847.518518519 | -37226.5185185185 | 401 | 304252 | 305290.6875 | -1038.6875 | 402 | 333505 | 305290.6875 | 28214.3125 | 403 | 296919 | 305290.6875 | -8371.6875 | 404 | 278990 | 305290.6875 | -26300.6875 | 405 | 276898 | 305290.6875 | -28392.6875 | 406 | 327007 | 305290.6875 | 21716.3125 | 407 | 317046 | 305290.6875 | 11755.3125 | 408 | 304555 | 305290.6875 | -735.6875 | 409 | 298096 | 305290.6875 | -7194.6875 | 410 | 231861 | 305290.6875 | -73429.6875 | 411 | 309422 | 305290.6875 | 4131.3125 | 412 | 286963 | 267847.518518519 | 19115.4814814815 | 413 | 269753 | 305290.6875 | -35537.6875 | 414 | 448243 | 267847.518518519 | 180395.481481481 | 415 | 165404 | 260725.375 | -95321.375 | 416 | 204325 | 305290.6875 | -100965.6875 | 417 | 407159 | 378225.375 | 28933.625 | 418 | 290476 | 305290.6875 | -14814.6875 | 419 | 275311 | 305290.6875 | -29979.6875 | 420 | 246541 | 305290.6875 | -58749.6875 | 421 | 253468 | 305290.6875 | -51822.6875 | 422 | 240897 | 267847.518518519 | -26950.5185185185 | 423 | -83265 | 267847.518518519 | -351112.518518519 | 424 | -42143 | 267847.518518519 | -309990.518518519 | 425 | 272713 | 305290.6875 | -32577.6875 | 426 | 215362 | 267847.518518519 | -52485.5185185185 | 427 | 42754 | 267847.518518519 | -225093.518518519 | 428 | 306275 | 2339778.3 | -2033503.3 | 429 | 253537 | 553455.80952381 | -299918.809523809 | 430 | 372631 | 553455.80952381 | -180824.809523809 | 431 | -7170 | 267847.518518519 | -275017.518518519 |
| | Charts produced by software: | | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292959594sw9rypifomfmtov/2qvpc1292959664.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292959594sw9rypifomfmtov/2qvpc1292959664.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/21/t1292959594sw9rypifomfmtov/3qvpc1292959664.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292959594sw9rypifomfmtov/3qvpc1292959664.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/21/t1292959594sw9rypifomfmtov/40m6f1292959664.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292959594sw9rypifomfmtov/40m6f1292959664.ps (open in new window) |
| | Parameters (Session): | par1 = 4 ; par2 = none ; par3 = 3 ; par4 = no ; | | Parameters (R input): | par1 = 4 ; 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')
}
| |
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
|