R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- array(list(1418 + ,210907 + ,396 + ,79 + ,30 + ,112285 + ,144 + ,145 + ,869 + ,120982 + ,297 + ,58 + ,28 + ,84786 + ,103 + ,101 + ,1530 + ,176508 + ,559 + ,60 + ,38 + ,83123 + ,98 + ,98 + ,2172 + ,179321 + ,967 + ,108 + ,30 + ,101193 + ,135 + ,132 + ,901 + ,123185 + ,270 + ,49 + ,22 + ,38361 + ,61 + ,60 + ,463 + ,52746 + ,143 + ,0 + ,26 + ,68504 + ,39 + ,38 + ,3201 + ,385534 + ,1562 + ,121 + ,25 + ,119182 + ,150 + ,144 + ,371 + ,33170 + ,109 + ,1 + ,18 + ,22807 + ,5 + ,5 + ,1192 + ,101645 + ,371 + ,20 + ,11 + ,17140 + ,28 + ,28 + ,1583 + ,149061 + ,656 + ,43 + ,26 + ,116174 + ,84 + ,84 + ,1439 + ,165446 + ,511 + ,69 + ,25 + ,57635 + ,80 + ,79 + ,1764 + ,237213 + ,655 + ,78 + ,38 + ,66198 + ,130 + ,127 + ,1495 + ,173326 + ,465 + ,86 + ,44 + ,71701 + ,82 + ,78 + ,1373 + ,133131 + ,525 + ,44 + ,30 + ,57793 + ,60 + ,60 + ,2187 + ,258873 + ,885 + ,104 + ,40 + ,80444 + ,131 + ,131 + ,1491 + ,180083 + ,497 + ,63 + ,34 + ,53855 + ,84 + ,84 + ,4041 + ,324799 + ,1436 + ,158 + ,47 + ,97668 + ,140 + ,133 + ,1706 + ,230964 + ,612 + ,102 + ,30 + ,133824 + ,151 + ,150 + ,2152 + ,236785 + ,865 + ,77 + ,31 + ,101481 + ,91 + ,91 + ,1036 + ,135473 + ,385 + ,82 + ,23 + ,99645 + ,138 + ,132 + ,1882 + ,202925 + ,567 + ,115 + ,36 + ,114789 + ,150 + ,136 + ,1929 + ,215147 + ,639 + ,101 + ,36 + ,99052 + ,124 + ,124 + ,2242 + ,344297 + ,963 + ,80 + ,30 + ,67654 + ,119 + ,118 + ,1220 + ,153935 + ,398 + ,50 + ,25 + ,65553 + ,73 + ,70 + ,1289 + ,132943 + ,410 + ,83 + ,39 + ,97500 + ,110 + ,107 + ,2515 + ,174724 + ,966 + ,123 + ,34 + ,69112 + ,123 + ,119 + ,2147 + ,174415 + ,801 + ,73 + ,31 + ,82753 + ,90 + ,89 + ,2352 + ,225548 + ,892 + ,81 + ,31 + ,85323 + ,116 + ,112 + ,1638 + ,223632 + ,513 + ,105 + ,33 + ,72654 + ,113 + ,108 + ,1222 + ,124817 + ,469 + ,47 + ,25 + ,30727 + ,56 + ,52 + ,1812 + ,221698 + ,683 + ,105 + ,33 + ,77873 + ,115 + ,112 + ,1677 + ,210767 + ,643 + ,94 + ,35 + ,117478 + ,119 + ,116 + ,1579 + ,170266 + ,535 + ,44 + ,42 + ,74007 + ,129 + ,123 + ,1731 + ,260561 + ,625 + ,114 + ,43 + ,90183 + ,127 + ,125 + ,807 + ,84853 + ,264 + ,38 + ,30 + ,61542 + ,27 + ,27 + ,2452 + ,294424 + ,992 + ,107 + ,33 + ,101494 + ,175 + ,162 + ,829 + ,101011 + ,238 + ,30 + ,13 + ,27570 + ,35 + ,32 + ,1940 + ,215641 + ,818 + ,71 + ,32 + ,55813 + ,64 + ,64 + ,2662 + ,325107 + ,937 + ,84 + ,36 + ,79215 + ,96 + ,92 + ,186 + ,7176 + ,70 + ,0 + ,0 + ,1423 + ,0 + ,0 + ,1499 + ,167542 + ,507 + ,59 + ,28 + ,55461 + ,84 + ,83 + ,865 + ,106408 + ,260 + ,33 + ,14 + ,31081 + ,41 + ,41 + ,1793 + ,96560 + ,503 + ,42 + ,17 + ,22996 + ,47 + ,47 + ,2527 + ,265769 + ,927 + ,96 + ,32 + ,83122 + ,126 + ,120 + ,2747 + ,269651 + ,1269 + ,106 + ,30 + ,70106 + ,105 + ,105 + ,1324 + ,149112 + ,537 + ,56 + ,35 + ,60578 + ,80 + ,79 + ,2702 + ,175824 + ,910 + ,57 + ,20 + ,39992 + ,70 + ,65 + ,1383 + ,152871 + ,532 + ,59 + ,28 + ,79892 + ,73 + ,70 + ,1179 + ,111665 + ,345 + ,39 + ,28 + ,49810 + ,57 + ,55 + ,2099 + ,116408 + ,918 + ,34 + ,39 + ,71570 + ,40 + ,39 + ,4308 + ,362301 + ,1635 + ,76 + ,34 + ,100708 + ,68 + ,67 + ,918 + ,78800 + ,330 + ,20 + ,26 + ,33032 + ,21 + ,21 + ,1831 + ,183167 + ,557 + ,91 + ,39 + ,82875 + ,127 + ,127 + ,3373 + ,277965 + ,1178 + ,115 + ,39 + ,139077 + ,154 + ,152 + ,1713 + ,150629 + ,740 + ,85 + ,33 + ,71595 + ,116 + ,113 + ,1438 + ,168809 + ,452 + ,76 + ,28 + ,72260 + ,102 + ,99 + ,496 + ,24188 + ,218 + ,8 + ,4 + ,5950 + ,7 + ,7 + ,2253 + ,329267 + ,764 + ,79 + ,39 + ,115762 + ,148 + ,141 + ,744 + ,65029 + ,255 + ,21 + ,18 + ,32551 + ,21 + ,21 + ,1161 + ,101097 + ,454 + ,30 + ,14 + ,31701 + ,35 + ,35 + ,2352 + ,218946 + ,866 + ,76 + ,29 + ,80670 + ,112 + ,109 + ,2144 + ,244052 + ,574 + ,101 + ,44 + ,143558 + ,137 + ,133 + ,4691 + ,341570 + ,1276 + ,94 + ,21 + ,117105 + ,135 + ,123 + ,1112 + ,103597 + ,379 + ,27 + ,16 + ,23789 + ,26 + ,26 + ,2694 + ,233328 + ,825 + ,92 + ,28 + ,120733 + ,230 + ,230 + ,1973 + ,256462 + ,798 + ,123 + ,35 + ,105195 + ,181 + ,166 + ,1769 + ,206161 + ,663 + ,75 + ,28 + ,73107 + ,71 + ,68 + ,3148 + ,311473 + ,1069 + ,128 + ,38 + ,132068 + ,147 + ,147 + ,2474 + ,235800 + ,921 + ,105 + ,23 + ,149193 + ,190 + ,179 + ,2084 + ,177939 + ,858 + ,55 + ,36 + ,46821 + ,64 + ,61 + ,1954 + ,207176 + ,711 + ,56 + ,32 + ,87011 + ,105 + ,101 + ,1226 + ,196553 + ,503 + ,41 + ,29 + ,95260 + ,107 + ,108 + ,1389 + ,174184 + ,382 + ,72 + ,25 + ,55183 + ,94 + ,90 + ,1496 + ,143246 + ,464 + ,67 + ,27 + ,106671 + ,116 + ,114 + ,2269 + ,187559 + ,717 + ,75 + ,36 + ,73511 + ,106 + ,103 + ,1833 + ,187681 + ,690 + ,114 + ,28 + ,92945 + ,143 + ,142 + ,1268 + ,119016 + ,462 + ,118 + ,23 + ,78664 + ,81 + ,79 + ,1943 + ,182192 + ,657 + ,77 + ,40 + ,70054 + ,89 + ,88 + ,893 + ,73566 + ,385 + ,22 + ,23 + ,22618 + ,26 + ,25 + ,1762 + ,194979 + ,577 + ,66 + ,40 + ,74011 + ,84 + ,83 + ,1403 + ,167488 + ,619 + ,69 + ,28 + ,83737 + ,113 + ,113 + ,1425 + ,143756 + ,479 + ,105 + ,34 + ,69094 + ,120 + ,118 + ,1857 + ,275541 + ,817 + ,116 + ,33 + ,93133 + ,110 + ,110 + ,1840 + ,243199 + ,752 + ,88 + ,28 + ,95536 + ,134 + ,129 + ,1502 + ,182999 + ,430 + ,73 + ,34 + ,225920 + ,54 + ,51 + ,1441 + ,135649 + ,451 + ,99 + ,30 + ,62133 + ,96 + ,93 + ,1420 + ,152299 + ,537 + ,62 + ,33 + ,61370 + ,78 + ,76 + ,1416 + ,120221 + ,519 + ,53 + ,22 + ,43836 + ,51 + ,49 + ,2970 + ,346485 + ,1000 + ,118 + ,38 + ,106117 + ,121 + ,118 + ,1317 + ,145790 + ,637 + ,30 + ,26 + ,38692 + ,38 + ,38 + ,1644 + ,193339 + ,465 + ,100 + ,35 + ,84651 + ,145 + ,141 + ,870 + ,80953 + ,437 + ,49 + ,8 + ,56622 + ,59 + ,58 + ,1654 + ,122774 + ,711 + ,24 + ,24 + ,15986 + ,27 + ,27 + ,1054 + ,130585 + ,299 + ,67 + ,29 + ,95364 + ,91 + ,91 + ,937 + ,112611 + ,248 + ,46 + ,20 + ,26706 + ,48 + ,48 + ,3004 + ,286468 + ,1162 + ,57 + ,29 + ,89691 + ,68 + ,63 + ,2008 + ,241066 + ,714 + ,75 + ,45 + ,67267 + ,58 + ,56 + ,2547 + ,148446 + ,905 + ,135 + ,37 + ,126846 + ,150 + ,144 + ,1885 + ,204713 + ,649 + ,68 + ,33 + ,41140 + ,74 + ,73 + ,1626 + ,182079 + ,512 + ,124 + ,33 + ,102860 + ,181 + ,168 + ,1468 + ,140344 + ,472 + ,33 + ,25 + ,51715 + ,65 + ,64 + ,2445 + ,220516 + ,905 + ,98 + ,32 + ,55801 + ,97 + ,97 + ,1964 + ,243060 + ,786 + ,58 + ,29 + ,111813 + ,121 + ,117 + ,1381 + ,162765 + ,489 + ,68 + ,28 + ,120293 + ,99 + ,100 + ,1369 + ,182613 + ,479 + ,81 + ,28 + ,138599 + ,152 + ,149 + ,1659 + ,232138 + ,617 + ,131 + ,31 + ,161647 + ,188 + ,187 + ,2888 + ,265318 + ,925 + ,110 + ,52 + ,115929 + ,138 + ,127 + ,1290 + ,85574 + ,351 + ,37 + ,21 + ,24266 + ,40 + ,37 + ,2845 + ,310839 + ,1144 + ,130 + ,24 + ,162901 + ,254 + ,245 + ,1982 + ,225060 + ,669 + ,93 + ,41 + ,109825 + ,87 + ,87 + ,1904 + ,232317 + ,707 + ,118 + ,33 + ,129838 + ,178 + ,177 + ,1391 + ,144966 + ,458 + ,39 + ,32 + ,37510 + ,51 + ,49 + ,602 + ,43287 + ,214 + ,13 + ,19 + ,43750 + ,49 + ,49 + ,1743 + ,155754 + ,599 + ,74 + ,20 + ,40652 + ,73 + ,73 + ,1559 + ,164709 + ,572 + ,81 + ,31 + ,87771 + ,176 + ,177 + ,2014 + ,201940 + ,897 + ,109 + ,31 + ,85872 + ,94 + ,94 + ,2143 + ,235454 + ,819 + ,151 + ,32 + ,89275 + ,120 + ,117 + ,2146 + ,220801 + ,720 + ,51 + ,18 + ,44418 + ,66 + ,60 + ,874 + ,99466 + ,273 + ,28 + ,23 + ,192565 + ,56 + ,55 + ,1590 + ,92661 + ,508 + ,40 + ,17 + ,35232 + ,39 + ,39 + ,1590 + ,133328 + ,506 + ,56 + ,20 + ,40909 + ,66 + ,64 + ,1210 + ,61361 + ,451 + ,27 + ,12 + ,13294 + ,27 + ,26 + ,2072 + ,125930 + ,699 + ,37 + ,17 + ,32387 + ,65 + ,64 + ,1281 + ,100750 + ,407 + ,83 + ,30 + ,140867 + ,58 + ,58 + ,1401 + ,224549 + ,465 + ,54 + ,31 + ,120662 + ,98 + ,95 + ,834 + ,82316 + ,245 + ,27 + ,10 + ,21233 + ,25 + ,25 + ,1105 + ,102010 + ,370 + ,28 + ,13 + ,44332 + ,26 + ,26 + ,1272 + ,101523 + ,316 + ,59 + ,22 + ,61056 + ,77 + ,76 + ,1944 + ,243511 + ,603 + ,133 + ,42 + ,101338 + ,130 + ,129 + ,391 + ,22938 + ,154 + ,12 + ,1 + ,1168 + ,11 + ,11 + ,761 + ,41566 + ,229 + ,0 + ,9 + ,13497 + ,2 + ,2 + ,1605 + ,152474 + ,577 + ,106 + ,32 + ,65567 + ,101 + ,101 + ,530 + ,61857 + ,192 + ,23 + ,11 + ,25162 + ,31 + ,28 + ,1988 + ,99923 + ,617 + ,44 + ,25 + ,32334 + ,36 + ,36 + ,1386 + ,132487 + ,411 + ,71 + ,36 + ,40735 + ,120 + ,89 + ,2395 + ,317394 + ,975 + ,116 + ,31 + ,91413 + ,195 + ,193 + ,387 + ,21054 + ,146 + ,4 + ,0 + ,855 + ,4 + ,4 + ,1742 + ,209641 + ,705 + ,62 + ,24 + ,97068 + ,89 + ,84 + ,620 + ,22648 + ,184 + ,12 + ,13 + ,44339 + ,24 + ,23 + ,449 + ,31414 + ,200 + ,18 + ,8 + ,14116 + ,39 + ,39 + ,800 + ,46698 + ,274 + ,14 + ,13 + ,10288 + ,14 + ,14 + ,1684 + ,131698 + ,502 + ,60 + ,19 + ,65622 + ,78 + ,78 + ,1050 + ,91735 + ,382 + ,7 + ,18 + ,16563 + ,15 + ,14 + ,2699 + ,244749 + ,964 + ,98 + ,33 + ,76643 + ,106 + ,101 + ,1606 + ,184510 + ,537 + ,64 + ,40 + ,110681 + ,83 + ,82 + ,1502 + ,79863 + ,438 + ,29 + ,22 + ,29011 + ,24 + ,24 + ,1204 + ,128423 + ,369 + ,32 + ,38 + ,92696 + ,37 + ,36 + ,1138 + ,97839 + ,417 + ,25 + ,24 + ,94785 + ,77 + ,75 + ,568 + ,38214 + ,276 + ,16 + ,8 + ,8773 + ,16 + ,16 + ,1459 + ,151101 + ,514 + ,48 + ,35 + ,83209 + ,56 + ,55 + ,2158 + ,272458 + ,822 + ,100 + ,43 + ,93815 + ,132 + ,131 + ,1111 + ,172494 + ,389 + ,46 + ,43 + ,86687 + ,144 + ,131 + ,1421 + ,108043 + ,466 + ,45 + ,14 + ,34553 + ,40 + ,39 + ,2833 + ,328107 + ,1255 + ,129 + ,41 + ,105547 + ,153 + ,144 + ,1955 + ,250579 + ,694 + ,130 + ,38 + ,103487 + ,143 + ,139 + ,2922 + ,351067 + ,1024 + ,136 + ,45 + ,213688 + ,220 + ,211 + ,1002 + ,158015 + ,400 + ,59 + ,31 + ,71220 + ,79 + ,78 + ,1060 + ,98866 + ,397 + ,25 + ,13 + ,23517 + ,50 + ,50 + ,956 + ,85439 + ,350 + ,32 + ,28 + ,56926 + ,39 + ,39 + ,2186 + ,229242 + ,719 + ,63 + ,31 + ,91721 + ,95 + ,90 + ,3604 + ,351619 + ,1277 + ,95 + ,40 + ,115168 + ,169 + ,166 + ,1035 + ,84207 + ,356 + ,14 + ,30 + ,111194 + ,12 + ,12 + ,1417 + ,120445 + ,457 + ,36 + ,16 + ,51009 + ,63 + ,57 + ,3261 + ,324598 + ,1402 + ,113 + ,37 + ,135777 + ,134 + ,133 + ,1587 + ,131069 + ,600 + ,47 + ,30 + ,51513 + ,69 + ,69 + ,1424 + ,204271 + ,480 + ,92 + ,35 + ,74163 + ,119 + ,119 + ,1701 + ,165543 + ,595 + ,70 + ,32 + ,51633 + ,119 + ,119 + ,1249 + ,141722 + ,436 + ,19 + ,27 + ,75345 + ,75 + ,65 + ,946 + ,116048 + ,230 + ,50 + ,20 + ,33416 + ,63 + ,61 + ,1926 + ,250047 + ,651 + ,41 + ,18 + ,83305 + ,55 + ,49 + ,3352 + ,299775 + ,1367 + ,91 + ,31 + ,98952 + ,103 + ,101 + ,1641 + ,195838 + ,564 + ,111 + ,31 + ,102372 + ,197 + ,196 + ,2035 + ,173260 + ,716 + ,41 + ,21 + ,37238 + ,16 + ,15 + ,2312 + ,254488 + ,747 + ,120 + ,39 + ,103772 + ,140 + ,136 + ,1369 + ,104389 + ,467 + ,135 + ,41 + ,123969 + ,89 + ,89 + ,1577 + ,136084 + ,671 + ,27 + ,13 + ,27142 + ,40 + ,40 + ,2201 + ,199476 + ,861 + ,87 + ,32 + ,135400 + ,125 + ,123 + ,961 + ,92499 + ,319 + ,25 + ,18 + ,21399 + ,21 + ,21 + ,1900 + ,224330 + ,612 + ,131 + ,39 + ,130115 + ,167 + ,163 + ,1254 + ,135781 + ,433 + ,45 + ,14 + ,24874 + ,32 + ,29 + ,1335 + ,74408 + ,434 + ,29 + ,7 + ,34988 + ,36 + ,35 + ,1597 + ,81240 + ,503 + ,58 + ,17 + ,45549 + ,13 + ,13 + ,207 + ,14688 + ,85 + ,4 + ,0 + ,6023 + ,5 + ,5 + ,1645 + ,181633 + ,564 + ,47 + ,30 + ,64466 + ,96 + ,96 + ,2429 + ,271856 + ,824 + ,109 + ,37 + ,54990 + ,151 + ,151 + ,151 + ,7199 + ,74 + ,7 + ,0 + ,1644 + ,6 + ,6 + ,474 + ,46660 + ,259 + ,12 + ,5 + ,6179 + ,13 + ,13 + ,141 + ,17547 + ,69 + ,0 + ,1 + ,3926 + ,3 + ,3 + ,1639 + ,133368 + ,535 + ,37 + ,16 + ,32755 + ,57 + ,56 + ,872 + ,95227 + ,239 + ,37 + ,32 + ,34777 + ,23 + ,23 + ,1318 + ,152601 + ,438 + ,46 + ,24 + ,73224 + ,61 + ,57 + ,1018 + ,98146 + ,459 + ,15 + ,17 + ,27114 + ,21 + ,14 + ,1383 + ,79619 + ,426 + ,42 + ,11 + ,20760 + ,43 + ,43 + ,1314 + ,59194 + ,288 + ,7 + ,24 + ,37636 + ,20 + ,20 + ,1335 + ,139942 + ,498 + ,54 + ,22 + ,65461 + ,82 + ,72 + ,1403 + ,118612 + ,454 + ,54 + ,12 + ,30080 + ,90 + ,87 + ,910 + ,72880 + ,376 + ,14 + ,19 + ,24094 + ,25 + ,21 + ,616 + ,65475 + ,225 + ,16 + ,13 + ,69008 + ,60 + ,56 + ,1407 + ,99643 + ,555 + ,33 + ,17 + ,54968 + ,61 + ,59 + ,771 + ,71965 + ,252 + ,32 + ,15 + ,46090 + ,85 + ,82 + ,766 + ,77272 + ,208 + ,21 + ,16 + ,27507 + ,43 + ,43 + ,473 + ,49289 + ,130 + ,15 + ,24 + ,10672 + ,25 + ,25 + ,1376 + ,135131 + ,481 + ,38 + ,15 + ,34029 + ,41 + ,38 + ,1232 + ,108446 + ,389 + ,22 + ,17 + ,46300 + ,26 + ,25 + ,1521 + ,89746 + ,565 + ,28 + ,18 + ,24760 + ,38 + ,38 + ,572 + ,44296 + ,173 + ,10 + ,20 + ,18779 + ,12 + ,12 + ,1059 + ,77648 + ,278 + ,31 + ,16 + ,21280 + ,29 + ,29 + ,1544 + ,181528 + ,609 + ,32 + ,16 + ,40662 + ,49 + ,47 + ,1230 + ,134019 + ,422 + ,32 + ,18 + ,28987 + ,46 + ,45 + ,1206 + ,124064 + ,445 + ,43 + ,22 + ,22827 + ,41 + ,40 + ,1205 + ,92630 + ,387 + ,27 + ,8 + ,18513 + ,31 + ,30 + ,1255 + ,121848 + ,339 + ,37 + ,17 + ,30594 + ,41 + ,41 + ,613 + ,52915 + ,181 + ,20 + ,18 + ,24006 + ,26 + ,25 + ,721 + ,81872 + ,245 + ,32 + ,16 + ,27913 + ,23 + ,23 + ,1109 + ,58981 + ,384 + ,0 + ,23 + ,42744 + ,14 + ,14 + ,740 + ,53515 + ,212 + ,5 + ,22 + ,12934 + ,16 + ,16 + ,1126 + ,60812 + ,399 + ,26 + ,13 + ,22574 + ,25 + ,26 + ,728 + ,56375 + ,229 + ,10 + ,13 + ,41385 + ,21 + ,21 + ,689 + ,65490 + ,224 + ,27 + ,16 + ,18653 + ,32 + ,27 + ,592 + ,80949 + ,203 + ,11 + ,16 + ,18472 + ,9 + ,9 + ,995 + ,76302 + ,333 + ,29 + ,20 + ,30976 + ,35 + ,33 + ,1613 + ,104011 + ,384 + ,25 + ,22 + ,63339 + ,42 + ,42 + ,2048 + ,98104 + ,636 + ,55 + ,17 + ,25568 + ,68 + ,68 + ,705 + ,67989 + ,185 + ,23 + ,18 + ,33747 + ,32 + ,32 + ,301 + ,30989 + ,93 + ,5 + ,17 + ,4154 + ,6 + ,6 + ,1803 + ,135458 + ,581 + ,43 + ,12 + ,19474 + ,68 + ,67 + ,799 + ,73504 + ,248 + ,23 + ,7 + ,35130 + ,33 + ,33 + ,861 + ,63123 + ,304 + ,34 + ,17 + ,39067 + ,84 + ,77 + ,1186 + ,61254 + ,344 + ,36 + ,14 + ,13310 + ,46 + ,46 + ,1451 + ,74914 + ,407 + ,35 + ,23 + ,65892 + ,30 + ,30 + ,628 + ,31774 + ,170 + ,0 + ,17 + ,4143 + ,0 + ,0 + ,1161 + ,81437 + ,312 + ,37 + ,14 + ,28579 + ,36 + ,36 + ,1463 + ,87186 + ,507 + ,28 + ,15 + ,51776 + ,47 + ,46 + ,742 + ,50090 + ,224 + ,16 + ,17 + ,21152 + ,20 + ,18 + ,979 + ,65745 + ,340 + ,26 + ,21 + ,38084 + ,50 + ,48 + ,675 + ,56653 + ,168 + ,38 + ,18 + ,27717 + ,30 + ,29 + ,1241 + ,158399 + ,443 + ,23 + ,18 + ,32928 + ,30 + ,28 + ,676 + ,46455 + ,204 + ,22 + ,17 + ,11342 + ,34 + ,34 + ,1049 + ,73624 + ,367 + ,30 + ,17 + ,19499 + ,33 + ,33 + ,620 + ,38395 + ,210 + ,16 + ,16 + ,16380 + ,34 + ,34 + ,1081 + ,91899 + ,335 + ,18 + ,15 + ,36874 + ,37 + ,33 + ,1688 + ,139526 + ,364 + ,28 + ,21 + ,48259 + ,83 + ,80 + ,736 + ,52164 + ,178 + ,32 + ,16 + ,16734 + ,32 + ,32 + ,617 + ,51567 + ,206 + ,21 + ,14 + ,28207 + ,30 + ,30 + ,812 + ,70551 + ,279 + ,23 + ,15 + ,30143 + ,43 + ,41 + ,1051 + ,84856 + ,387 + ,29 + ,17 + ,41369 + ,41 + ,41 + ,1656 + ,102538 + ,490 + ,50 + ,15 + ,45833 + ,51 + ,51 + ,705 + ,86678 + ,238 + ,12 + ,15 + ,29156 + ,19 + ,18 + ,945 + ,85709 + ,343 + ,21 + ,10 + ,35944 + ,37 + ,34 + ,554 + ,34662 + ,232 + ,18 + ,6 + ,36278 + ,33 + ,31 + ,1597 + ,150580 + ,530 + ,27 + ,22 + ,45588 + ,41 + ,39 + ,982 + ,99611 + ,291 + ,41 + ,21 + ,45097 + ,54 + ,54 + ,222 + ,19349 + ,67 + ,13 + ,1 + ,3895 + ,14 + ,14 + ,1212 + ,99373 + ,397 + ,12 + ,18 + ,28394 + ,25 + ,24 + ,1143 + ,86230 + ,467 + ,21 + ,17 + ,18632 + ,25 + ,24 + ,435 + ,30837 + ,178 + ,8 + ,4 + ,2325 + ,8 + ,8 + ,532 + ,31706 + ,175 + ,26 + ,10 + ,25139 + ,26 + ,26 + ,882 + ,89806 + ,299 + ,27 + ,16 + ,27975 + ,20 + ,19 + ,608 + ,62088 + ,154 + ,13 + ,16 + ,14483 + ,11 + ,11 + ,459 + ,40151 + ,106 + ,16 + ,9 + ,13127 + ,14 + ,14 + ,578 + ,27634 + ,189 + ,2 + ,16 + ,5839 + ,3 + ,1 + ,826 + ,76990 + ,194 + ,42 + ,17 + ,24069 + ,40 + ,39 + ,509 + ,37460 + ,135 + ,5 + ,7 + ,3738 + ,5 + ,5 + ,717 + ,54157 + ,201 + ,37 + ,15 + ,18625 + ,38 + ,37 + ,637 + ,49862 + ,207 + ,17 + ,14 + ,36341 + ,32 + ,32 + ,857 + ,84337 + ,280 + ,38 + ,14 + ,24548 + ,41 + ,38 + ,830 + ,64175 + ,260 + ,37 + ,18 + ,21792 + ,46 + ,47 + ,652 + ,59382 + ,227 + ,29 + ,12 + ,26263 + ,47 + ,47 + ,707 + ,119308 + ,239 + ,32 + ,16 + ,23686 + ,37 + ,37 + ,954 + ,76702 + ,333 + ,35 + ,21 + ,49303 + ,51 + ,51 + ,1461 + ,103425 + ,428 + ,17 + ,19 + ,25659 + ,49 + ,45 + ,672 + ,70344 + ,230 + ,20 + ,16 + ,28904 + ,21 + ,21 + ,778 + ,43410 + ,292 + ,7 + ,1 + ,2781 + ,1 + ,1 + ,1141 + ,104838 + ,350 + ,46 + ,16 + ,29236 + ,44 + ,42 + ,680 + ,62215 + ,186 + ,24 + ,10 + ,19546 + ,26 + ,26 + ,1090 + ,69304 + ,326 + ,40 + ,19 + ,22818 + ,21 + ,21 + ,616 + ,53117 + ,155 + ,3 + ,12 + ,32689 + ,4 + ,4 + ,285 + ,19764 + ,75 + ,10 + ,2 + ,5752 + ,10 + ,10 + ,1145 + ,86680 + ,361 + ,37 + ,14 + ,22197 + ,43 + ,43 + ,733 + ,84105 + ,261 + ,17 + ,17 + ,20055 + ,34 + ,34 + ,888 + ,77945 + ,299 + ,28 + ,19 + ,25272 + ,32 + ,31 + ,849 + ,89113 + ,300 + ,19 + ,14 + ,82206 + ,20 + ,19 + ,1182 + ,91005 + ,450 + ,29 + ,11 + ,32073 + ,34 + ,34 + ,528 + ,40248 + ,183 + ,8 + ,4 + ,5444 + ,6 + ,6 + ,642 + ,64187 + ,238 + ,10 + ,16 + ,20154 + ,12 + ,11 + ,947 + ,50857 + ,165 + ,15 + ,20 + ,36944 + ,24 + ,24 + ,819 + ,56613 + ,234 + ,15 + ,12 + ,8019 + ,16 + ,16 + ,757 + ,62792 + ,176 + ,28 + ,15 + ,30884 + ,72 + ,72 + ,894 + ,72535 + ,329 + ,17 + ,16 + ,19540 + ,27 + ,21) + ,dim=c(8 + ,289) + ,dimnames=list(c('time_in_rfc' + ,'pageviews' + ,'compendium_views_info' + ,'blogged_computations' + ,'compendiums_reviewed' + ,'totale_size' + ,'totale_hyperlinks' + ,'totale_blogs') + ,1:289)) > y <- array(NA,dim=c(8,289),dimnames=list(c('time_in_rfc','pageviews','compendium_views_info','blogged_computations','compendiums_reviewed','totale_size','totale_hyperlinks','totale_blogs'),1:289)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par4 = 'no' > par3 = '3' > par2 = 'none' > par1 = '5' > library(party) Loading required package: survival Loading required package: splines Loading required package: grid Loading required package: modeltools Loading required package: stats4 Loading required package: coin Loading required package: mvtnorm Loading required package: zoo Loading required package: sandwich Loading required package: strucchange Loading required package: vcd Loading required package: MASS Loading required package: colorspace > library(Hmisc) Attaching package: 'Hmisc' The following object(s) are masked from 'package:survival': untangle.specials The following object(s) are masked from 'package:base': format.pval, round.POSIXt, trunc.POSIXt, units > par1 <- as.numeric(par1) > par3 <- as.numeric(par3) > x <- data.frame(t(y)) > is.data.frame(x) [1] TRUE > x <- x[!is.na(x[,par1]),] > k <- length(x[1,]) > n <- length(x[,1]) > colnames(x)[par1] [1] "compendiums_reviewed" > x[,par1] [1] 30 28 38 30 22 26 25 18 11 26 25 38 44 30 40 34 47 30 31 23 36 36 30 25 39 [26] 34 31 31 33 25 33 35 42 43 30 33 13 32 36 0 28 14 17 32 30 35 20 28 28 39 [51] 34 26 39 39 33 28 4 39 18 14 29 44 21 16 28 35 28 38 23 36 32 29 25 27 36 [76] 28 23 40 23 40 28 34 33 28 34 30 33 22 38 26 35 8 24 29 20 29 45 37 33 33 [101] 25 32 29 28 28 31 52 21 24 41 33 32 19 20 31 31 32 18 23 17 20 12 17 30 31 [126] 10 13 22 42 1 9 32 11 25 36 31 0 24 13 8 13 19 18 33 40 22 38 24 8 35 [151] 43 43 14 41 38 45 31 13 28 31 40 30 16 37 30 35 32 27 20 18 31 31 21 39 41 [176] 13 32 18 39 14 7 17 0 30 37 0 5 1 16 32 24 17 11 24 22 12 19 13 17 15 [201] 16 24 15 17 18 20 16 16 18 22 8 17 18 16 23 22 13 13 16 16 20 22 17 18 17 [226] 12 7 17 14 23 17 14 15 17 21 18 18 17 17 16 15 21 16 14 15 17 15 15 10 6 [251] 22 21 1 18 17 4 10 16 16 9 16 17 7 15 14 14 18 12 16 21 19 16 1 16 10 [276] 19 12 2 14 17 19 14 11 4 16 20 12 15 16 > 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]) 0 1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 4 4 1 3 1 1 3 4 2 4 4 6 9 11 9 19 19 14 6 8 7 9 7 7 7 4 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 52 2 13 5 12 12 10 10 5 6 6 3 6 7 5 3 2 3 2 2 1 1 > colnames(x) [1] "time_in_rfc" "pageviews" "compendium_views_info" [4] "blogged_computations" "compendiums_reviewed" "totale_size" [7] "totale_hyperlinks" "totale_blogs" > colnames(x)[par1] [1] "compendiums_reviewed" > x[,par1] [1] 30 28 38 30 22 26 25 18 11 26 25 38 44 30 40 34 47 30 31 23 36 36 30 25 39 [26] 34 31 31 33 25 33 35 42 43 30 33 13 32 36 0 28 14 17 32 30 35 20 28 28 39 [51] 34 26 39 39 33 28 4 39 18 14 29 44 21 16 28 35 28 38 23 36 32 29 25 27 36 [76] 28 23 40 23 40 28 34 33 28 34 30 33 22 38 26 35 8 24 29 20 29 45 37 33 33 [101] 25 32 29 28 28 31 52 21 24 41 33 32 19 20 31 31 32 18 23 17 20 12 17 30 31 [126] 10 13 22 42 1 9 32 11 25 36 31 0 24 13 8 13 19 18 33 40 22 38 24 8 35 [151] 43 43 14 41 38 45 31 13 28 31 40 30 16 37 30 35 32 27 20 18 31 31 21 39 41 [176] 13 32 18 39 14 7 17 0 30 37 0 5 1 16 32 24 17 11 24 22 12 19 13 17 15 [201] 16 24 15 17 18 20 16 16 18 22 8 17 18 16 23 22 13 13 16 16 20 22 17 18 17 [226] 12 7 17 14 23 17 14 15 17 21 18 18 17 17 16 15 21 16 14 15 17 15 15 10 6 [251] 22 21 1 18 17 4 10 16 16 9 16 17 7 15 14 14 18 12 16 21 19 16 1 16 10 [276] 19 12 2 14 17 19 14 11 4 16 20 12 15 16 > if (par2 == 'none') { + m <- ctree(as.formula(paste(colnames(x)[par1],' ~ .',sep='')),data = x) + } > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/rcomp/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="/var/wessaorg/rcomp/tmp/1hzyo1323895647.tab") + } + } > m Conditional inference tree with 6 terminal nodes Response: compendiums_reviewed Inputs: time_in_rfc, pageviews, compendium_views_info, blogged_computations, totale_size, totale_hyperlinks, totale_blogs Number of observations: 289 1) blogged_computations <= 54; criterion = 1, statistic = 167.343 2) totale_size <= 56622; criterion = 1, statistic = 66.676 3) totale_size <= 8773; criterion = 1, statistic = 42.98 4)* weights = 19 3) totale_size > 8773 5) pageviews <= 108446; criterion = 0.998, statistic = 13.063 6)* weights = 101 5) pageviews > 108446 7)* weights = 29 2) totale_size > 56622 8)* weights = 25 1) blogged_computations > 54 9) blogged_computations <= 74; criterion = 1, statistic = 19.205 10)* weights = 35 9) blogged_computations > 74 11)* weights = 80 > postscript(file="/var/wessaorg/rcomp/tmp/2hnms1323895647.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(m) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/36syj1323895647.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(x[,par1] ~ as.factor(where(m)),main='Response by Terminal Node',xlab='Terminal Node',ylab='Response') > dev.off() null device 1 > 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) + } Actuals Forecasts Residuals 1 30 34.362500 -4.36250000 2 28 28.885714 -0.88571429 3 38 28.885714 9.11428571 4 30 34.362500 -4.36250000 5 22 19.931034 2.06896552 6 26 27.680000 -1.68000000 7 25 34.362500 -9.36250000 8 18 15.881188 2.11881188 9 11 15.881188 -4.88118812 10 26 27.680000 -1.68000000 11 25 28.885714 -3.88571429 12 38 34.362500 3.63750000 13 44 34.362500 9.63750000 14 30 27.680000 2.32000000 15 40 34.362500 5.63750000 16 34 28.885714 5.11428571 17 47 34.362500 12.63750000 18 30 34.362500 -4.36250000 19 31 34.362500 -3.36250000 20 23 34.362500 -11.36250000 21 36 34.362500 1.63750000 22 36 34.362500 1.63750000 23 30 34.362500 -4.36250000 24 25 27.680000 -2.68000000 25 39 34.362500 4.63750000 26 34 34.362500 -0.36250000 27 31 28.885714 2.11428571 28 31 34.362500 -3.36250000 29 33 34.362500 -1.36250000 30 25 19.931034 5.06896552 31 33 34.362500 -1.36250000 32 35 34.362500 0.63750000 33 42 27.680000 14.32000000 34 43 34.362500 8.63750000 35 30 27.680000 2.32000000 36 33 34.362500 -1.36250000 37 13 15.881188 -2.88118812 38 32 28.885714 3.11428571 39 36 34.362500 1.63750000 40 0 5.263158 -5.26315789 41 28 28.885714 -0.88571429 42 14 15.881188 -1.88118812 43 17 15.881188 1.11881188 44 32 34.362500 -2.36250000 45 30 34.362500 -4.36250000 46 35 28.885714 6.11428571 47 20 28.885714 -8.88571429 48 28 28.885714 -0.88571429 49 28 19.931034 8.06896552 50 39 27.680000 11.32000000 51 34 34.362500 -0.36250000 52 26 15.881188 10.11881188 53 39 34.362500 4.63750000 54 39 34.362500 4.63750000 55 33 34.362500 -1.36250000 56 28 34.362500 -6.36250000 57 4 5.263158 -1.26315789 58 39 34.362500 4.63750000 59 18 15.881188 2.11881188 60 14 15.881188 -1.88118812 61 29 34.362500 -5.36250000 62 44 34.362500 9.63750000 63 21 34.362500 -13.36250000 64 16 15.881188 0.11881188 65 28 34.362500 -6.36250000 66 35 34.362500 0.63750000 67 28 34.362500 -6.36250000 68 38 34.362500 3.63750000 69 23 34.362500 -11.36250000 70 36 28.885714 7.11428571 71 32 28.885714 3.11428571 72 29 27.680000 1.32000000 73 25 28.885714 -3.88571429 74 27 28.885714 -1.88571429 75 36 34.362500 1.63750000 76 28 34.362500 -6.36250000 77 23 34.362500 -11.36250000 78 40 34.362500 5.63750000 79 23 15.881188 7.11881188 80 40 28.885714 11.11428571 81 28 28.885714 -0.88571429 82 34 34.362500 -0.36250000 83 33 34.362500 -1.36250000 84 28 34.362500 -6.36250000 85 34 28.885714 5.11428571 86 30 34.362500 -4.36250000 87 33 28.885714 4.11428571 88 22 19.931034 2.06896552 89 38 34.362500 3.63750000 90 26 19.931034 6.06896552 91 35 34.362500 0.63750000 92 8 15.881188 -7.88118812 93 24 19.931034 4.06896552 94 29 28.885714 0.11428571 95 20 19.931034 0.06896552 96 29 28.885714 0.11428571 97 45 34.362500 10.63750000 98 37 34.362500 2.63750000 99 33 28.885714 4.11428571 100 33 34.362500 -1.36250000 101 25 19.931034 5.06896552 102 32 34.362500 -2.36250000 103 29 28.885714 0.11428571 104 28 28.885714 -0.88571429 105 28 34.362500 -6.36250000 106 31 34.362500 -3.36250000 107 52 34.362500 17.63750000 108 21 15.881188 5.11881188 109 24 34.362500 -10.36250000 110 41 34.362500 6.63750000 111 33 34.362500 -1.36250000 112 32 19.931034 12.06896552 113 19 15.881188 3.11881188 114 20 28.885714 -8.88571429 115 31 34.362500 -3.36250000 116 31 34.362500 -3.36250000 117 32 34.362500 -2.36250000 118 18 19.931034 -1.93103448 119 23 27.680000 -4.68000000 120 17 15.881188 1.11881188 121 20 28.885714 -8.88571429 122 12 15.881188 -3.88118812 123 17 19.931034 -2.93103448 124 30 34.362500 -4.36250000 125 31 27.680000 3.32000000 126 10 15.881188 -5.88118812 127 13 15.881188 -2.88118812 128 22 28.885714 -6.88571429 129 42 34.362500 7.63750000 130 1 5.263158 -4.26315789 131 9 15.881188 -6.88118812 132 32 34.362500 -2.36250000 133 11 15.881188 -4.88118812 134 25 15.881188 9.11881188 135 36 28.885714 7.11428571 136 31 34.362500 -3.36250000 137 0 5.263158 -5.26315789 138 24 28.885714 -4.88571429 139 13 15.881188 -2.88118812 140 8 15.881188 -7.88118812 141 13 15.881188 -2.88118812 142 19 28.885714 -9.88571429 143 18 15.881188 2.11881188 144 33 34.362500 -1.36250000 145 40 28.885714 11.11428571 146 22 15.881188 6.11881188 147 38 27.680000 10.32000000 148 24 27.680000 -3.68000000 149 8 5.263158 2.73684211 150 35 27.680000 7.32000000 151 43 34.362500 8.63750000 152 43 27.680000 15.32000000 153 14 15.881188 -1.88118812 154 41 34.362500 6.63750000 155 38 34.362500 3.63750000 156 45 34.362500 10.63750000 157 31 28.885714 2.11428571 158 13 15.881188 -2.88118812 159 28 27.680000 0.32000000 160 31 28.885714 2.11428571 161 40 34.362500 5.63750000 162 30 27.680000 2.32000000 163 16 19.931034 -3.93103448 164 37 34.362500 2.63750000 165 30 19.931034 10.06896552 166 35 34.362500 0.63750000 167 32 28.885714 3.11428571 168 27 27.680000 -0.68000000 169 20 19.931034 0.06896552 170 18 27.680000 -9.68000000 171 31 34.362500 -3.36250000 172 31 34.362500 -3.36250000 173 21 19.931034 1.06896552 174 39 34.362500 4.63750000 175 41 34.362500 6.63750000 176 13 19.931034 -6.93103448 177 32 34.362500 -2.36250000 178 18 15.881188 2.11881188 179 39 34.362500 4.63750000 180 14 19.931034 -5.93103448 181 7 15.881188 -8.88118812 182 17 28.885714 -11.88571429 183 0 5.263158 -5.26315789 184 30 27.680000 2.32000000 185 37 34.362500 2.63750000 186 0 5.263158 -5.26315789 187 5 5.263158 -0.26315789 188 1 5.263158 -4.26315789 189 16 19.931034 -3.93103448 190 32 15.881188 16.11881188 191 24 27.680000 -3.68000000 192 17 15.881188 1.11881188 193 11 15.881188 -4.88118812 194 24 15.881188 8.11881188 195 22 27.680000 -5.68000000 196 12 19.931034 -7.93103448 197 19 15.881188 3.11881188 198 13 27.680000 -14.68000000 199 17 15.881188 1.11881188 200 15 15.881188 -0.88118812 201 16 15.881188 0.11881188 202 24 15.881188 8.11881188 203 15 19.931034 -4.93103448 204 17 15.881188 1.11881188 205 18 15.881188 2.11881188 206 20 15.881188 4.11881188 207 16 15.881188 0.11881188 208 16 19.931034 -3.93103448 209 18 19.931034 -1.93103448 210 22 19.931034 2.06896552 211 8 15.881188 -7.88118812 212 17 19.931034 -2.93103448 213 18 15.881188 2.11881188 214 16 15.881188 0.11881188 215 23 15.881188 7.11881188 216 22 15.881188 6.11881188 217 13 15.881188 -2.88118812 218 13 15.881188 -2.88118812 219 16 15.881188 0.11881188 220 16 15.881188 0.11881188 221 20 15.881188 4.11881188 222 22 27.680000 -5.68000000 223 17 28.885714 -11.88571429 224 18 15.881188 2.11881188 225 17 5.263158 11.73684211 226 12 19.931034 -7.93103448 227 7 15.881188 -8.88118812 228 17 15.881188 1.11881188 229 14 15.881188 -1.88118812 230 23 27.680000 -4.68000000 231 17 5.263158 11.73684211 232 14 15.881188 -1.88118812 233 15 15.881188 -0.88118812 234 17 15.881188 1.11881188 235 21 15.881188 5.11881188 236 18 15.881188 2.11881188 237 18 19.931034 -1.93103448 238 17 15.881188 1.11881188 239 17 15.881188 1.11881188 240 16 15.881188 0.11881188 241 15 15.881188 -0.88118812 242 21 19.931034 1.06896552 243 16 15.881188 0.11881188 244 14 15.881188 -1.88118812 245 15 15.881188 -0.88118812 246 17 15.881188 1.11881188 247 15 15.881188 -0.88118812 248 15 15.881188 -0.88118812 249 10 15.881188 -5.88118812 250 6 15.881188 -9.88118812 251 22 19.931034 2.06896552 252 21 15.881188 5.11881188 253 1 5.263158 -4.26315789 254 18 15.881188 2.11881188 255 17 15.881188 1.11881188 256 4 5.263158 -1.26315789 257 10 15.881188 -5.88118812 258 16 15.881188 0.11881188 259 16 15.881188 0.11881188 260 9 15.881188 -6.88118812 261 16 5.263158 10.73684211 262 17 15.881188 1.11881188 263 7 5.263158 1.73684211 264 15 15.881188 -0.88118812 265 14 15.881188 -1.88118812 266 14 15.881188 -1.88118812 267 18 15.881188 2.11881188 268 12 15.881188 -3.88118812 269 16 19.931034 -3.93103448 270 21 15.881188 5.11881188 271 19 15.881188 3.11881188 272 16 15.881188 0.11881188 273 1 5.263158 -4.26315789 274 16 15.881188 0.11881188 275 10 15.881188 -5.88118812 276 19 15.881188 3.11881188 277 12 15.881188 -3.88118812 278 2 5.263158 -3.26315789 279 14 15.881188 -1.88118812 280 17 15.881188 1.11881188 281 19 15.881188 3.11881188 282 14 27.680000 -13.68000000 283 11 15.881188 -4.88118812 284 4 5.263158 -1.26315789 285 16 15.881188 0.11881188 286 20 15.881188 4.11881188 287 12 5.263158 6.73684211 288 15 15.881188 -0.88118812 289 16 15.881188 0.11881188 > if (par2 != 'none') { + print(cbind(as.factor(x[,par1]),predict(m))) + myt <- table(as.factor(x[,par1]),predict(m)) + print(myt) + } > postscript(file="/var/wessaorg/rcomp/tmp/40pr51323895647.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > 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() null device 1 > 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="/var/wessaorg/rcomp/tmp/5jief1323895647.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="/var/wessaorg/rcomp/tmp/6i3s61323895647.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="/var/wessaorg/rcomp/tmp/78m441323895647.tab") + } > > try(system("convert tmp/2hnms1323895647.ps tmp/2hnms1323895647.png",intern=TRUE)) character(0) > try(system("convert tmp/36syj1323895647.ps tmp/36syj1323895647.png",intern=TRUE)) character(0) > try(system("convert tmp/40pr51323895647.ps tmp/40pr51323895647.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 5.600 0.301 5.901