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(112285 + ,396 + ,81 + ,30 + ,94 + ,210907 + ,24188 + ,144 + ,145 + ,84786 + ,297 + ,55 + ,28 + ,103 + ,120982 + ,18273 + ,103 + ,101 + ,83123 + ,559 + ,50 + ,38 + ,93 + ,176508 + ,14130 + ,98 + ,98 + ,101193 + ,967 + ,125 + ,30 + ,103 + ,179321 + ,32287 + ,135 + ,132 + ,38361 + ,270 + ,40 + ,22 + ,51 + ,123185 + ,8654 + ,61 + ,60 + ,68504 + ,143 + ,37 + ,26 + ,70 + ,52746 + ,9245 + ,39 + ,38 + ,119182 + ,1562 + ,63 + ,25 + ,91 + ,385534 + ,33251 + ,150 + ,144 + ,22807 + ,109 + ,44 + ,18 + ,22 + ,33170 + ,1271 + ,5 + ,5 + ,17140 + ,371 + ,88 + ,11 + ,38 + ,101645 + ,5279 + ,28 + ,28 + ,116174 + ,656 + ,66 + ,26 + ,93 + ,149061 + ,27101 + ,84 + ,84 + ,57635 + ,511 + ,57 + ,25 + ,60 + ,165446 + ,16373 + ,80 + ,79 + ,66198 + ,655 + ,74 + ,38 + ,123 + ,237213 + ,19716 + ,130 + ,127 + ,71701 + ,465 + ,49 + ,44 + ,148 + ,173326 + ,17753 + ,82 + ,78 + ,57793 + ,525 + ,52 + ,30 + ,90 + ,133131 + ,9028 + ,60 + ,60 + ,80444 + ,885 + ,88 + ,40 + ,124 + ,258873 + ,18653 + ,131 + ,131 + ,53855 + ,497 + ,36 + ,34 + ,70 + ,180083 + ,8828 + ,84 + ,84 + ,97668 + ,1436 + ,108 + ,47 + ,168 + ,324799 + ,29498 + ,140 + ,133 + ,133824 + ,612 + ,43 + ,30 + ,115 + ,230964 + ,27563 + ,151 + ,150 + ,101481 + ,865 + ,75 + ,31 + ,71 + ,236785 + ,18293 + ,91 + ,91 + ,99645 + ,385 + ,32 + ,23 + ,66 + ,135473 + ,22530 + ,138 + ,132 + ,114789 + ,567 + ,44 + ,36 + ,134 + ,202925 + ,15977 + ,150 + ,136 + ,99052 + ,639 + ,85 + ,36 + ,117 + ,215147 + ,35082 + ,124 + ,124 + ,67654 + ,963 + ,86 + ,30 + ,108 + ,344297 + ,16116 + ,119 + ,118 + ,65553 + ,398 + ,56 + ,25 + ,84 + ,153935 + ,15849 + ,73 + ,70 + ,97500 + ,410 + ,50 + ,39 + ,156 + ,132943 + ,16026 + ,110 + ,107 + ,69112 + ,966 + ,135 + ,34 + ,120 + ,174724 + ,26569 + ,123 + ,119 + ,82753 + ,801 + ,63 + ,31 + ,114 + ,174415 + ,24785 + ,90 + ,89 + ,85323 + ,892 + ,81 + ,31 + ,94 + ,225548 + ,17569 + ,116 + ,112 + ,72654 + ,513 + ,52 + ,33 + ,120 + ,223632 + ,23825 + ,113 + ,108 + ,30727 + ,469 + ,44 + ,25 + ,81 + ,124817 + ,7869 + ,56 + ,52 + ,77873 + ,683 + ,113 + ,33 + ,110 + ,221698 + ,14975 + ,115 + ,112 + ,117478 + ,643 + ,39 + ,35 + ,133 + ,210767 + ,37791 + ,119 + ,116 + ,74007 + ,535 + ,73 + ,42 + ,122 + ,170266 + ,9605 + ,129 + ,123 + ,90183 + ,625 + ,48 + ,43 + ,158 + ,260561 + ,27295 + ,127 + ,125 + ,61542 + ,264 + ,33 + ,30 + ,109 + ,84853 + ,2746 + ,27 + ,27 + ,101494 + ,992 + ,59 + ,33 + ,124 + ,294424 + ,34461 + ,175 + ,162 + ,27570 + ,238 + ,41 + ,13 + ,39 + ,101011 + ,8098 + ,35 + ,32 + ,55813 + ,818 + ,69 + ,32 + ,92 + ,215641 + ,4787 + ,64 + ,64 + ,79215 + ,937 + ,64 + ,36 + ,126 + ,325107 + ,24919 + ,96 + ,92 + ,1423 + ,70 + ,1 + ,0 + ,0 + ,7176 + ,603 + ,0 + ,0 + ,55461 + ,507 + ,59 + ,28 + ,70 + ,167542 + ,16329 + ,84 + ,83 + ,31081 + ,260 + ,32 + ,14 + ,37 + ,106408 + ,12558 + ,41 + ,41 + ,22996 + ,503 + ,129 + ,17 + ,38 + ,96560 + ,7784 + ,47 + ,47 + ,83122 + ,927 + ,37 + ,32 + ,120 + ,265769 + ,28522 + ,126 + ,120 + ,70106 + ,1269 + ,31 + ,30 + ,93 + ,269651 + ,22265 + ,105 + ,105 + ,60578 + ,537 + ,65 + ,35 + ,95 + ,149112 + ,14459 + ,80 + ,79 + ,39992 + ,910 + ,107 + ,20 + ,77 + ,175824 + ,14526 + ,70 + ,65 + ,79892 + ,532 + ,74 + ,28 + ,90 + ,152871 + ,22240 + ,73 + ,70 + ,49810 + ,345 + ,54 + ,28 + ,80 + ,111665 + ,11802 + ,57 + ,55 + ,71570 + ,918 + ,76 + ,39 + ,31 + ,116408 + ,7623 + ,40 + ,39 + ,100708 + ,1635 + ,715 + ,34 + ,110 + ,362301 + ,11912 + ,68 + ,67 + ,33032 + ,330 + ,57 + ,26 + ,66 + ,78800 + ,7935 + ,21 + ,21 + ,82875 + ,557 + ,66 + ,39 + ,138 + ,183167 + ,18220 + ,127 + ,127 + ,139077 + ,1178 + ,106 + ,39 + ,133 + ,277965 + ,19199 + ,154 + ,152 + ,71595 + ,740 + ,54 + ,33 + ,113 + ,150629 + ,19918 + ,116 + ,113 + ,72260 + ,452 + ,32 + ,28 + ,100 + ,168809 + ,21884 + ,102 + ,99 + ,5950 + ,218 + ,20 + ,4 + ,7 + ,24188 + ,2694 + ,7 + ,7 + ,115762 + ,764 + ,71 + ,39 + ,140 + ,329267 + ,15808 + ,148 + ,141 + ,32551 + ,255 + ,21 + ,18 + ,61 + ,65029 + ,3597 + ,21 + ,21 + ,31701 + ,454 + ,70 + ,14 + ,41 + ,101097 + ,5296 + ,35 + ,35 + ,80670 + ,866 + ,112 + ,29 + ,96 + ,218946 + ,25239 + ,112 + ,109 + ,143558 + ,574 + ,66 + ,44 + ,164 + ,244052 + ,29801 + ,137 + ,133 + ,117105 + ,1276 + ,190 + ,21 + ,78 + ,341570 + ,18450 + ,135 + ,123 + ,23789 + ,379 + ,66 + ,16 + ,49 + ,103597 + ,7132 + ,26 + ,26 + ,120733 + ,825 + ,165 + ,28 + ,102 + ,233328 + ,34861 + ,230 + ,230 + ,105195 + ,798 + ,56 + ,35 + ,124 + ,256462 + ,35940 + ,181 + ,166 + ,73107 + ,663 + ,61 + ,28 + ,99 + ,206161 + ,16688 + ,71 + ,68 + ,132068 + ,1069 + ,53 + ,38 + ,129 + ,311473 + ,24683 + ,147 + ,147 + ,149193 + ,921 + ,127 + ,23 + ,62 + ,235800 + ,46230 + ,190 + ,179 + ,46821 + ,858 + ,63 + ,36 + ,73 + ,177939 + ,10387 + ,64 + ,61 + ,87011 + ,711 + ,38 + ,32 + ,114 + ,207176 + ,21436 + ,105 + ,101 + ,95260 + ,503 + ,50 + ,29 + ,99 + ,196553 + ,30546 + ,107 + ,108 + ,55183 + ,382 + ,52 + ,25 + ,70 + ,174184 + ,19746 + ,94 + ,90 + ,106671 + ,464 + ,42 + ,27 + ,104 + ,143246 + ,15977 + ,116 + ,114 + ,73511 + ,717 + ,76 + ,36 + ,116 + ,187559 + ,22583 + ,106 + ,103 + ,92945 + ,690 + ,67 + ,28 + ,91 + ,187681 + ,17274 + ,143 + ,142 + ,78664 + ,462 + ,50 + ,23 + ,74 + ,119016 + ,16469 + ,81 + ,79 + ,70054 + ,657 + ,53 + ,40 + ,138 + ,182192 + ,14251 + ,89 + ,88 + ,22618 + ,385 + ,39 + ,23 + ,67 + ,73566 + ,3007 + ,26 + ,25 + ,74011 + ,577 + ,50 + ,40 + ,151 + ,194979 + ,16851 + ,84 + ,83 + ,83737 + ,619 + ,77 + ,28 + ,72 + ,167488 + ,21113 + ,113 + ,113 + ,69094 + ,479 + ,57 + ,34 + ,120 + ,143756 + ,17401 + ,120 + ,118 + ,93133 + ,817 + ,73 + ,33 + ,115 + ,275541 + ,23958 + ,110 + ,110 + ,95536 + ,752 + ,34 + ,28 + ,105 + ,243199 + ,23567 + ,134 + ,129 + ,225920 + ,430 + ,39 + ,34 + ,104 + ,182999 + ,13065 + ,54 + ,51 + ,62133 + ,451 + ,46 + ,30 + ,108 + ,135649 + ,15358 + ,96 + ,93 + ,61370 + ,537 + ,63 + ,33 + ,98 + ,152299 + ,14587 + ,78 + ,76 + ,43836 + ,519 + ,35 + ,22 + ,69 + ,120221 + ,12770 + ,51 + ,49 + ,106117 + ,1000 + ,106 + ,38 + ,111 + ,346485 + ,24021 + ,121 + ,118 + ,38692 + ,637 + ,43 + ,26 + ,99 + ,145790 + ,9648 + ,38 + ,38 + ,84651 + ,465 + ,47 + ,35 + ,71 + ,193339 + ,20537 + ,145 + ,141 + ,56622 + ,437 + ,31 + ,8 + ,27 + ,80953 + ,7905 + ,59 + ,58 + ,15986 + ,711 + ,162 + ,24 + ,69 + ,122774 + ,4527 + ,27 + ,27 + ,95364 + ,299 + ,57 + ,29 + ,107 + ,130585 + ,30495 + ,91 + ,91 + ,26706 + ,248 + ,36 + ,20 + ,73 + ,112611 + ,7117 + ,48 + ,48 + ,89691 + ,1162 + ,263 + ,29 + ,107 + ,286468 + ,17719 + ,68 + ,63 + ,67267 + ,714 + ,78 + ,45 + ,93 + ,241066 + ,27056 + ,58 + ,56 + ,126846 + ,905 + ,63 + ,37 + ,129 + ,148446 + ,33473 + ,150 + ,144 + ,41140 + ,649 + ,54 + ,33 + ,69 + ,204713 + ,9758 + ,74 + ,73 + ,102860 + ,512 + ,63 + ,33 + ,118 + ,182079 + ,21115 + ,181 + ,168 + ,51715 + ,472 + ,77 + ,25 + ,73 + ,140344 + ,7236 + ,65 + ,64 + ,55801 + ,905 + ,79 + ,32 + ,119 + ,220516 + ,13790 + ,97 + ,97 + ,111813 + ,786 + ,110 + ,29 + ,104 + ,243060 + ,32902 + ,121 + ,117 + ,120293 + ,489 + ,56 + ,28 + ,107 + ,162765 + ,25131 + ,99 + ,100 + ,138599 + ,479 + ,56 + ,28 + ,99 + ,182613 + ,30910 + ,152 + ,149 + ,161647 + ,617 + ,43 + ,31 + ,90 + ,232138 + ,35947 + ,188 + ,187 + ,115929 + ,925 + ,111 + ,52 + ,197 + ,265318 + ,29848 + ,138 + ,127 + ,24266 + ,351 + ,71 + ,21 + ,36 + ,85574 + ,6943 + ,40 + ,37 + ,162901 + ,1144 + ,62 + ,24 + ,85 + ,310839 + ,42705 + ,254 + ,245 + ,109825 + ,669 + ,56 + ,41 + ,139 + ,225060 + ,31808 + ,87 + ,87 + ,129838 + ,707 + ,74 + ,33 + ,106 + ,232317 + ,26675 + ,178 + ,177 + ,37510 + ,458 + ,60 + ,32 + ,50 + ,144966 + ,8435 + ,51 + ,49 + ,43750 + ,214 + ,43 + ,19 + ,64 + ,43287 + ,7409 + ,49 + ,49 + ,40652 + ,599 + ,68 + ,20 + ,31 + ,155754 + ,14993 + ,73 + ,73 + ,87771 + ,572 + ,53 + ,31 + ,63 + ,164709 + ,36867 + ,176 + ,177 + ,85872 + ,897 + ,87 + ,31 + ,92 + ,201940 + ,33835 + ,94 + ,94 + ,89275 + ,819 + ,46 + ,32 + ,106 + ,235454 + ,24164 + ,120 + ,117 + ,44418 + ,720 + ,105 + ,18 + ,63 + ,220801 + ,12607 + ,66 + ,60 + ,192565 + ,273 + ,32 + ,23 + ,69 + ,99466 + ,22609 + ,56 + ,55 + ,35232 + ,508 + ,133 + ,17 + ,41 + ,92661 + ,5892 + ,39 + ,39 + ,40909 + ,506 + ,79 + ,20 + ,56 + ,133328 + ,17014 + ,66 + ,64 + ,13294 + ,451 + ,51 + ,12 + ,25 + ,61361 + ,5394 + ,27 + ,26 + ,32387 + ,699 + ,207 + ,17 + ,65 + ,125930 + ,9178 + ,65 + ,64 + ,140867 + ,407 + ,67 + ,30 + ,93 + ,100750 + ,6440 + ,58 + ,58 + ,120662 + ,465 + ,47 + ,31 + ,114 + ,224549 + ,21916 + ,98 + ,95 + ,21233 + ,245 + ,34 + ,10 + ,38 + ,82316 + ,4011 + ,25 + ,25 + ,44332 + ,370 + ,66 + ,13 + ,44 + ,102010 + ,5818 + ,26 + ,26 + ,61056 + ,316 + ,76 + ,22 + ,87 + ,101523 + ,18647 + ,77 + ,76 + ,101338 + ,603 + ,65 + ,42 + ,110 + ,243511 + ,20556 + ,130 + ,129 + ,1168 + ,154 + ,9 + ,1 + ,0 + ,22938 + ,238 + ,11 + ,11 + ,13497 + ,229 + ,42 + ,9 + ,27 + ,41566 + ,70 + ,2 + ,2 + ,65567 + ,577 + ,45 + ,32 + ,83 + ,152474 + ,22392 + ,101 + ,101 + ,25162 + ,192 + ,25 + ,11 + ,30 + ,61857 + ,3913 + ,31 + ,28 + ,32334 + ,617 + ,115 + ,25 + ,80 + ,99923 + ,12237 + ,36 + ,36 + ,40735 + ,411 + ,97 + ,36 + ,98 + ,132487 + ,8388 + ,120 + ,89 + ,91413 + ,975 + ,53 + ,31 + ,82 + ,317394 + ,22120 + ,195 + ,193 + ,855 + ,146 + ,2 + ,0 + ,0 + ,21054 + ,338 + ,4 + ,4 + ,97068 + ,705 + ,52 + ,24 + ,60 + ,209641 + ,11727 + ,89 + ,84 + ,44339 + ,184 + ,44 + ,13 + ,28 + ,22648 + ,3704 + ,24 + ,23 + ,14116 + ,200 + ,22 + ,8 + ,9 + ,31414 + ,3988 + ,39 + ,39 + ,10288 + ,274 + ,35 + ,13 + ,33 + ,46698 + ,3030 + ,14 + ,14 + ,65622 + ,502 + ,74 + ,19 + ,59 + ,131698 + ,13520 + ,78 + ,78 + ,16563 + ,382 + ,103 + ,18 + ,49 + ,91735 + ,1421 + ,15 + ,14 + ,76643 + ,964 + ,144 + ,33 + ,115 + ,244749 + ,20923 + ,106 + ,101 + ,110681 + ,537 + ,60 + ,40 + ,140 + ,184510 + ,20237 + ,83 + ,82 + ,29011 + ,438 + ,134 + ,22 + ,49 + ,79863 + ,3219 + ,24 + ,24 + ,92696 + ,369 + ,89 + ,38 + ,120 + ,128423 + ,3769 + ,37 + ,36 + ,94785 + ,417 + ,42 + ,24 + ,66 + ,97839 + ,12252 + ,77 + ,75 + ,8773 + ,276 + ,52 + ,8 + ,21 + ,38214 + ,1888 + ,16 + ,16 + ,83209 + ,514 + ,98 + ,35 + ,124 + ,151101 + ,14497 + ,56 + ,55 + ,93815 + ,822 + ,99 + ,43 + ,152 + ,272458 + ,28864 + ,132 + ,131 + ,86687 + ,389 + ,52 + ,43 + ,139 + ,172494 + ,21721 + ,144 + ,131 + ,34553 + ,466 + ,29 + ,14 + ,38 + ,108043 + ,4821 + ,40 + ,39 + ,105547 + ,1255 + ,125 + ,41 + ,144 + ,328107 + ,33644 + ,153 + ,144 + ,103487 + ,694 + ,106 + ,38 + ,120 + ,250579 + ,15923 + ,143 + ,139 + ,213688 + ,1024 + ,95 + ,45 + ,160 + ,351067 + ,42935 + ,220 + ,211 + ,71220 + ,400 + ,40 + ,31 + ,114 + ,158015 + ,18864 + ,79 + ,78 + ,23517 + ,397 + ,140 + ,13 + ,39 + ,98866 + ,4977 + ,50 + ,50 + ,56926 + ,350 + ,43 + ,28 + ,78 + ,85439 + ,7785 + ,39 + ,39 + ,91721 + ,719 + ,128 + ,31 + ,119 + ,229242 + ,17939 + ,95 + ,90 + ,115168 + ,1277 + ,142 + ,40 + ,141 + ,351619 + ,23436 + ,169 + ,166 + ,111194 + ,356 + ,73 + ,30 + ,101 + ,84207 + ,325 + ,12 + ,12 + ,51009 + ,457 + ,72 + ,16 + ,56 + ,120445 + ,13539 + ,63 + ,57 + ,135777 + ,1402 + ,128 + ,37 + ,133 + ,324598 + ,34538 + ,134 + ,133 + ,51513 + ,600 + ,61 + ,30 + ,83 + ,131069 + ,12198 + ,69 + ,69 + ,74163 + ,480 + ,73 + ,35 + ,116 + ,204271 + ,26924 + ,119 + ,119 + ,51633 + ,595 + ,148 + ,32 + ,90 + ,165543 + ,12716 + ,119 + ,119 + ,75345 + ,436 + ,64 + ,27 + ,36 + ,141722 + ,8172 + ,75 + ,65 + ,33416 + ,230 + ,45 + ,20 + ,50 + ,116048 + ,10855 + ,63 + ,61 + ,83305 + ,651 + ,58 + ,18 + ,61 + ,250047 + ,11932 + ,55 + ,49 + ,98952 + ,1367 + ,97 + ,31 + ,97 + ,299775 + ,14300 + ,103 + ,101 + ,102372 + ,564 + ,50 + ,31 + ,98 + ,195838 + ,25515 + ,197 + ,196 + ,37238 + ,716 + ,37 + ,21 + ,78 + ,173260 + ,2805 + ,16 + ,15 + ,103772 + ,747 + ,50 + ,39 + ,117 + ,254488 + ,29402 + ,140 + ,136 + ,123969 + ,467 + ,105 + ,41 + ,148 + ,104389 + ,16440 + ,89 + ,89 + ,27142 + ,671 + ,69 + ,13 + ,41 + ,136084 + ,11221 + ,40 + ,40 + ,135400 + ,861 + ,46 + ,32 + ,105 + ,199476 + ,28732 + ,125 + ,123 + ,21399 + ,319 + ,57 + ,18 + ,55 + ,92499 + ,5250 + ,21 + ,21 + ,130115 + ,612 + ,52 + ,39 + ,132 + ,224330 + ,28608 + ,167 + ,163 + ,24874 + ,433 + ,98 + ,14 + ,44 + ,135781 + ,8092 + ,32 + ,29 + ,34988 + ,434 + ,61 + ,7 + ,21 + ,74408 + ,4473 + ,36 + ,35 + ,45549 + ,503 + ,89 + ,17 + ,50 + ,81240 + ,1572 + ,13 + ,13 + ,6023 + ,85 + ,0 + ,0 + ,0 + ,14688 + ,2065 + ,5 + ,5 + ,64466 + ,564 + ,48 + ,30 + ,73 + ,181633 + ,14817 + ,96 + ,96 + ,54990 + ,824 + ,91 + ,37 + ,86 + ,271856 + ,16714 + ,151 + ,151 + ,1644 + ,74 + ,0 + ,0 + ,0 + ,7199 + ,556 + ,6 + ,6 + ,6179 + ,259 + ,7 + ,5 + ,13 + ,46660 + ,2089 + ,13 + ,13 + ,3926 + ,69 + ,3 + ,1 + ,4 + ,17547 + ,2658 + ,3 + ,3 + ,32755 + ,535 + ,54 + ,16 + ,57 + ,133368 + ,10695 + ,57 + ,56 + ,34777 + ,239 + ,70 + ,32 + ,48 + ,95227 + ,1669 + ,23 + ,23 + ,73224 + ,438 + ,36 + ,24 + ,46 + ,152601 + ,16267 + ,61 + ,57 + ,27114 + ,459 + ,37 + ,17 + ,48 + ,98146 + ,7768 + ,21 + ,14 + ,20760 + ,426 + ,123 + ,11 + ,32 + ,79619 + ,7252 + ,43 + ,43 + ,37636 + ,288 + ,247 + ,24 + ,68 + ,59194 + ,6387 + ,20 + ,20 + ,65461 + ,498 + ,46 + ,22 + ,87 + ,139942 + ,18715 + ,82 + ,72 + ,30080 + ,454 + ,72 + ,12 + ,43 + ,118612 + ,7936 + ,90 + ,87 + ,24094 + ,376 + ,41 + ,19 + ,67 + ,72880 + ,8643 + ,25 + ,21 + ,69008 + ,225 + ,24 + ,13 + ,46 + ,65475 + ,7294 + ,60 + ,56 + ,54968 + ,555 + ,45 + ,17 + ,46 + ,99643 + ,4570 + ,61 + ,59 + ,46090 + ,252 + ,33 + ,15 + ,56 + ,71965 + ,7185 + ,85 + ,82 + ,27507 + ,208 + ,27 + ,16 + ,48 + ,77272 + ,10058 + ,43 + ,43 + ,10672 + ,130 + ,36 + ,24 + ,44 + ,49289 + ,2342 + ,25 + ,25 + ,34029 + ,481 + ,87 + ,15 + ,60 + ,135131 + ,8509 + ,41 + ,38 + ,46300 + ,389 + ,90 + ,17 + ,65 + ,108446 + ,13275 + ,26 + ,25 + ,24760 + ,565 + ,114 + ,18 + ,55 + ,89746 + ,6816 + ,38 + ,38 + ,18779 + ,173 + ,31 + ,20 + ,38 + ,44296 + ,1930 + ,12 + ,12 + ,21280 + ,278 + ,45 + ,16 + ,52 + ,77648 + ,8086 + ,29 + ,29 + ,40662 + ,609 + ,69 + ,16 + ,60 + ,181528 + ,10737 + ,49 + ,47 + ,28987 + ,422 + ,51 + ,18 + ,54 + ,134019 + ,8033 + ,46 + ,45 + ,22827 + ,445 + ,34 + ,22 + ,86 + ,124064 + ,7058 + ,41 + ,40 + ,18513 + ,387 + ,60 + ,8 + ,24 + ,92630 + ,6782 + ,31 + ,30 + ,30594 + ,339 + ,45 + ,17 + ,52 + ,121848 + ,5401 + ,41 + ,41 + ,24006 + ,181 + ,54 + ,18 + ,49 + ,52915 + ,6521 + ,26 + ,25 + ,27913 + ,245 + ,25 + ,16 + ,61 + ,81872 + ,10856 + ,23 + ,23 + ,42744 + ,384 + ,38 + ,23 + ,61 + ,58981 + ,2154 + ,14 + ,14 + ,12934 + ,212 + ,52 + ,22 + ,81 + ,53515 + ,6117 + ,16 + ,16 + ,22574 + ,399 + ,67 + ,13 + ,43 + ,60812 + ,5238 + ,25 + ,26 + ,41385 + ,229 + ,74 + ,13 + ,40 + ,56375 + ,4820 + ,21 + ,21 + ,18653 + ,224 + ,38 + ,16 + ,40 + ,65490 + ,5615 + ,32 + ,27 + ,18472 + ,203 + ,30 + ,16 + ,56 + ,80949 + ,4272 + ,9 + ,9 + ,30976 + ,333 + ,26 + ,20 + ,68 + ,76302 + ,8702 + ,35 + ,33 + ,63339 + ,384 + ,67 + ,22 + ,79 + ,104011 + ,15340 + ,42 + ,42 + ,25568 + ,636 + ,132 + ,17 + ,47 + ,98104 + ,8030 + ,68 + ,68 + ,33747 + ,185 + ,42 + ,18 + ,57 + ,67989 + ,9526 + ,32 + ,32 + ,4154 + ,93 + ,35 + ,17 + ,41 + ,30989 + ,1278 + ,6 + ,6 + ,19474 + ,581 + ,118 + ,12 + ,29 + ,135458 + ,4236 + ,68 + ,67 + ,35130 + ,248 + ,68 + ,7 + ,3 + ,73504 + ,3023 + ,33 + ,33 + ,39067 + ,304 + ,43 + ,17 + ,60 + ,63123 + ,7196 + ,84 + ,77 + ,13310 + ,344 + ,76 + ,14 + ,30 + ,61254 + ,3394 + ,46 + ,46 + ,65892 + ,407 + ,64 + ,23 + ,79 + ,74914 + ,6371 + ,30 + ,30 + ,4143 + ,170 + ,48 + ,17 + ,47 + ,31774 + ,1574 + ,0 + ,0 + ,28579 + ,312 + ,64 + ,14 + ,40 + ,81437 + ,9620 + ,36 + ,36 + ,51776 + ,507 + ,56 + ,15 + ,48 + ,87186 + ,6978 + ,47 + ,46 + ,21152 + ,224 + ,71 + ,17 + ,36 + ,50090 + ,4911 + ,20 + ,18 + ,38084 + ,340 + ,75 + ,21 + ,42 + ,65745 + ,8645 + ,50 + ,48 + ,27717 + ,168 + ,39 + ,18 + ,49 + ,56653 + ,8987 + ,30 + ,29 + ,32928 + ,443 + ,42 + ,18 + ,57 + ,158399 + ,5544 + ,30 + ,28 + ,11342 + ,204 + ,39 + ,17 + ,12 + ,46455 + ,3083 + ,34 + ,34 + ,19499 + ,367 + ,93 + ,17 + ,40 + ,73624 + ,6909 + ,33 + ,33 + ,16380 + ,210 + ,38 + ,16 + ,43 + ,38395 + ,3189 + ,34 + ,34 + ,36874 + ,335 + ,60 + ,15 + ,33 + ,91899 + ,6745 + ,37 + ,33 + ,48259 + ,364 + ,71 + ,21 + ,77 + ,139526 + ,16724 + ,83 + ,80 + ,16734 + ,178 + ,52 + ,16 + ,43 + ,52164 + ,4850 + ,32 + ,32 + ,28207 + ,206 + ,27 + ,14 + ,45 + ,51567 + ,7025 + ,30 + ,30 + ,30143 + ,279 + ,59 + ,15 + ,47 + ,70551 + ,6047 + ,43 + ,41 + ,41369 + ,387 + ,40 + ,17 + ,43 + ,84856 + ,7377 + ,41 + ,41 + ,45833 + ,490 + ,79 + ,15 + ,45 + ,102538 + ,9078 + ,51 + ,51 + ,29156 + ,238 + ,44 + ,15 + ,50 + ,86678 + ,4605 + ,19 + ,18 + ,35944 + ,343 + ,65 + ,10 + ,35 + ,85709 + ,3238 + ,37 + ,34 + ,36278 + ,232 + ,10 + ,6 + ,7 + ,34662 + ,8100 + ,33 + ,31 + ,45588 + ,530 + ,124 + ,22 + ,71 + ,150580 + ,9653 + ,41 + ,39 + ,45097 + ,291 + ,81 + ,21 + ,67 + ,99611 + ,8914 + ,54 + ,54 + ,3895 + ,67 + ,15 + ,1 + ,0 + ,19349 + ,786 + ,14 + ,14 + ,28394 + ,397 + ,92 + ,18 + ,62 + ,99373 + ,6700 + ,25 + ,24 + ,18632 + ,467 + ,42 + ,17 + ,54 + ,86230 + ,5788 + ,25 + ,24 + ,2325 + ,178 + ,10 + ,4 + ,4 + ,30837 + ,593 + ,8 + ,8 + ,25139 + ,175 + ,24 + ,10 + ,25 + ,31706 + ,4506 + ,26 + ,26 + ,27975 + ,299 + ,64 + ,16 + ,40 + ,89806 + ,6382 + ,20 + ,19 + ,14483 + ,154 + ,45 + ,16 + ,38 + ,62088 + ,5621 + ,11 + ,11 + ,13127 + ,106 + ,22 + ,9 + ,19 + ,40151 + ,3997 + ,14 + ,14 + ,5839 + ,189 + ,56 + ,16 + ,17 + ,27634 + ,520 + ,3 + ,1 + ,24069 + ,194 + ,94 + ,17 + ,67 + ,76990 + ,8891 + ,40 + ,39 + ,3738 + ,135 + ,19 + ,7 + ,14 + ,37460 + ,999 + ,5 + ,5 + ,18625 + ,201 + ,35 + ,15 + ,30 + ,54157 + ,7067 + ,38 + ,37 + ,36341 + ,207 + ,32 + ,14 + ,54 + ,49862 + ,4639 + ,32 + ,32 + ,24548 + ,280 + ,35 + ,14 + ,35 + ,84337 + ,5654 + ,41 + ,38 + ,21792 + ,260 + ,48 + ,18 + ,59 + ,64175 + ,6928 + ,46 + ,47 + ,26263 + ,227 + ,49 + ,12 + ,24 + ,59382 + ,1514 + ,47 + ,47 + ,23686 + ,239 + ,48 + ,16 + ,58 + ,119308 + ,9238 + ,37 + ,37 + ,49303 + ,333 + ,62 + ,21 + ,42 + ,76702 + ,8204 + ,51 + ,51 + ,25659 + ,428 + ,96 + ,19 + ,46 + ,103425 + ,5926 + ,49 + ,45 + ,28904 + ,230 + ,45 + ,16 + ,61 + ,70344 + ,5785 + ,21 + ,21 + ,2781 + ,292 + ,63 + ,1 + ,3 + ,43410 + ,4 + ,1 + ,1 + ,29236 + ,350 + ,71 + ,16 + ,52 + ,104838 + ,5930 + ,44 + ,42 + ,19546 + ,186 + ,26 + ,10 + ,25 + ,62215 + ,3710 + ,26 + ,26 + ,22818 + ,326 + ,48 + ,19 + ,40 + ,69304 + ,705 + ,21 + ,21 + ,32689 + ,155 + ,29 + ,12 + ,32 + ,53117 + ,443 + ,4 + ,4 + ,5752 + ,75 + ,19 + ,2 + ,4 + ,19764 + ,2416 + ,10 + ,10 + ,22197 + ,361 + ,45 + ,14 + ,49 + ,86680 + ,7747 + ,43 + ,43 + ,20055 + ,261 + ,45 + ,17 + ,63 + ,84105 + ,5432 + ,34 + ,34 + ,25272 + ,299 + ,67 + ,19 + ,67 + ,77945 + ,4913 + ,32 + ,31 + ,82206 + ,300 + ,30 + ,14 + ,32 + ,89113 + ,2650 + ,20 + ,19 + ,32073 + ,450 + ,36 + ,11 + ,23 + ,91005 + ,2370 + ,34 + ,34 + ,5444 + ,183 + ,34 + ,4 + ,7 + ,40248 + ,775 + ,6 + ,6 + ,20154 + ,238 + ,36 + ,16 + ,54 + ,64187 + ,5576 + ,12 + ,11 + ,36944 + ,165 + ,34 + ,20 + ,37 + ,50857 + ,1352 + ,24 + ,24 + ,8019 + ,234 + ,37 + ,12 + ,35 + ,56613 + ,3080 + ,16 + ,16 + ,30884 + ,176 + ,46 + ,15 + ,51 + ,62792 + ,10205 + ,72 + ,72 + ,19540 + ,329 + ,44 + ,16 + ,39 + ,72535 + ,6095 + ,27 + ,21) + ,dim=c(9 + ,289) + ,dimnames=list(c('totsize' + ,'compviewsinfo' + ,'compviewspr' + ,'reviews' + ,'feedbackm' + ,'time' + ,'totrevisions' + ,'tothyperlinks' + ,'totblogs') + ,1:289)) > y <- array(NA,dim=c(9,289),dimnames=list(c('totsize','compviewsinfo','compviewspr','reviews','feedbackm','time','totrevisions','tothyperlinks','totblogs'),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 = 'yes' > par3 = '2' > par2 = 'quantiles' > par1 = '1' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: > #Technical description: > 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] "totsize" > x[,par1] [1] 112285 84786 83123 101193 38361 68504 119182 22807 17140 116174 [11] 57635 66198 71701 57793 80444 53855 97668 133824 101481 99645 [21] 114789 99052 67654 65553 97500 69112 82753 85323 72654 30727 [31] 77873 117478 74007 90183 61542 101494 27570 55813 79215 1423 [41] 55461 31081 22996 83122 70106 60578 39992 79892 49810 71570 [51] 100708 33032 82875 139077 71595 72260 5950 115762 32551 31701 [61] 80670 143558 117105 23789 120733 105195 73107 132068 149193 46821 [71] 87011 95260 55183 106671 73511 92945 78664 70054 22618 74011 [81] 83737 69094 93133 95536 225920 62133 61370 43836 106117 38692 [91] 84651 56622 15986 95364 26706 89691 67267 126846 41140 102860 [101] 51715 55801 111813 120293 138599 161647 115929 24266 162901 109825 [111] 129838 37510 43750 40652 87771 85872 89275 44418 192565 35232 [121] 40909 13294 32387 140867 120662 21233 44332 61056 101338 1168 [131] 13497 65567 25162 32334 40735 91413 855 97068 44339 14116 [141] 10288 65622 16563 76643 110681 29011 92696 94785 8773 83209 [151] 93815 86687 34553 105547 103487 213688 71220 23517 56926 91721 [161] 115168 111194 51009 135777 51513 74163 51633 75345 33416 83305 [171] 98952 102372 37238 103772 123969 27142 135400 21399 130115 24874 [181] 34988 45549 6023 64466 54990 1644 6179 3926 32755 34777 [191] 73224 27114 20760 37636 65461 30080 24094 69008 54968 46090 [201] 27507 10672 34029 46300 24760 18779 21280 40662 28987 22827 [211] 18513 30594 24006 27913 42744 12934 22574 41385 18653 18472 [221] 30976 63339 25568 33747 4154 19474 35130 39067 13310 65892 [231] 4143 28579 51776 21152 38084 27717 32928 11342 19499 16380 [241] 36874 48259 16734 28207 30143 41369 45833 29156 35944 36278 [251] 45588 45097 3895 28394 18632 2325 25139 27975 14483 13127 [261] 5839 24069 3738 18625 36341 24548 21792 26263 23686 49303 [271] 25659 28904 2781 29236 19546 22818 32689 5752 22197 20055 [281] 25272 82206 32073 5444 20154 36944 8019 30884 19540 > 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]) [ 855, 46090) [46090,225920] 145 144 > colnames(x) [1] "totsize" "compviewsinfo" "compviewspr" "reviews" [5] "feedbackm" "time" "totrevisions" "tothyperlinks" [9] "totblogs" > colnames(x)[par1] [1] "totsize" > x[,par1] [1] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [ 855, 46090) [6] [46090,225920] [46090,225920] [ 855, 46090) [ 855, 46090) [46090,225920] [11] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [16] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [21] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [26] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [ 855, 46090) [31] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [36] [46090,225920] [ 855, 46090) [46090,225920] [46090,225920] [ 855, 46090) [41] [46090,225920] [ 855, 46090) [ 855, 46090) [46090,225920] [46090,225920] [46] [46090,225920] [ 855, 46090) [46090,225920] [46090,225920] [46090,225920] [51] [46090,225920] [ 855, 46090) [46090,225920] [46090,225920] [46090,225920] [56] [46090,225920] [ 855, 46090) [46090,225920] [ 855, 46090) [ 855, 46090) [61] [46090,225920] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [66] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [71] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [76] [46090,225920] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [81] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [86] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [ 855, 46090) [91] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [ 855, 46090) [96] [46090,225920] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [101] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [106] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [46090,225920] [111] [46090,225920] [ 855, 46090) [ 855, 46090) [ 855, 46090) [46090,225920] [116] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [ 855, 46090) [121] [ 855, 46090) [ 855, 46090) [ 855, 46090) [46090,225920] [46090,225920] [126] [ 855, 46090) [ 855, 46090) [46090,225920] [46090,225920] [ 855, 46090) [131] [ 855, 46090) [46090,225920] [ 855, 46090) [ 855, 46090) [ 855, 46090) [136] [46090,225920] [ 855, 46090) [46090,225920] [ 855, 46090) [ 855, 46090) [141] [ 855, 46090) [46090,225920] [ 855, 46090) [46090,225920] [46090,225920] [146] [ 855, 46090) [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [151] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [46090,225920] [156] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [46090,225920] [161] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [46090,225920] [166] [46090,225920] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [171] [46090,225920] [46090,225920] [ 855, 46090) [46090,225920] [46090,225920] [176] [ 855, 46090) [46090,225920] [ 855, 46090) [46090,225920] [ 855, 46090) [181] [ 855, 46090) [ 855, 46090) [ 855, 46090) [46090,225920] [46090,225920] [186] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [191] [46090,225920] [ 855, 46090) [ 855, 46090) [ 855, 46090) [46090,225920] [196] [ 855, 46090) [ 855, 46090) [46090,225920] [46090,225920] [46090,225920] [201] [ 855, 46090) [ 855, 46090) [ 855, 46090) [46090,225920] [ 855, 46090) [206] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [211] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [216] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [221] [ 855, 46090) [46090,225920] [ 855, 46090) [ 855, 46090) [ 855, 46090) [226] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [46090,225920] [231] [ 855, 46090) [ 855, 46090) [46090,225920] [ 855, 46090) [ 855, 46090) [236] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [241] [ 855, 46090) [46090,225920] [ 855, 46090) [ 855, 46090) [ 855, 46090) [246] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [251] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [256] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [261] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [266] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [46090,225920] [271] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [276] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) [281] [ 855, 46090) [46090,225920] [ 855, 46090) [ 855, 46090) [ 855, 46090) [286] [ 855, 46090) [ 855, 46090) [ 855, 46090) [ 855, 46090) Levels: [ 855, 46090) [46090,225920] > 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/1bydd1324657389.tab") + } + } m.ct.i.pred m.ct.i.actu 1 2 1 1249 64 2 140 1129 [1] 0.9512567 [1] 0.8896769 [1] 0.9209915 m.ct.x.pred m.ct.x.actu 1 2 1 117 20 2 20 151 [1] 0.8540146 [1] 0.8830409 [1] 0.8701299 > m Conditional inference tree with 5 terminal nodes Response: as.factor(totsize) Inputs: compviewsinfo, compviewspr, reviews, feedbackm, time, totrevisions, tothyperlinks, totblogs Number of observations: 289 1) reviews <= 22; criterion = 1, statistic = 162.108 2) tothyperlinks <= 50; criterion = 1, statistic = 30.676 3) totrevisions <= 9653; criterion = 0.967, statistic = 8.175 4)* weights = 113 3) totrevisions > 9653 5)* weights = 7 2) tothyperlinks > 50 6)* weights = 28 1) reviews > 22 7) totblogs <= 52; criterion = 1, statistic = 29.1 8)* weights = 19 7) totblogs > 52 9)* weights = 122 > postscript(file="/var/wessaorg/rcomp/tmp/2kc0u1324657389.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/3e18e1324657389.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) + } > if (par2 != 'none') { + print(cbind(as.factor(x[,par1]),predict(m))) + myt <- table(as.factor(x[,par1]),predict(m)) + print(myt) + } [,1] [,2] [1,] 2 2 [2,] 2 2 [3,] 2 2 [4,] 2 2 [5,] 1 1 [6,] 2 1 [7,] 2 2 [8,] 1 1 [9,] 1 1 [10,] 2 2 [11,] 2 2 [12,] 2 2 [13,] 2 2 [14,] 2 2 [15,] 2 2 [16,] 2 2 [17,] 2 2 [18,] 2 2 [19,] 2 2 [20,] 2 2 [21,] 2 2 [22,] 2 2 [23,] 2 2 [24,] 2 2 [25,] 2 2 [26,] 2 2 [27,] 2 2 [28,] 2 2 [29,] 2 2 [30,] 1 1 [31,] 2 2 [32,] 2 2 [33,] 2 2 [34,] 2 2 [35,] 2 1 [36,] 2 2 [37,] 1 1 [38,] 2 2 [39,] 2 2 [40,] 1 1 [41,] 2 2 [42,] 1 1 [43,] 1 1 [44,] 2 2 [45,] 2 2 [46,] 2 2 [47,] 1 1 [48,] 2 2 [49,] 2 2 [50,] 2 1 [51,] 2 2 [52,] 1 1 [53,] 2 2 [54,] 2 2 [55,] 2 2 [56,] 2 2 [57,] 1 1 [58,] 2 2 [59,] 1 1 [60,] 1 1 [61,] 2 2 [62,] 2 2 [63,] 2 1 [64,] 1 1 [65,] 2 2 [66,] 2 2 [67,] 2 2 [68,] 2 2 [69,] 2 2 [70,] 2 2 [71,] 2 2 [72,] 2 2 [73,] 2 2 [74,] 2 2 [75,] 2 2 [76,] 2 2 [77,] 2 2 [78,] 2 2 [79,] 1 1 [80,] 2 2 [81,] 2 2 [82,] 2 2 [83,] 2 2 [84,] 2 2 [85,] 2 1 [86,] 2 2 [87,] 2 2 [88,] 1 1 [89,] 2 2 [90,] 1 1 [91,] 2 2 [92,] 2 1 [93,] 1 1 [94,] 2 2 [95,] 1 1 [96,] 2 2 [97,] 2 2 [98,] 2 2 [99,] 1 2 [100,] 2 2 [101,] 2 2 [102,] 2 2 [103,] 2 2 [104,] 2 2 [105,] 2 2 [106,] 2 2 [107,] 2 2 [108,] 1 1 [109,] 2 2 [110,] 2 2 [111,] 2 2 [112,] 1 1 [113,] 1 1 [114,] 1 1 [115,] 2 2 [116,] 2 2 [117,] 2 2 [118,] 1 1 [119,] 2 2 [120,] 1 1 [121,] 1 1 [122,] 1 1 [123,] 1 1 [124,] 2 2 [125,] 2 2 [126,] 1 1 [127,] 1 1 [128,] 2 1 [129,] 2 2 [130,] 1 1 [131,] 1 1 [132,] 2 2 [133,] 1 1 [134,] 1 1 [135,] 1 2 [136,] 2 2 [137,] 1 1 [138,] 2 2 [139,] 1 1 [140,] 1 1 [141,] 1 1 [142,] 2 1 [143,] 1 1 [144,] 2 2 [145,] 2 2 [146,] 1 1 [147,] 2 1 [148,] 2 2 [149,] 1 1 [150,] 2 2 [151,] 2 2 [152,] 2 2 [153,] 1 1 [154,] 2 2 [155,] 2 2 [156,] 2 2 [157,] 2 2 [158,] 1 1 [159,] 2 1 [160,] 2 2 [161,] 2 2 [162,] 2 1 [163,] 2 1 [164,] 2 2 [165,] 2 2 [166,] 2 2 [167,] 2 2 [168,] 2 2 [169,] 1 1 [170,] 2 1 [171,] 2 2 [172,] 2 2 [173,] 1 1 [174,] 2 2 [175,] 2 2 [176,] 1 1 [177,] 2 2 [178,] 1 1 [179,] 2 2 [180,] 1 1 [181,] 1 1 [182,] 1 1 [183,] 1 1 [184,] 2 2 [185,] 2 2 [186,] 1 1 [187,] 1 1 [188,] 1 1 [189,] 1 1 [190,] 1 1 [191,] 2 2 [192,] 1 1 [193,] 1 1 [194,] 1 1 [195,] 2 1 [196,] 1 1 [197,] 1 1 [198,] 2 1 [199,] 2 1 [200,] 2 1 [201,] 1 1 [202,] 1 1 [203,] 1 1 [204,] 2 1 [205,] 1 1 [206,] 1 1 [207,] 1 1 [208,] 1 1 [209,] 1 1 [210,] 1 1 [211,] 1 1 [212,] 1 1 [213,] 1 1 [214,] 1 1 [215,] 1 1 [216,] 1 1 [217,] 1 1 [218,] 1 1 [219,] 1 1 [220,] 1 1 [221,] 1 1 [222,] 2 1 [223,] 1 1 [224,] 1 1 [225,] 1 1 [226,] 1 1 [227,] 1 1 [228,] 1 1 [229,] 1 1 [230,] 2 1 [231,] 1 1 [232,] 1 1 [233,] 2 1 [234,] 1 1 [235,] 1 1 [236,] 1 1 [237,] 1 1 [238,] 1 1 [239,] 1 1 [240,] 1 1 [241,] 1 1 [242,] 2 1 [243,] 1 1 [244,] 1 1 [245,] 1 1 [246,] 1 1 [247,] 1 1 [248,] 1 1 [249,] 1 1 [250,] 1 1 [251,] 1 1 [252,] 1 1 [253,] 1 1 [254,] 1 1 [255,] 1 1 [256,] 1 1 [257,] 1 1 [258,] 1 1 [259,] 1 1 [260,] 1 1 [261,] 1 1 [262,] 1 1 [263,] 1 1 [264,] 1 1 [265,] 1 1 [266,] 1 1 [267,] 1 1 [268,] 1 1 [269,] 1 1 [270,] 2 1 [271,] 1 1 [272,] 1 1 [273,] 1 1 [274,] 1 1 [275,] 1 1 [276,] 1 1 [277,] 1 1 [278,] 1 1 [279,] 1 1 [280,] 1 1 [281,] 1 1 [282,] 2 1 [283,] 1 1 [284,] 1 1 [285,] 1 1 [286,] 1 1 [287,] 1 1 [288,] 1 1 [289,] 1 1 [ 855, 46090) [46090,225920] [ 855, 46090) 143 2 [46090,225920] 24 120 > postscript(file="/var/wessaorg/rcomp/tmp/4kd011324657389.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/51x1d1324657389.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/6wf1p1324657389.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/73jlr1324657389.tab") + } > > try(system("convert tmp/2kc0u1324657389.ps tmp/2kc0u1324657389.png",intern=TRUE)) character(0) > try(system("convert tmp/3e18e1324657389.ps tmp/3e18e1324657389.png",intern=TRUE)) character(0) > try(system("convert tmp/4kd011324657389.ps tmp/4kd011324657389.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 5.304 0.312 5.616