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(144244 + ,1685 + ,152043 + ,53 + ,670 + ,47 + ,3 + ,44 + ,29 + ,107 + ,84 + ,17416 + ,88229 + ,111 + ,107 + ,197426 + ,1109 + ,121726 + ,66 + ,356 + ,44 + ,0 + ,28 + ,30 + ,112 + ,83 + ,24797 + ,178377 + ,60 + ,59 + ,86652 + ,1829 + ,204039 + ,75 + ,615 + ,83 + ,6 + ,44 + ,49 + ,182 + ,146 + ,10971 + ,114198 + ,165 + ,159 + ,65594 + ,1808 + ,185890 + ,62 + ,590 + ,86 + ,9 + ,48 + ,31 + ,114 + ,90 + ,8589 + ,92795 + ,96 + ,94 + ,101382 + ,2137 + ,252805 + ,52 + ,866 + ,67 + ,5 + ,81 + ,30 + ,111 + ,77 + ,13326 + ,127097 + ,102 + ,97 + ,76173 + ,631 + ,70849 + ,28 + ,179 + ,46 + ,3 + ,8 + ,35 + ,129 + ,89 + ,10024 + ,47552 + ,49 + ,47 + ,124089 + ,3873 + ,366774 + ,116 + ,1548 + ,117 + ,9 + ,95 + ,39 + ,145 + ,120 + ,16378 + ,130332 + ,125 + ,123 + ,66089 + ,1121 + ,102424 + ,42 + ,401 + ,55 + ,0 + ,42 + ,36 + ,131 + ,100 + ,8728 + ,61394 + ,50 + ,49 + ,22618 + ,893 + ,73566 + ,32 + ,385 + ,39 + ,6 + ,22 + ,23 + ,88 + ,67 + ,3007 + ,23824 + ,26 + ,25 + ,149695 + ,2531 + ,372238 + ,308 + ,833 + ,81 + ,8 + ,85 + ,44 + ,163 + ,157 + ,20867 + ,191179 + ,165 + ,158 + ,56622 + ,870 + ,80953 + ,25 + ,437 + ,31 + ,0 + ,49 + ,8 + ,28 + ,27 + ,7905 + ,55792 + ,59 + ,58 + ,150047 + ,1915 + ,168994 + ,57 + ,720 + ,122 + ,5 + ,147 + ,50 + ,192 + ,179 + ,21166 + ,75767 + ,132 + ,123 + ,151911 + ,3942 + ,334657 + ,116 + ,1342 + ,116 + ,10 + ,142 + ,47 + ,181 + ,165 + ,22938 + ,191889 + ,174 + ,172 + ,25162 + ,530 + ,61857 + ,25 + ,192 + ,25 + ,4 + ,23 + ,11 + ,32 + ,30 + ,3913 + ,24610 + ,31 + ,28 + ,105079 + ,1844 + ,222373 + ,69 + ,673 + ,59 + ,16 + ,70 + ,42 + ,162 + ,106 + ,16346 + ,99776 + ,121 + ,121 + ,69446 + ,1937 + ,220700 + ,82 + ,621 + ,46 + ,10 + ,71 + ,43 + ,162 + ,87 + ,11034 + ,113713 + ,100 + ,100 + ,136588 + ,2320 + ,263411 + ,85 + ,683 + ,62 + ,8 + ,135 + ,49 + ,191 + ,185 + ,21983 + ,134163 + ,200 + ,186 + ,128692 + ,1807 + ,217478 + ,112 + ,610 + ,69 + ,0 + ,38 + ,32 + ,125 + ,45 + ,20954 + ,100187 + ,141 + ,126 + ,134047 + ,2387 + ,316105 + ,97 + ,820 + ,120 + ,0 + ,154 + ,48 + ,187 + ,145 + ,21849 + ,231257 + ,172 + ,165 + ,31701 + ,1161 + ,101097 + ,64 + ,454 + ,70 + ,3 + ,30 + ,14 + ,52 + ,41 + ,5296 + ,45824 + ,35 + ,35 + ,43750 + ,602 + ,43287 + ,14 + ,214 + ,43 + ,4 + ,13 + ,19 + ,71 + ,64 + ,7409 + ,19630 + ,49 + ,49 + ,143592 + ,1854 + ,187965 + ,126 + ,562 + ,54 + ,6 + ,79 + ,35 + ,137 + ,128 + ,24634 + ,113963 + ,158 + ,156 + ,100350 + ,1757 + ,199726 + ,65 + ,580 + ,47 + ,2 + ,48 + ,32 + ,117 + ,66 + ,17372 + ,75882 + ,80 + ,72 + ,151715 + ,3937 + ,370483 + ,139 + ,1298 + ,65 + ,10 + ,154 + ,46 + ,178 + ,161 + ,26719 + ,197765 + ,171 + ,171 + ,113344 + ,2733 + ,327474 + ,64 + ,1026 + ,140 + ,0 + ,125 + ,41 + ,158 + ,135 + ,20190 + ,230054 + ,144 + ,137 + ,279488 + ,3328 + ,396725 + ,123 + ,1151 + ,111 + ,3 + ,137 + ,50 + ,186 + ,175 + ,49809 + ,258287 + ,254 + ,246 + ,125081 + ,2956 + ,322896 + ,157 + ,1157 + ,90 + ,4 + ,98 + ,39 + ,144 + ,92 + ,22355 + ,135213 + ,114 + ,113 + ,68788 + ,1659 + ,164107 + ,67 + ,633 + ,60 + ,8 + ,50 + ,37 + ,122 + ,113 + ,12347 + ,72591 + ,70 + ,70 + ,103037 + ,2768 + ,425544 + ,102 + ,1203 + ,101 + ,1 + ,86 + ,39 + ,144 + ,144 + ,18507 + ,150773 + ,140 + ,137 + ,102153 + ,1907 + ,198094 + ,40 + ,659 + ,113 + ,2 + ,66 + ,43 + ,163 + ,151 + ,18700 + ,80716 + ,70 + ,69 + ,147172 + ,1860 + ,306952 + ,67 + ,606 + ,58 + ,4 + ,76 + ,40 + ,149 + ,143 + ,27259 + ,178303 + ,112 + ,108 + ,146760 + ,4023 + ,401260 + ,164 + ,1429 + ,155 + ,4 + ,103 + ,46 + ,172 + ,163 + ,27195 + ,195791 + ,187 + ,182 + ,127654 + ,2135 + ,254506 + ,74 + ,655 + ,71 + ,3 + ,160 + ,38 + ,141 + ,131 + ,23841 + ,105590 + ,205 + ,192 + ,110459 + ,1209 + ,179444 + ,64 + ,429 + ,63 + ,4 + ,71 + ,34 + ,133 + ,127 + ,20654 + ,113854 + ,135 + ,132 + ,131072 + ,2277 + ,232765 + ,78 + ,834 + ,78 + ,2 + ,135 + ,36 + ,135 + ,116 + ,25270 + ,114268 + ,200 + ,199 + ,126817 + ,1675 + ,175699 + ,68 + ,621 + ,62 + ,5 + ,143 + ,28 + ,102 + ,89 + ,24634 + ,94333 + ,104 + ,98 + ,108535 + ,3687 + ,361186 + ,189 + ,1456 + ,278 + ,1 + ,69 + ,37 + ,143 + ,137 + ,21261 + ,118845 + ,88 + ,83 + ,82317 + ,1441 + ,179306 + ,40 + ,461 + ,62 + ,5 + ,66 + ,25 + ,89 + ,84 + ,16278 + ,111848 + ,74 + ,71 + ,57224 + ,1997 + ,186856 + ,177 + ,640 + ,116 + ,0 + ,73 + ,36 + ,138 + ,59 + ,11338 + ,80684 + ,73 + ,70 + ,135356 + ,2089 + ,240153 + ,65 + ,696 + ,79 + ,7 + ,76 + ,48 + ,183 + ,163 + ,27111 + ,91502 + ,121 + ,118 + ,96125 + ,2228 + ,208051 + ,76 + ,648 + ,80 + ,0 + ,101 + ,52 + ,201 + ,180 + ,19499 + ,106314 + ,155 + ,155 + ,1168 + ,398 + ,23623 + ,11 + ,156 + ,9 + ,0 + ,12 + ,1 + ,0 + ,0 + ,238 + ,5841 + ,11 + ,11 + ,102070 + ,2861 + ,283950 + ,328 + ,947 + ,149 + ,4 + ,84 + ,40 + ,155 + ,150 + ,20920 + ,86480 + ,113 + ,107 + ,118906 + ,1717 + ,189897 + ,54 + ,601 + ,65 + ,9 + ,103 + ,52 + ,208 + ,208 + ,24662 + ,102509 + ,128 + ,123 + ,59900 + ,2670 + ,233632 + ,106 + ,1073 + ,72 + ,11 + ,77 + ,43 + ,169 + ,97 + ,12526 + ,96252 + ,83 + ,80 + ,79011 + ,1577 + ,166266 + ,64 + ,623 + ,75 + ,9 + ,67 + ,41 + ,148 + ,111 + ,16637 + ,80238 + ,104 + ,103 + ,103297 + ,2934 + ,358752 + ,77 + ,1163 + ,114 + ,4 + ,139 + ,52 + ,179 + ,162 + ,21857 + ,101345 + ,148 + ,148 + ,143372 + ,1624 + ,189252 + ,36 + ,555 + ,64 + ,3 + ,83 + ,36 + ,140 + ,139 + ,30391 + ,111542 + ,123 + ,123 + ,109432 + ,2295 + ,297982 + ,87 + ,684 + ,70 + ,0 + ,147 + ,45 + ,164 + ,115 + ,23201 + ,116938 + ,142 + ,141 + ,167949 + ,2122 + ,305704 + ,68 + ,746 + ,58 + ,6 + ,113 + ,36 + ,140 + ,139 + ,35902 + ,164263 + ,197 + ,194 + ,8773 + ,568 + ,38214 + ,34 + ,276 + ,52 + ,0 + ,16 + ,8 + ,27 + ,21 + ,1888 + ,13983 + ,16 + ,16 + ,45724 + ,1596 + ,163766 + ,48 + ,457 + ,107 + ,0 + ,83 + ,45 + ,169 + ,119 + ,9935 + ,74151 + ,132 + ,101 + ,149959 + ,2295 + ,285330 + ,64 + ,838 + ,85 + ,0 + ,145 + ,41 + ,155 + ,130 + ,32616 + ,195894 + ,208 + ,204 + ,81351 + ,2537 + ,239314 + ,68 + ,865 + ,64 + ,13 + ,99 + ,45 + ,173 + ,154 + ,17828 + ,102204 + ,111 + ,109 + ,103129 + ,2824 + ,267198 + ,126 + ,1061 + ,91 + ,5 + ,99 + ,41 + ,158 + ,127 + ,22883 + ,158376 + ,147 + ,138 + ,154451 + ,2604 + ,246745 + ,86 + ,1011 + ,52 + ,2 + ,116 + ,36 + ,132 + ,118 + ,34672 + ,134969 + ,154 + ,151 + ,88977 + ,2189 + ,242585 + ,83 + ,716 + ,58 + ,7 + ,78 + ,45 + ,175 + ,171 + ,20065 + ,111563 + ,115 + ,113 + ,140824 + ,1723 + ,270018 + ,68 + ,476 + ,90 + ,3 + ,96 + ,38 + ,144 + ,116 + ,32033 + ,186099 + ,165 + ,165 + ,84601 + ,2030 + ,233143 + ,83 + ,699 + ,58 + ,2 + ,65 + ,37 + ,133 + ,88 + ,19354 + ,105406 + ,125 + ,122 + ,169707 + ,2432 + ,302218 + ,83 + ,642 + ,80 + ,5 + ,122 + ,56 + ,210 + ,208 + ,38975 + ,210012 + ,174 + ,169 + ,187326 + ,4513 + ,498732 + ,117 + ,2201 + ,109 + ,0 + ,149 + ,33 + ,128 + ,122 + ,43068 + ,250931 + ,185 + ,177 + ,156349 + ,2633 + ,301703 + ,105 + ,818 + ,64 + ,1 + ,185 + ,44 + ,159 + ,147 + ,36171 + ,169216 + ,198 + ,194 + ,108146 + ,2314 + ,359644 + ,84 + ,982 + ,95 + ,4 + ,140 + ,45 + ,166 + ,143 + ,25217 + ,100125 + ,121 + ,121 + ,168553 + ,1606 + ,222504 + ,50 + ,552 + ,72 + ,5 + ,94 + ,35 + ,127 + ,127 + ,39932 + ,162519 + ,176 + ,170 + ,144408 + ,1997 + ,207822 + ,57 + ,735 + ,75 + ,7 + ,74 + ,34 + ,132 + ,117 + ,34416 + ,115466 + ,125 + ,124 + ,183500 + ,2091 + ,285198 + ,78 + ,771 + ,61 + ,0 + ,158 + ,39 + ,141 + ,104 + ,43840 + ,211381 + ,213 + ,210 + ,104128 + ,1288 + ,196269 + ,58 + ,445 + ,64 + ,0 + ,50 + ,53 + ,205 + ,171 + ,24959 + ,122975 + ,173 + ,158 + ,33032 + ,918 + ,78800 + ,42 + ,330 + ,57 + ,2 + ,20 + ,26 + ,82 + ,66 + ,7935 + ,56968 + ,21 + ,21 + ,43929 + ,1148 + ,162874 + ,50 + ,348 + ,48 + ,1 + ,61 + ,27 + ,88 + ,64 + ,10621 + ,100792 + ,73 + ,71 + ,56750 + ,2312 + ,251466 + ,89 + ,786 + ,58 + ,1 + ,76 + ,37 + ,138 + ,85 + ,13841 + ,115750 + ,98 + ,96 + ,126372 + ,2645 + ,341637 + ,90 + ,1056 + ,48 + ,3 + ,130 + ,36 + ,140 + ,133 + ,30927 + ,165278 + ,183 + ,178 + ,160141 + ,3842 + ,447353 + ,114 + ,1216 + ,114 + ,0 + ,147 + ,45 + ,175 + ,138 + ,39361 + ,175721 + ,166 + ,157 + ,71571 + ,1787 + ,182231 + ,64 + ,644 + ,67 + ,0 + ,83 + ,37 + ,134 + ,110 + ,17696 + ,75881 + ,103 + ,101 + ,125818 + ,1438 + ,176082 + ,55 + ,507 + ,41 + ,3 + ,103 + ,29 + ,111 + ,85 + ,31219 + ,111669 + ,169 + ,162 + ,38692 + ,1369 + ,145943 + ,69 + ,653 + ,45 + ,5 + ,30 + ,26 + ,99 + ,99 + ,9648 + ,68580 + ,38 + ,38 + ,95893 + ,2175 + ,252529 + ,83 + ,822 + ,77 + ,12 + ,89 + ,36 + ,139 + ,127 + ,23923 + ,81180 + ,103 + ,100 + ,67150 + ,2535 + ,282399 + ,94 + ,897 + ,192 + ,1 + ,110 + ,46 + ,158 + ,124 + ,16786 + ,114651 + ,145 + ,142 + ,110529 + ,2949 + ,384053 + ,114 + ,1162 + ,63 + ,1 + ,135 + ,38 + ,140 + ,102 + ,27738 + ,232241 + ,219 + ,216 + ,59938 + ,2958 + ,261494 + ,72 + ,1061 + ,89 + ,1 + ,128 + ,36 + ,140 + ,135 + ,15049 + ,82390 + ,107 + ,107 + ,81625 + ,2128 + ,237633 + ,114 + ,660 + ,61 + ,7 + ,117 + ,55 + ,210 + ,184 + ,20648 + ,94853 + ,98 + ,93 + ,71154 + ,2250 + ,201783 + ,61 + ,690 + ,58 + ,2 + ,133 + ,38 + ,148 + ,134 + ,18050 + ,80906 + ,112 + ,109 + ,104767 + ,2610 + ,264889 + ,88 + ,931 + ,59 + ,8 + ,92 + ,42 + ,163 + ,142 + ,26584 + ,124527 + ,130 + ,126 + ,125386 + ,2181 + ,236660 + ,88 + ,759 + ,67 + ,1 + ,121 + ,39 + ,145 + ,126 + ,31852 + ,134218 + ,241 + ,239 + ,165933 + ,4060 + ,383703 + ,130 + ,1698 + ,146 + ,0 + ,127 + ,46 + ,172 + ,161 + ,42570 + ,147581 + ,175 + ,173 + ,64520 + ,1714 + ,173510 + ,60 + ,470 + ,85 + ,6 + ,68 + ,42 + ,157 + ,126 + ,16747 + ,54518 + ,73 + ,71 + ,165986 + ,3805 + ,367807 + ,145 + ,1253 + ,123 + ,12 + ,151 + ,58 + ,223 + ,221 + ,43146 + ,189944 + ,208 + ,193 + ,102812 + ,2306 + ,280343 + ,103 + ,656 + ,57 + ,2 + ,117 + ,44 + ,122 + ,92 + ,26759 + ,136323 + ,163 + ,159 + ,81897 + ,1940 + ,191030 + ,60 + ,681 + ,61 + ,1 + ,127 + ,38 + ,148 + ,133 + ,21588 + ,89770 + ,140 + ,137 + ,37110 + ,1495 + ,155915 + ,51 + ,559 + ,53 + ,0 + ,57 + ,32 + ,117 + ,99 + ,9845 + ,64057 + ,70 + ,66 + ,146975 + ,2473 + ,314255 + ,79 + ,947 + ,134 + ,4 + ,73 + ,36 + ,140 + ,132 + ,39038 + ,135599 + ,150 + ,144 + ,92059 + ,1694 + ,187167 + ,52 + ,705 + ,94 + ,2 + ,79 + ,38 + ,133 + ,90 + ,24648 + ,91313 + ,127 + ,126 + ,144551 + ,3085 + ,179797 + ,104 + ,1044 + ,72 + ,1 + ,165 + ,45 + ,171 + ,159 + ,39039 + ,81716 + ,170 + ,164 + ,184923 + ,3705 + ,397681 + ,108 + ,1415 + ,73 + ,13 + ,165 + ,30 + ,114 + ,106 + ,50099 + ,226168 + ,307 + ,297 + ,79756 + ,1250 + ,187992 + ,35 + ,473 + ,49 + ,0 + ,71 + ,40 + ,151 + ,137 + ,21654 + ,122531 + ,90 + ,89 + ,140015 + ,2960 + ,323545 + ,99 + ,955 + ,56 + ,11 + ,145 + ,45 + ,174 + ,136 + ,38086 + ,145758 + ,175 + ,170 + ,89506 + ,3397 + ,311281 + ,113 + ,1211 + ,153 + ,3 + ,106 + ,39 + ,146 + ,137 + ,24347 + ,160501 + ,125 + ,119 + ,64593 + ,1830 + ,157429 + ,76 + ,689 + ,76 + ,4 + ,55 + ,39 + ,143 + ,112 + ,17672 + ,72558 + ,90 + ,90 + ,70168 + ,1840 + ,215710 + ,81 + ,611 + ,67 + ,2 + ,79 + ,36 + ,139 + ,89 + ,19433 + ,104470 + ,112 + ,109 + ,134238 + ,3553 + ,403932 + ,79 + ,1564 + ,134 + ,4 + ,137 + ,48 + ,187 + ,167 + ,37343 + ,191469 + ,171 + ,161 + ,101047 + ,2649 + ,301614 + ,88 + ,1030 + ,55 + ,0 + ,169 + ,40 + ,150 + ,124 + ,28317 + ,135848 + ,139 + ,135 + ,92622 + ,3246 + ,324178 + ,79 + ,1490 + ,42 + ,10 + ,123 + ,39 + ,145 + ,122 + ,26041 + ,134097 + ,123 + ,123 + ,14116 + ,492 + ,31961 + ,22 + ,200 + ,22 + ,0 + ,18 + ,8 + ,25 + ,9 + ,3988 + ,13155 + ,39 + ,39 + ,15986 + ,1966 + ,150216 + ,54 + ,822 + ,175 + ,0 + ,52 + ,27 + ,101 + ,77 + ,4527 + ,25157 + ,27 + ,27 + ,89256 + ,2081 + ,175523 + ,54 + ,868 + ,68 + ,3 + ,99 + ,45 + ,164 + ,146 + ,25314 + ,104864 + ,136 + ,133 + ,150491 + ,3574 + ,323485 + ,179 + ,1079 + ,220 + ,5 + ,115 + ,39 + ,145 + ,137 + ,42721 + ,194679 + ,257 + ,256 + ,140358 + ,2676 + ,287015 + ,134 + ,846 + ,83 + ,8 + ,117 + ,51 + ,198 + ,176 + ,40312 + ,117495 + ,125 + ,125 + ,114948 + ,4763 + ,369889 + ,176 + ,1650 + ,127 + ,0 + ,168 + ,59 + ,223 + ,199 + ,33433 + ,165354 + ,150 + ,142 + ,95671 + ,1816 + ,213060 + ,73 + ,559 + ,48 + ,0 + ,94 + ,40 + ,158 + ,137 + ,28524 + ,160791 + ,128 + ,125 + ,176225 + ,3160 + ,303406 + ,116 + ,1143 + ,146 + ,12 + ,139 + ,28 + ,101 + ,73 + ,53405 + ,214738 + ,279 + ,267 + ,93487 + ,1735 + ,195153 + ,73 + ,635 + ,82 + ,5 + ,75 + ,36 + ,115 + ,108 + ,28395 + ,133252 + ,94 + ,87 + ,89626 + ,2711 + ,237323 + ,143 + ,824 + ,89 + ,9 + ,85 + ,44 + ,167 + ,148 + ,27269 + ,134904 + ,138 + ,133 + ,66485 + ,1758 + ,213274 + ,44 + ,595 + ,72 + ,0 + ,82 + ,33 + ,120 + ,82 + ,20318 + ,110896 + ,93 + ,92 + ,79089 + ,2063 + ,296074 + ,106 + ,776 + ,79 + ,0 + ,92 + ,43 + ,158 + ,139 + ,24409 + ,169351 + ,154 + ,149 + ,55918 + ,1678 + ,153613 + ,46 + ,622 + ,41 + ,1 + ,62 + ,28 + ,109 + ,89 + ,17326 + ,83963 + ,63 + ,61 + ,112302 + ,2090 + ,318563 + ,83 + ,779 + ,53 + ,1 + ,133 + ,48 + ,185 + ,178 + ,34811 + ,198299 + ,161 + ,159 + ,104581 + ,2591 + ,207280 + ,114 + ,960 + ,72 + ,0 + ,86 + ,38 + ,146 + ,139 + ,32580 + ,116136 + ,116 + ,115 + ,117440 + ,2758 + ,353021 + ,81 + ,1010 + ,115 + ,0 + ,137 + ,52 + ,198 + ,187 + ,36809 + ,157384 + ,162 + ,160 + ,101629 + ,3657 + ,422946 + ,119 + ,1317 + ,74 + ,0 + ,112 + ,43 + ,158 + ,148 + ,32344 + ,188355 + ,121 + ,117 + ,112098 + ,2683 + ,218443 + ,104 + ,1137 + ,135 + ,2 + ,134 + ,38 + ,148 + ,133 + ,35926 + ,106194 + ,148 + ,145 + ,68946 + ,3145 + ,366745 + ,142 + ,1047 + ,113 + ,3 + ,130 + ,47 + ,185 + ,115 + ,22124 + ,174586 + ,174 + ,173 + ,114799 + ,1426 + ,228595 + ,66 + ,557 + ,58 + ,2 + ,52 + ,37 + ,139 + ,125 + ,37062 + ,153242 + ,131 + ,132 + ,119442 + ,3091 + ,369331 + ,92 + ,1198 + ,72 + ,4 + ,132 + ,39 + ,151 + ,148 + ,38941 + ,189723 + ,199 + ,185 + ,100087 + ,3027 + ,279012 + ,58 + ,1108 + ,125 + ,1 + ,97 + ,37 + ,134 + ,120 + ,32982 + ,129711 + ,137 + ,133 + ,139165 + ,2272 + ,278019 + ,74 + ,908 + ,49 + ,3 + ,123 + ,45 + ,175 + ,165 + ,46201 + ,184531 + ,155 + ,152 + ,83243 + ,1968 + ,270750 + ,85 + ,617 + ,73 + ,0 + ,117 + ,43 + ,154 + ,148 + ,27652 + ,153990 + ,132 + ,125 + ,123534 + ,1337 + ,156923 + ,57 + ,390 + ,68 + ,6 + ,71 + ,36 + ,132 + ,130 + ,41517 + ,100922 + ,108 + ,108 + ,6179 + ,474 + ,46660 + ,20 + ,259 + ,7 + ,0 + ,12 + ,5 + ,15 + ,13 + ,2089 + ,21509 + ,13 + ,13 + ,1644 + ,151 + ,7199 + ,5 + ,74 + ,0 + ,0 + ,7 + ,0 + ,0 + ,0 + ,556 + ,4245 + ,6 + ,6 + ,6023 + ,207 + ,14688 + ,10 + ,85 + ,0 + ,0 + ,4 + ,0 + ,0 + ,0 + ,2065 + ,7953 + ,5 + ,5 + ,120192 + ,2588 + ,338543 + ,137 + ,1039 + ,63 + ,0 + ,146 + ,42 + ,153 + ,150 + ,41455 + ,197680 + ,207 + ,190 + ,83248 + ,2205 + ,195817 + ,73 + ,779 + ,54 + ,0 + ,146 + ,40 + ,155 + ,103 + ,28830 + ,106020 + ,130 + ,130 + ,103925 + ,3314 + ,336047 + ,189 + ,1174 + ,45 + ,2 + ,124 + ,39 + ,151 + ,143 + ,36524 + ,164808 + ,158 + ,149 + ,72128 + ,1646 + ,216027 + ,65 + ,436 + ,58 + ,0 + ,96 + ,30 + ,116 + ,87 + ,25696 + ,145707 + ,126 + ,121 + ,112431 + ,2471 + ,271965 + ,69 + ,828 + ,99 + ,0 + ,123 + ,45 + ,171 + ,148 + ,40085 + ,140303 + ,148 + ,147 + ,92280 + ,1627 + ,236370 + ,46 + ,528 + ,83 + ,1 + ,104 + ,41 + ,151 + ,135 + ,34245 + ,147341 + ,140 + ,140 + ,83515 + ,3202 + ,219420 + ,114 + ,1196 + ,150 + ,1 + ,138 + ,41 + ,153 + ,144 + ,31452 + ,96785 + ,140 + ,134 + ,48029 + ,2146 + ,185468 + ,80 + ,716 + ,85 + ,4 + ,89 + ,23 + ,84 + ,36 + ,18213 + ,88634 + ,82 + ,82 + ,93879 + ,2616 + ,318651 + ,112 + ,907 + ,91 + ,0 + ,130 + ,57 + ,206 + ,122 + ,36099 + ,170492 + ,92 + ,88 + ,855 + ,387 + ,21054 + ,16 + ,146 + ,2 + ,0 + ,4 + ,0 + ,0 + ,0 + ,338 + ,6622 + ,4 + ,4 + ,100046 + ,2549 + ,259692 + ,47 + ,1140 + ,110 + ,0 + ,128 + ,40 + ,155 + ,125 + ,39844 + ,128602 + ,112 + ,111 + ,31081 + ,934 + ,115469 + ,32 + ,276 + ,36 + ,1 + ,33 + ,17 + ,55 + ,46 + ,12558 + ,58391 + ,41 + ,41 + ,104978 + ,2130 + ,219475 + ,138 + ,749 + ,72 + ,0 + ,92 + ,40 + ,151 + ,88 + ,45873 + ,139292 + ,206 + ,205 + ,5950 + ,496 + ,24188 + ,24 + ,218 + ,20 + ,0 + ,8 + ,4 + ,12 + ,7 + ,2694 + ,15049 + ,7 + ,7 + ,3926 + ,141 + ,17547 + ,5 + ,69 + ,3 + ,0 + ,0 + ,1 + ,4 + ,4 + ,2658 + ,7670 + ,3 + ,3) + ,dim=c(15 + ,144) + ,dimnames=list(c('#karakters' + ,'#PageViews' + ,'#SecRFC' + ,'#LogIns' + ,'#CourseCompViews' + ,'#CompViewsPR' + ,'#shared' + ,'#Blogs' + ,'#Reviews' + ,'#FBMinPR' + ,'#FBMinPR+120' + ,'#revisions' + ,'#seconden' + ,'#hyperlinks' + ,'#blogs') + ,1:144)) > y <- array(NA,dim=c(15,144),dimnames=list(c('#karakters','#PageViews','#SecRFC','#LogIns','#CourseCompViews','#CompViewsPR','#shared','#Blogs','#Reviews','#FBMinPR','#FBMinPR+120','#revisions','#seconden','#hyperlinks','#blogs'),1:144)) > 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 = '15' > par2 = 'quantiles' > par1 = '1' > 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] "X.karakters" > x[,par1] [1] 144244 197426 86652 65594 101382 76173 124089 66089 22618 149695 [11] 56622 150047 151911 25162 105079 69446 136588 128692 134047 31701 [21] 43750 143592 100350 151715 113344 279488 125081 68788 103037 102153 [31] 147172 146760 127654 110459 131072 126817 108535 82317 57224 135356 [41] 96125 1168 102070 118906 59900 79011 103297 143372 109432 167949 [51] 8773 45724 149959 81351 103129 154451 88977 140824 84601 169707 [61] 187326 156349 108146 168553 144408 183500 104128 33032 43929 56750 [71] 126372 160141 71571 125818 38692 95893 67150 110529 59938 81625 [81] 71154 104767 125386 165933 64520 165986 102812 81897 37110 146975 [91] 92059 144551 184923 79756 140015 89506 64593 70168 134238 101047 [101] 92622 14116 15986 89256 150491 140358 114948 95671 176225 93487 [111] 89626 66485 79089 55918 112302 104581 117440 101629 112098 68946 [121] 114799 119442 100087 139165 83243 123534 6179 1644 6023 120192 [131] 83248 103925 72128 112431 92280 83515 48029 93879 855 100046 [141] 31081 104978 5950 3926 > 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, 22618) [ 22618, 48029) [ 48029, 65594) [ 65594, 72128) [ 72128, 83243) 10 10 9 10 9 [ 83243, 92280) [ 92280,101047) [101047,103925) [103925,110529) [110529,119442) 10 10 9 10 9 [119442,128692) [128692,143372) [143372,149959) [149959,167949) [167949,279488] 10 10 9 10 9 > colnames(x) [1] "X.karakters" "X.PageViews" "X.SecRFC" [4] "X.LogIns" "X.CourseCompViews" "X.CompViewsPR" [7] "X.shared" "X.Blogs" "X.Reviews" [10] "X.FBMinPR" "X.FBMinPR.120" "X.revisions" [13] "X.seconden" "X.hyperlinks" "X.blogs" > colnames(x)[par1] [1] "X.karakters" > x[,par1] [1] [143372,149959) [167949,279488] [ 83243, 92280) [ 65594, 72128) [5] [101047,103925) [ 72128, 83243) [119442,128692) [ 65594, 72128) [9] [ 22618, 48029) [143372,149959) [ 48029, 65594) [149959,167949) [13] [149959,167949) [ 22618, 48029) [103925,110529) [ 65594, 72128) [17] [128692,143372) [128692,143372) [128692,143372) [ 22618, 48029) [21] [ 22618, 48029) [143372,149959) [ 92280,101047) [149959,167949) [25] [110529,119442) [167949,279488] [119442,128692) [ 65594, 72128) [29] [101047,103925) [101047,103925) [143372,149959) [143372,149959) [33] [119442,128692) [103925,110529) [128692,143372) [119442,128692) [37] [103925,110529) [ 72128, 83243) [ 48029, 65594) [128692,143372) [41] [ 92280,101047) [ 855, 22618) [101047,103925) [110529,119442) [45] [ 48029, 65594) [ 72128, 83243) [101047,103925) [143372,149959) [49] [103925,110529) [167949,279488] [ 855, 22618) [ 22618, 48029) [53] [149959,167949) [ 72128, 83243) [101047,103925) [149959,167949) [57] [ 83243, 92280) [128692,143372) [ 83243, 92280) [167949,279488] [61] [167949,279488] [149959,167949) [103925,110529) [167949,279488] [65] [143372,149959) [167949,279488] [103925,110529) [ 22618, 48029) [69] [ 22618, 48029) [ 48029, 65594) [119442,128692) [149959,167949) [73] [ 65594, 72128) [119442,128692) [ 22618, 48029) [ 92280,101047) [77] [ 65594, 72128) [110529,119442) [ 48029, 65594) [ 72128, 83243) [81] [ 65594, 72128) [103925,110529) [119442,128692) [149959,167949) [85] [ 48029, 65594) [149959,167949) [101047,103925) [ 72128, 83243) [89] [ 22618, 48029) [143372,149959) [ 83243, 92280) [143372,149959) [93] [167949,279488] [ 72128, 83243) [128692,143372) [ 83243, 92280) [97] [ 48029, 65594) [ 65594, 72128) [128692,143372) [101047,103925) [101] [ 92280,101047) [ 855, 22618) [ 855, 22618) [ 83243, 92280) [105] [149959,167949) [128692,143372) [110529,119442) [ 92280,101047) [109] [167949,279488] [ 92280,101047) [ 83243, 92280) [ 65594, 72128) [113] [ 72128, 83243) [ 48029, 65594) [110529,119442) [103925,110529) [117] [110529,119442) [101047,103925) [110529,119442) [ 65594, 72128) [121] [110529,119442) [119442,128692) [ 92280,101047) [128692,143372) [125] [ 83243, 92280) [119442,128692) [ 855, 22618) [ 855, 22618) [129] [ 855, 22618) [119442,128692) [ 83243, 92280) [103925,110529) [133] [ 72128, 83243) [110529,119442) [ 92280,101047) [ 83243, 92280) [137] [ 48029, 65594) [ 92280,101047) [ 855, 22618) [ 92280,101047) [141] [ 22618, 48029) [103925,110529) [ 855, 22618) [ 855, 22618) 15 Levels: [ 855, 22618) [ 22618, 48029) [ 48029, 65594) ... [167949,279488] > 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/19kdy1324116521.tab") + } + } > m Conditional inference tree with 8 terminal nodes Response: as.factor(X.karakters) Inputs: X.PageViews, X.SecRFC, X.LogIns, X.CourseCompViews, X.CompViewsPR, X.shared, X.Blogs, X.Reviews, X.FBMinPR, X.FBMinPR.120, X.revisions, X.seconden, X.hyperlinks, X.blogs Number of observations: 144 1) X.revisions <= 4527; criterion = 1, statistic = 103.739 2)* weights = 12 1) X.revisions > 4527 3) X.revisions <= 10621; criterion = 1, statistic = 80.68 4)* weights = 11 3) X.revisions > 10621 5) X.revisions <= 42721; criterion = 1, statistic = 62.367 6) X.hyperlinks <= 90; criterion = 1, statistic = 52.553 7)* weights = 14 6) X.hyperlinks > 90 8) X.revisions <= 16378; criterion = 0.999, statistic = 39.584 9)* weights = 7 8) X.revisions > 16378 10) X.hyperlinks <= 176; criterion = 0.996, statistic = 34.395 11) X.revisions <= 20318; criterion = 0.968, statistic = 28.897 12)* weights = 13 11) X.revisions > 20318 13)* weights = 66 10) X.hyperlinks > 176 14)* weights = 13 5) X.revisions > 42721 15)* weights = 8 > postscript(file="/var/wessaorg/rcomp/tmp/2wu041324116521.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/388ae1324116521.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,] 13 4 [2,] 15 3 [3,] 6 3 [4,] 4 2 [5,] 8 3 [6,] 5 2 [7,] 11 3 [8,] 4 2 [9,] 2 1 [10,] 13 7 [11,] 3 2 [12,] 14 7 [13,] 14 7 [14,] 2 1 [15,] 9 3 [16,] 4 3 [17,] 12 11 [18,] 12 7 [19,] 12 7 [20,] 2 2 [21,] 2 2 [22,] 13 7 [23,] 7 3 [24,] 14 7 [25,] 10 4 [26,] 15 15 [27,] 11 7 [28,] 4 3 [29,] 8 4 [30,] 8 3 [31,] 13 7 [32,] 13 11 [33,] 11 11 [34,] 9 7 [35,] 12 11 [36,] 11 7 [37,] 9 3 [38,] 5 3 [39,] 3 3 [40,] 12 7 [41,] 7 4 [42,] 1 1 [43,] 8 7 [44,] 10 7 [45,] 3 3 [46,] 5 4 [47,] 8 7 [48,] 13 7 [49,] 9 7 [50,] 15 11 [51,] 1 1 [52,] 2 2 [53,] 14 11 [54,] 5 4 [55,] 8 7 [56,] 14 7 [57,] 6 4 [58,] 12 7 [59,] 6 4 [60,] 15 7 [61,] 15 15 [62,] 14 11 [63,] 9 7 [64,] 15 7 [65,] 13 7 [66,] 15 15 [67,] 9 7 [68,] 2 2 [69,] 2 2 [70,] 3 3 [71,] 11 11 [72,] 14 7 [73,] 4 4 [74,] 11 7 [75,] 2 2 [76,] 7 7 [77,] 4 4 [78,] 10 11 [79,] 3 3 [80,] 5 7 [81,] 4 4 [82,] 9 7 [83,] 11 11 [84,] 14 7 [85,] 3 3 [86,] 14 15 [87,] 8 7 [88,] 5 7 [89,] 2 2 [90,] 13 7 [91,] 6 7 [92,] 13 7 [93,] 15 15 [94,] 5 3 [95,] 12 7 [96,] 6 7 [97,] 3 3 [98,] 4 4 [99,] 12 7 [100,] 8 7 [101,] 7 7 [102,] 1 1 [103,] 1 1 [104,] 6 7 [105,] 14 11 [106,] 12 7 [107,] 10 7 [108,] 7 7 [109,] 15 15 [110,] 7 7 [111,] 6 7 [112,] 4 4 [113,] 5 7 [114,] 3 3 [115,] 10 7 [116,] 9 7 [117,] 10 7 [118,] 8 7 [119,] 10 7 [120,] 4 7 [121,] 10 7 [122,] 11 11 [123,] 7 7 [124,] 12 15 [125,] 6 7 [126,] 11 7 [127,] 1 1 [128,] 1 1 [129,] 1 1 [130,] 11 11 [131,] 6 7 [132,] 9 7 [133,] 5 7 [134,] 10 7 [135,] 7 7 [136,] 6 7 [137,] 3 3 [138,] 7 7 [139,] 1 1 [140,] 7 7 [141,] 2 3 [142,] 9 15 [143,] 1 1 [144,] 1 1 [ 855, 22618) [ 22618, 48029) [ 48029, 65594) [ 855, 22618) 10 0 0 [ 22618, 48029) 2 7 1 [ 48029, 65594) 0 1 8 [ 65594, 72128) 0 2 2 [ 72128, 83243) 0 1 2 [ 83243, 92280) 0 0 1 [ 92280,101047) 0 0 1 [101047,103925) 0 0 2 [103925,110529) 0 0 2 [110529,119442) 0 0 0 [119442,128692) 0 0 1 [128692,143372) 0 0 0 [143372,149959) 0 0 0 [149959,167949) 0 0 0 [167949,279488] 0 0 1 [ 65594, 72128) [ 72128, 83243) [ 83243, 92280) [ 855, 22618) 0 0 0 [ 22618, 48029) 0 0 0 [ 48029, 65594) 0 0 0 [ 65594, 72128) 5 0 0 [ 72128, 83243) 2 0 0 [ 83243, 92280) 2 0 0 [ 92280,101047) 1 0 0 [101047,103925) 1 0 0 [103925,110529) 0 0 0 [110529,119442) 1 0 0 [119442,128692) 0 0 0 [128692,143372) 0 0 0 [143372,149959) 1 0 0 [149959,167949) 0 0 0 [167949,279488] 0 0 0 [ 92280,101047) [101047,103925) [103925,110529) [ 855, 22618) 0 0 0 [ 22618, 48029) 0 0 0 [ 48029, 65594) 0 0 0 [ 65594, 72128) 1 0 0 [ 72128, 83243) 4 0 0 [ 83243, 92280) 7 0 0 [ 92280,101047) 8 0 0 [101047,103925) 6 0 0 [103925,110529) 7 0 0 [110529,119442) 7 0 0 [119442,128692) 4 0 0 [128692,143372) 7 0 0 [143372,149959) 7 0 0 [149959,167949) 6 0 0 [167949,279488] 2 0 0 [110529,119442) [119442,128692) [128692,143372) [ 855, 22618) 0 0 0 [ 22618, 48029) 0 0 0 [ 48029, 65594) 0 0 0 [ 65594, 72128) 0 0 0 [ 72128, 83243) 0 0 0 [ 83243, 92280) 0 0 0 [ 92280,101047) 0 0 0 [101047,103925) 0 0 0 [103925,110529) 0 0 0 [110529,119442) 0 1 0 [119442,128692) 0 5 0 [128692,143372) 0 2 0 [143372,149959) 0 1 0 [149959,167949) 0 3 0 [167949,279488] 0 1 0 [143372,149959) [149959,167949) [167949,279488] [ 855, 22618) 0 0 0 [ 22618, 48029) 0 0 0 [ 48029, 65594) 0 0 0 [ 65594, 72128) 0 0 0 [ 72128, 83243) 0 0 0 [ 83243, 92280) 0 0 0 [ 92280,101047) 0 0 0 [101047,103925) 0 0 0 [103925,110529) 0 0 1 [110529,119442) 0 0 0 [119442,128692) 0 0 0 [128692,143372) 0 0 1 [143372,149959) 0 0 0 [149959,167949) 0 0 1 [167949,279488] 0 0 5 > postscript(file="/var/wessaorg/rcomp/tmp/4vfdf1324116521.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/5bzn61324116521.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/6xa3t1324116521.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/7560v1324116521.tab") + } > > try(system("convert tmp/2wu041324116521.ps tmp/2wu041324116521.png",intern=TRUE)) character(0) > try(system("convert tmp/388ae1324116521.ps tmp/388ae1324116521.png",intern=TRUE)) character(0) > try(system("convert tmp/4vfdf1324116521.ps tmp/4vfdf1324116521.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 4.385 0.302 4.715