R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(1.3866 + ,126.64 + ,40.7819 + ,1.3582 + ,126.81 + ,39.5915 + ,1.3332 + ,125.84 + ,38.8859 + ,1.3595 + ,126.77 + ,39.9068 + ,1.3617 + ,124.34 + ,41.47 + ,1.3684 + ,124.4 + ,41.5613 + ,1.3394 + ,120.48 + ,41.6005 + ,1.3262 + ,118.54 + ,41.4113 + ,1.3173 + ,117.66 + ,41.84 + ,1.3085 + ,116.97 + ,42.2892 + ,1.327 + ,120.11 + ,43.1521 + ,1.3182 + ,119.16 + ,43.5998 + ,1.293 + ,116.9 + ,43.116 + ,1.291 + ,116.11 + ,42.4185 + ,1.2984 + ,114.98 + ,42.3687 + ,1.2795 + ,113.65 + ,42.2975 + ,1.299 + ,115.82 + ,42.8528 + ,1.3174 + ,117.59 + ,43.535 + ,1.326 + ,118.57 + ,44.7265 + ,1.3111 + ,118.07 + ,45.7293 + ,1.2816 + ,114.98 + ,45.7585 + ,1.276 + ,114.04 + ,46.1685 + ,1.2849 + ,115.02 + ,46.5075 + ,1.2818 + ,114.28 + ,46.527 + ,1.2829 + ,115.04 + ,46.601 + ,1.2796 + ,116.7 + ,46.4607 + ,1.3008 + ,119.21 + ,46.7135 + ,1.2967 + ,118.39 + ,46.4113 + ,1.2938 + ,116.5 + ,45.55 + ,1.2833 + ,115.46 + ,44.6081 + ,1.2823 + ,117.59 + ,44.4395 + ,1.2765 + ,117.33 + ,44.9847 + ,1.2634 + ,116.2 + ,45.7558 + ,1.2596 + ,116.83 + ,45.3942 + ,1.2705 + ,118.99 + ,45.697 + ,1.2591 + ,118.62 + ,45.5664 + ,1.2798 + ,121.09 + ,46.0205 + ,1.2763 + ,122.4 + ,45.9195 + ,1.2795 + ,123.76 + ,45.8005 + ,1.2782 + ,125.33 + ,45.535 + ,1.2644 + ,123.23 + ,45.4977 + ,1.2596 + ,122.52 + ,45.5782 + ,1.2615 + ,123.64 + ,45.7697 + ,1.2555 + ,124.67 + ,45.2445 + ,1.2555 + ,124.71 + ,45.0615 + ,1.2658 + ,122.53 + ,45.2865 + ,1.2565 + ,124.4 + ,44.791 + ,1.2783 + ,125.45 + ,44.7625 + ,1.2786 + ,125.35 + ,44.7644 + ,1.2782 + ,124.3 + ,44.9973 + ,1.2905 + ,127.03 + ,44.7265 + ,1.3042 + ,128.51 + ,45.1465 + ,1.2942 + ,128.1 + ,44.7465 + ,1.313 + ,128.94 + ,45.1795 + ,1.3671 + ,129.67 + ,45.6515 + ,1.3549 + ,129.87 + ,45.492 + ,1.3558 + ,131.12 + ,45.2775 + ,1.3507 + ,132.68 + ,45.2115 + ,1.3494 + ,132.24 + ,45.411 + ,1.3607 + ,133.63 + ,45.4005 + ,1.3295 + ,129.91 + ,44.7692 + ,1.3193 + ,127.93 + ,44.8913 + ,1.3308 + ,131.17 + ,45.032 + ,1.3246 + ,130.86 + ,44.879 + ,1.3392 + ,133.48 + ,44.833 + ,1.3425 + ,134.08 + ,44.8257 + ,1.3496 + ,136.02 + ,44.7815 + ,1.3255 + ,132.8 + ,44.479 + ,1.3231 + ,132.37 + ,44.6317 + ,1.3273 + ,133.05 + ,44.5043 + ,1.3276 + ,132.57 + ,44.3217 + ,1.3173 + ,130.7 + ,44.1005 + ,1.3196 + ,130.5 + ,44.047 + ,1.3058 + ,129.67 + ,43.6835 + ,1.2966 + ,127.8 + ,43.7864 + ,1.2932 + ,126.82 + ,44.1807 + ,1.2947 + ,126.85 + ,43.9595 + ,1.305 + ,128.28 + ,43.937 + ,1.3232 + ,128.3 + ,43.991 + ,1.3125 + ,126.82 + ,43.865 + ,1.2992 + ,125.08 + ,43.671 + ,1.3266 + ,128.53 + ,43.93 + ,1.3275 + ,130.34 + ,43.863 + ,1.3223 + ,131.52 + ,43.7095 + ,1.3403 + ,132.59 + ,43.9435 + ,1.3322 + ,131.17 + ,43.736 + ,1.3363 + ,132.72 + ,43.6295 + ,1.3425 + ,133.36 + ,43.598 + ,1.3574 + ,132.82 + ,43.8726 + ,1.3683 + ,132.9 + ,43.8935 + ,1.3623 + ,130.9 + ,43.5957 + ,1.3563 + ,129.41 + ,43.7155 + ,1.3518 + ,128.67 + ,43.528 + ,1.3494 + ,129.28 + ,43.3415 + ,1.3612 + ,130.91 + ,43.3374 + ,1.369 + ,131.06 + ,43.332 + ,1.3771 + ,130.84 + ,43.3869 + ,1.3972 + ,131.41 + ,43.5016 + ,1.401 + ,133.22 + ,43.4875 + ,1.3908 + ,132.06 + ,43.6023 + ,1.3901 + ,132.48 + ,43.3886 + ,1.3856 + ,134.38 + ,43.3105 + ,1.4098 + ,135.22 + ,43.4455 + ,1.422 + ,134.89 + ,43.5185 + ,1.4238 + ,136.09 + ,43.5755 + ,1.4207 + ,136.33 + ,43.6217 + ,1.4095 + ,136.32 + ,43.644 + ,1.4177 + ,137.48 + ,43.5789 + ,1.3866 + ,136.53 + ,43.5215 + ,1.3959 + ,136.8 + ,43.5033 + ,1.4102 + ,138.03 + ,43.632 + ,1.3969 + ,137.39 + ,43.263 + ,1.4004 + ,137.55 + ,43.3717 + ,1.385 + ,136.08 + ,43.2745 + ,1.389 + ,134.78 + ,43.2647 + ,1.384 + ,133.28 + ,43.324 + ,1.392 + ,133.57 + ,43.4455 + ,1.3932 + ,134.84 + ,43.4098 + ,1.3858 + ,133.02 + ,43.41 + ,1.3978 + ,133.49 + ,43.93 + ,1.4029 + ,133.77 + ,43.8104 + ,1.394 + ,134.34 + ,43.54 + ,1.4096 + ,134.5 + ,43.858 + ,1.4058 + ,134.03 + ,43.8375 + ,1.4134 + ,135.51 + ,43.881 + ,1.4096 + ,136.53 + ,43.887 + ,1.4049 + ,135.95 + ,43.8009 + ,1.4009 + ,134.32 + ,43.7877 + ,1.3897 + ,132.44 + ,43.811 + ,1.4019 + ,133.61 + ,44.0625 + ,1.3901 + ,131.02 + ,44.125 + ,1.399 + ,130.05 + ,44.52 + ,1.3901 + ,128.21 + ,45.4005 + ,1.3975 + ,129.03 + ,45.89 + ,1.3991 + ,130.34 + ,45.189 + ,1.4089 + ,131.57 + ,44.9035 + ,1.413 + ,132.63 + ,44.9351 + ,1.409 + ,132.06 + ,44.801 + ,1.4217 + ,134.44 + ,43.98 + ,1.4223 + ,134.1 + ,44.11 + ,1.4191 + ,132.49 + ,44.2661 + ,1.4229 + ,134.23 + ,44.361 + ,1.4227 + ,134.92 + ,44.099 + ,1.4269 + ,135.61 + ,43.8435 + ,1.4229 + ,134.53 + ,43.8914 + ,1.4104 + ,133.86 + ,44.217 + ,1.4053 + ,133.89 + ,44.506 + ,1.4138 + ,135.33 + ,44.54 + ,1.4303 + ,135.86 + ,44.4465 + ,1.4384 + ,136.22 + ,44.842 + ,1.441 + ,137.38 + ,44.8946 + ,1.437 + ,137.31 + ,44.951 + ,1.4357 + ,136.89 + ,45.445 + ,1.4202 + ,138.01 + ,45.0035 + ,1.4166 + ,136.72 + ,45.769 + ,1.417 + ,135.77 + ,46.09 + ,1.4293 + ,137.52 + ,45.412 + ,1.4294 + ,135.61 + ,45.12 + ,1.4072 + ,132.94 + ,45.48 + ,1.4101 + ,134.12 + ,45.105 + ,1.4112 + ,132.55 + ,45.056 + ,1.4243 + ,134.11 + ,45.22 + ,1.433 + ,134.19 + ,45.39 + ,1.4323 + ,135.57 + ,45.041 + ,1.4324 + ,135.05 + ,44.9399 + ,1.427 + ,134.32 + ,44.9315 + ,1.4268 + ,133.61 + ,45.1935 + ,1.4364 + ,134.75 + ,45.3466 + ,1.4272 + ,133.1 + ,45.4645 + ,1.4314 + ,133.26 + ,45.5685 + ,1.422 + ,131.63 + ,45.3921 + ,1.4335 + ,132.47 + ,45.34 + ,1.4262 + ,132.45 + ,45.1308 + ,1.433 + ,133.33 + ,45.1005 + ,1.4473 + ,133.57 + ,45.37 + ,1.4522 + ,134.13 + ,45.2 + ,1.4545 + ,133.92 + ,44.9614 + ,1.4594 + ,132.62 + ,44.8015 + ,1.4561 + ,132.3 + ,44.9152 + ,1.4611 + ,133.26 + ,45.095 + ,1.4671 + ,132.6 + ,44.9271 + ,1.4712 + ,134.38 + ,44.6026 + ,1.4705 + ,134.17 + ,44.5 + ,1.4658 + ,135.46 + ,44.54 + ,1.478 + ,135.09 + ,44.5532 + ,1.4783 + ,134.96 + ,44.407 + ,1.4768 + ,133.85 + ,44.259 + ,1.467 + ,132.59 + ,44.1365 + ,1.465 + ,131.15 + ,44.112 + ,1.4549 + ,130.91 + ,43.8814 + ,1.4643 + ,131.07 + ,43.98 + ,1.4539 + ,130.78 + ,43.7294 + ,1.4537 + ,129.95 + ,43.9119 + ,1.4616 + ,131.41 + ,43.955 + ,1.4722 + ,131.21 + ,43.9 + ,1.4694 + ,130.68 + ,43.7065 + ,1.4763 + ,130.46 + ,43.6939 + ,1.475 + ,131.12 + ,43.6587 + ,1.4765 + ,132.99 + ,43.5885 + ,1.4864 + ,133.02 + ,43.8885 + ,1.4881 + ,133.39 + ,43.8216 + ,1.4864 + ,134.07 + ,43.751 + ,1.4869 + ,135.6 + ,43.699 + ,1.4918 + ,135.66 + ,43.7425 + ,1.4971 + ,135.53 + ,43.639 + ,1.4921 + ,135.82 + ,43.589 + ,1.5 + ,136.9 + ,43.606 + ,1.502 + ,137.97 + ,43.5325 + ,1.5019 + ,138.09 + ,43.385 + ,1.4874 + ,136.91 + ,43.3745 + ,1.4785 + ,134.76 + ,43.236 + ,1.4788 + ,135.13 + ,43.1957 + ,1.48 + ,134.66 + ,43.01 + ,1.4772 + ,132.95 + ,43.1401 + ,1.4658 + ,132.25 + ,43.0487 + ,1.4761 + ,134.3 + ,43.1972 + ,1.4867 + ,134.3 + ,43.2461 + ,1.4862 + ,134.76 + ,43.0866 + ,1.4984 + ,134.81 + ,43.0865 + ,1.4966 + ,134.51 + ,43.0194 + ,1.5037 + ,135.11 + ,43.08 + ,1.4922 + ,134.32 + ,43.007 + ,1.4868 + ,133.51 + ,42.9278 + ,1.4965 + ,134.02 + ,42.9545 + ,1.4875 + ,132.76 + ,42.7995 + ,1.4957 + ,133.39 + ,42.9048 + ,1.4863 + ,132.05 + ,42.9468 + ,1.4815 + ,131.87 + ,43.08 + ,1.4968 + ,133.03 + ,43.1274 + ,1.4969 + ,132.57 + ,43.1625 + ,1.5083 + ,132.1 + ,43.45 + ,1.5071 + ,130.7 + ,43.831 + ,1.4918 + ,129.2 + ,43.7769 + ,1.5023 + ,129.77 + ,43.98 + ,1.5074 + ,131.02 + ,43.92 + ,1.509 + ,131.55 + ,44.11 + ,1.512 + ,133.17 + ,44.03 + ,1.5068 + ,133.08 + ,44.1582 + ,1.4787 + ,133.24 + ,44.14 + ,1.4774 + ,130.74 + ,45.07 + ,1.4768 + ,129.91 + ,44.8737 + ,1.473 + ,130.03 + ,44.8505 + ,1.4757 + ,131.13 + ,44.373 + ,1.4647 + ,129.55 + ,44.075 + ,1.4541 + ,130.22 + ,43.9725 + ,1.456 + ,130.61 + ,44.094 + ,1.4343 + ,129.27 + ,44.191 + ,1.4337 + ,129.68 + ,43.9685 + ,1.4368 + ,130.1 + ,43.79 + ,1.4279 + ,130.83 + ,43.6041 + ,1.4276 + ,130.95 + ,43.1707 + ,1.4398 + ,131.73 + ,42.71 + ,1.4405 + ,131.86 + ,42.755 + ,1.4433 + ,132.44 + ,43.3316 + ,1.4338 + ,132.35 + ,43.5 + ,1.4406 + ,133.16 + ,43.154 + ,1.4389 + ,133.62 + ,43.16 + ,1.4442 + ,132.54 + ,43.1 + ,1.435 + ,132.69 + ,42.85 + ,1.4304 + ,133.5 + ,42.6175 + ,1.4273 + ,133.36 + ,42.5 + ,1.4528 + ,134.23 + ,42.6285 + ,1.4481 + ,132.41 + ,42.6974 + ,1.4563 + ,133.02 + ,43.04 + ,1.4486 + ,132.88 + ,42.673 + ,1.4374 + ,130.76 + ,42.5015 + ,1.4369 + ,130.33 + ,42.538 + ,1.4279 + ,129.79 + ,42.3735 + ,1.4132 + ,128.65 + ,42.014 + ,1.4064 + ,129.14 + ,41.8618 + ,1.4135 + ,127.35 + ,42.1824 + ,1.4151 + ,127.74 + ,42.605 + ,1.4085 + ,126.31 + ,42.7345 + ,1.4072 + ,125.95 + ,42.615 + ,1.3999 + ,126.36 + ,42.465 + ,1.3966 + ,126.15 + ,42.34 + ,1.3913 + ,125.6 + ,42.251 + ,1.3937 + ,126.2 + ,42.0475 + ,1.3984 + ,126.73 + ,41.86 + ,1.3847 + ,125.68 + ,41.685 + ,1.3691 + ,122.49 + ,41.735 + ,1.3675 + ,122.07 + ,41.706 + ,1.376 + ,123.4 + ,41.764 + ,1.374 + ,123.01 + ,41.58 + ,1.3718 + ,123.03 + ,41.373 + ,1.3572 + ,122.33 + ,41.088 + ,1.3607 + ,122.42 + ,41.137 + ,1.3649 + ,122.68 + ,41.1587 + ,1.3726 + ,124.69 + ,41.185 + ,1.3567 + ,123.3 + ,40.819 + ,1.3519 + ,124.17 + ,40.633 + ,1.3626 + ,124.38 + ,40.858 + ,1.3577 + ,123.19 + ,40.794 + ,1.3547 + ,122.16 + ,40.69 + ,1.3489 + ,120.66 + ,40.595 + ,1.357 + ,120.92 + ,40.7305 + ,1.3525 + ,120.67 + ,40.5471 + ,1.3548 + ,120.68 + ,40.5145 + ,1.3641 + ,121.1 + ,40.7 + ,1.3668 + ,120.86 + ,40.7 + ,1.3582 + ,121.48 + ,40.522 + ,1.3662 + ,123.48 + ,40.6165 + ,1.3557 + ,121.72 + ,40.3985 + ,1.361 + ,123.16 + ,40.2815 + ,1.3657 + ,123.84 + ,40.245 + ,1.3765 + ,124.57 + ,40.3055 + ,1.3705 + ,124.3 + ,40.2696 + ,1.3723 + ,124.22 + ,40.251 + ,1.3756 + ,124.43 + ,40.127 + ,1.366 + ,123.33 + ,39.95 + ,1.3548 + ,122.86 + ,39.675 + ,1.3471 + ,121.25 + ,39.954 + ,1.3519 + ,122.16 + ,39.8828 + ,1.3338 + ,122.62 + ,39.62 + ,1.3356 + ,123.44 + ,39.5415 + ,1.3353 + ,124 + ,39.525 + ,1.3471 + ,124.75 + ,39.8145 + ,1.3482 + ,124.8 + ,39.6675 + ,1.3479 + ,125.93 + ,39.695 + ,1.3468 + ,126.28 + ,39.5985 + ,1.3396 + ,126.04 + ,39.2735 + ,1.334 + ,125.04 + ,39.1435 + ,1.3296 + ,123.76 + ,39.1742 + ,1.3384 + ,125.34 + ,39.2025 + ,1.3585 + ,126.99 + ,39.3946 + ,1.3583 + ,126.34 + ,39.5025 + ,1.3615 + ,127.42 + ,39.4845 + ,1.3544 + ,126.18 + ,39.33 + ,1.3535 + ,125.3 + ,39.295 + ,1.3432 + ,123.5 + ,39.2675 + ,1.3486 + ,125.32 + ,39.2535 + ,1.3373 + ,124.65 + ,38.9845 + ,1.3339 + ,124.03 + ,38.9285 + ,1.3311 + ,125.11 + ,38.8592 + ,1.3321 + ,125.46 + ,38.77 + ,1.329 + ,124.7 + ,38.79 + ,1.3245 + ,124.48 + ,38.8205 + ,1.3256 + ,124.76 + ,38.7577 + ,1.3315 + ,125.81 + ,38.839 + ,1.3238 + ,124.95 + ,38.78 + ,1.3089 + ,123.66 + ,38.54 + ,1.2924 + ,122.66 + ,38.511 + ,1.2727 + ,119.34 + ,38.615 + ,1.2746 + ,117.84 + ,38.898 + ,1.2969 + ,120.97 + ,38.8691 + ,1.2698 + ,117.38 + ,38.384 + ,1.2686 + ,118.06 + ,38.0277 + ,1.2587 + ,116.99 + ,37.72 + ,1.2492 + ,115.55 + ,37.7325 + ,1.2349 + ,114.17 + ,37.626 + ,1.2428 + ,115.32 + ,37.603 + ,1.227 + ,112.49 + ,37.78 + ,1.2334 + ,111.93 + ,38.559 + ,1.2497 + ,112.08 + ,39.0459 + ,1.236 + ,111.63 + ,38.45 + ,1.2223 + ,109.53 + ,38.505 + ,1.2309 + ,111.35 + ,38.2885 + ,1.2255 + ,110.79 + ,37.795 + ,1.2384 + ,113.06 + ,37.92 + ,1.2307 + ,112.62 + ,38.034 + ,1.2155 + ,110.65 + ,38.029 + ,1.2218 + ,112.36 + ,38.063 + ,1.2268 + ,113.74 + ,37.9828 + ,1.206 + ,111.73 + ,37.745 + ,1.1959 + ,109.86 + ,37.969 + ,1.1942 + ,109.32 + ,38.007 + ,1.201 + ,109.99 + ,38.0615 + ,1.2045 + ,109.84 + ,38.0912 + ,1.2127 + ,111.13 + ,38.091 + ,1.2249 + ,112.43 + ,38.431 + ,1.2258 + ,111.77 + ,38.48 + ,1.2277 + ,112.15 + ,38.35 + ,1.2363 + ,112.89 + ,38.214 + ,1.2372 + ,112.12 + ,38.384 + ,1.2391 + ,113.1 + ,38.1375 + ,1.2258 + ,111.09 + ,38.0075 + ,1.2271 + ,110.76 + ,38.0524 + ,1.2262 + ,109.59 + ,38.235 + ,1.2294 + ,109.99 + ,38.31 + ,1.2339 + ,110.25 + ,38.2615 + ,1.2198 + ,108.31 + ,38.13 + ,1.2271 + ,108.79 + ,38.282 + ,1.2328 + ,108.14 + ,38.581 + ,1.2548 + ,109.88 + ,39.0801 + ,1.2531 + ,109.93 + ,39.0387 + ,1.2579 + ,110.46 + ,39.1015 + ,1.2567 + ,109.56 + ,39.1503 + ,1.266 + ,111.49 + ,39.14 + ,1.2637 + ,111.85 + ,39.0275 + ,1.2572 + ,111.35 + ,38.7665 + ,1.2569 + ,110.95 + ,38.691 + ,1.2703 + ,112.49 + ,38.849 + ,1.2828 + ,113.11 + ,39.1644 + ,1.3 + ,112.54 + ,39.4907 + ,1.2957 + ,112.84 + ,39.5095 + ,1.2844 + ,111.5 + ,39.2795 + ,1.2817 + ,111.52 + ,39.0437 + ,1.285 + ,111.57 + ,39.1355 + ,1.2897 + ,112.48 + ,39.143 + ,1.2931 + ,112.31 + ,39.185 + ,1.3033 + ,113.79 + ,39.355 + ,1.2992 + ,114.01 + ,39.297 + ,1.3069 + ,113.64 + ,39.4514 + ,1.3028 + ,112.62 + ,39.4173 + ,1.3073 + ,113.27 + ,39.4305 + ,1.3221 + ,113.51 + ,39.384 + ,1.3206 + ,112.92 + ,39.3261 + ,1.3184 + ,113.66 + ,39.301 + ,1.3176 + ,113.14 + ,39.35 + ,1.3253 + ,113.48 + ,39.64 + ,1.3133 + ,113.23 + ,39.4723 + ,1.3016 + ,110.56 + ,39.3685 + ,1.279 + ,109.5 + ,39.1906 + ,1.2799 + ,109.78 + ,39.1183 + ,1.282 + ,109.49 + ,39.1325 + ,1.286 + ,109.66 + ,39.1144 + ,1.288 + ,109.93 + ,39.1614 + ,1.2836 + ,109.82 + ,39.0908 + ,1.2711 + ,108.54 + ,38.9199 + ,1.2704 + ,108.23 + ,38.913 + ,1.2611 + ,106.19 + ,38.9655 + ,1.2613 + ,106.49 + ,39.029 + ,1.2693 + ,107.15 + ,39.089 + ,1.2713 + ,107.74 + ,39.07 + ,1.27 + ,107.54 + ,39.0046 + ,1.268 + ,107.07 + ,39.1038 + ,1.28 + ,107.54 + ,39.3572 + ,1.2818 + ,107.81 + ,39.388 + ,1.2834 + ,108.38 + ,39.382 + ,1.2874 + ,108.42 + ,39.4398 + ,1.2744 + ,106.86 + ,39.2537 + ,1.2697 + ,106.41 + ,39.2301 + ,1.2715 + ,106.46 + ,39.2763 + ,1.2725 + ,106.84 + ,39.282 + ,1.2801 + ,107.69 + ,39.3325 + ,1.285 + ,107.04 + ,39.557 + ,1.2989 + ,111.04 + ,40.1 + ,1.3078 + ,111.93 + ,40.5875 + ,1.306 + ,111.98 + ,40.485 + ,1.3074 + ,112.07 + ,40.55 + ,1.312 + ,112.05 + ,40.7955 + ,1.3364 + ,113.14 + ,41.456 + ,1.3323 + ,112.49 + ,41.3557 + ,1.3412 + ,113.2 + ,41.374 + ,1.3477 + ,113.52 + ,41.2235 + ,1.346 + ,113.22 + ,41.15 + ,1.3611 + ,113.85 + ,41.3725 + ,1.3648 + ,113.68 + ,41.6923 + ,1.3726 + ,114.26 + ,41.8 + ,1.3705 + ,114.1 + ,41.8045 + ,1.378 + ,114.8 + ,41.64 + ,1.3856 + ,114.98 + ,41.36 + ,1.397 + ,115.1 + ,41.5745 + ,1.3874 + ,114.21 + ,41.593 + ,1.3936 + ,114.24 + ,41.575 + ,1.3833 + ,113.35 + ,41.68 + ,1.3958 + ,114.23 + ,42.0055 + ,1.4101 + ,114.43 + ,42.3188 + ,1.4089 + ,114.28 + ,42.565 + ,1.3896 + ,113 + ,42.3575 + ,1.3859 + ,113.16 + ,42.29 + ,1.3861 + ,112.59 + ,42.695 + ,1.4016 + ,113.65 + ,43.0028 + ,1.3934 + ,113.18 + ,42.4507 + ,1.4031 + ,113.21 + ,42.4705 + ,1.3912 + ,113.11 + ,42.2875 + ,1.3803 + ,112.78 + ,42.3172 + ,1.3857 + ,112.57 + ,42.55 + ,1.3857 + ,111.87 + ,42.7523 + ,1.3926 + ,111.94 + ,42.8993 + ,1.4018 + ,113.18 + ,43.1555 + ,1.4014 + ,113.67 + ,43.1885 + ,1.4244 + ,115.15 + ,43.43 + ,1.4084 + ,114.41 + ,43.31 + ,1.3917 + ,112.88 + ,42.815 + ,1.3945 + ,112.44 + ,42.7017 + ,1.377 + ,113.48 + ,42.28 + ,1.37 + ,112.78 + ,41.922 + ,1.3711 + ,112.59 + ,42.17 + ,1.3626 + ,113.31 + ,42.1962 + ,1.3612 + ,113.21 + ,42.3215 + ,1.3481 + ,112.5 + ,42.3173 + ,1.3647 + ,113.72 + ,42.391 + ,1.3674 + ,114.09 + ,42.463 + ,1.3647 + ,113.97 + ,42.4125 + ,1.3496 + ,112.5 + ,42.304 + ,1.3339 + ,111.28 + ,41.813 + ,1.3321 + ,111.35 + ,41.651 + ,1.3225 + ,110.92 + ,41.539 + ,1.3146 + ,110.73 + ,41.1575 + ,1.2998 + ,109 + ,40.9545) + ,dim=c(3 + ,491) + ,dimnames=list(c('Dollar' + ,'Yen' + ,'Roebel') + ,1:491)) > y <- array(NA,dim=c(3,491),dimnames=list(c('Dollar','Yen','Roebel'),1:491)) > 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 = '2' > par2 = 'quantiles' > par1 = '3' > #'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 Attaching package: 'zoo' The following object(s) are masked from package:base : as.Date.numeric 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] "Roebel" > x[,par1] [1] 40.7819 39.5915 38.8859 39.9068 41.4700 41.5613 41.6005 41.4113 41.8400 [10] 42.2892 43.1521 43.5998 43.1160 42.4185 42.3687 42.2975 42.8528 43.5350 [19] 44.7265 45.7293 45.7585 46.1685 46.5075 46.5270 46.6010 46.4607 46.7135 [28] 46.4113 45.5500 44.6081 44.4395 44.9847 45.7558 45.3942 45.6970 45.5664 [37] 46.0205 45.9195 45.8005 45.5350 45.4977 45.5782 45.7697 45.2445 45.0615 [46] 45.2865 44.7910 44.7625 44.7644 44.9973 44.7265 45.1465 44.7465 45.1795 [55] 45.6515 45.4920 45.2775 45.2115 45.4110 45.4005 44.7692 44.8913 45.0320 [64] 44.8790 44.8330 44.8257 44.7815 44.4790 44.6317 44.5043 44.3217 44.1005 [73] 44.0470 43.6835 43.7864 44.1807 43.9595 43.9370 43.9910 43.8650 43.6710 [82] 43.9300 43.8630 43.7095 43.9435 43.7360 43.6295 43.5980 43.8726 43.8935 [91] 43.5957 43.7155 43.5280 43.3415 43.3374 43.3320 43.3869 43.5016 43.4875 [100] 43.6023 43.3886 43.3105 43.4455 43.5185 43.5755 43.6217 43.6440 43.5789 [109] 43.5215 43.5033 43.6320 43.2630 43.3717 43.2745 43.2647 43.3240 43.4455 [118] 43.4098 43.4100 43.9300 43.8104 43.5400 43.8580 43.8375 43.8810 43.8870 [127] 43.8009 43.7877 43.8110 44.0625 44.1250 44.5200 45.4005 45.8900 45.1890 [136] 44.9035 44.9351 44.8010 43.9800 44.1100 44.2661 44.3610 44.0990 43.8435 [145] 43.8914 44.2170 44.5060 44.5400 44.4465 44.8420 44.8946 44.9510 45.4450 [154] 45.0035 45.7690 46.0900 45.4120 45.1200 45.4800 45.1050 45.0560 45.2200 [163] 45.3900 45.0410 44.9399 44.9315 45.1935 45.3466 45.4645 45.5685 45.3921 [172] 45.3400 45.1308 45.1005 45.3700 45.2000 44.9614 44.8015 44.9152 45.0950 [181] 44.9271 44.6026 44.5000 44.5400 44.5532 44.4070 44.2590 44.1365 44.1120 [190] 43.8814 43.9800 43.7294 43.9119 43.9550 43.9000 43.7065 43.6939 43.6587 [199] 43.5885 43.8885 43.8216 43.7510 43.6990 43.7425 43.6390 43.5890 43.6060 [208] 43.5325 43.3850 43.3745 43.2360 43.1957 43.0100 43.1401 43.0487 43.1972 [217] 43.2461 43.0866 43.0865 43.0194 43.0800 43.0070 42.9278 42.9545 42.7995 [226] 42.9048 42.9468 43.0800 43.1274 43.1625 43.4500 43.8310 43.7769 43.9800 [235] 43.9200 44.1100 44.0300 44.1582 44.1400 45.0700 44.8737 44.8505 44.3730 [244] 44.0750 43.9725 44.0940 44.1910 43.9685 43.7900 43.6041 43.1707 42.7100 [253] 42.7550 43.3316 43.5000 43.1540 43.1600 43.1000 42.8500 42.6175 42.5000 [262] 42.6285 42.6974 43.0400 42.6730 42.5015 42.5380 42.3735 42.0140 41.8618 [271] 42.1824 42.6050 42.7345 42.6150 42.4650 42.3400 42.2510 42.0475 41.8600 [280] 41.6850 41.7350 41.7060 41.7640 41.5800 41.3730 41.0880 41.1370 41.1587 [289] 41.1850 40.8190 40.6330 40.8580 40.7940 40.6900 40.5950 40.7305 40.5471 [298] 40.5145 40.7000 40.7000 40.5220 40.6165 40.3985 40.2815 40.2450 40.3055 [307] 40.2696 40.2510 40.1270 39.9500 39.6750 39.9540 39.8828 39.6200 39.5415 [316] 39.5250 39.8145 39.6675 39.6950 39.5985 39.2735 39.1435 39.1742 39.2025 [325] 39.3946 39.5025 39.4845 39.3300 39.2950 39.2675 39.2535 38.9845 38.9285 [334] 38.8592 38.7700 38.7900 38.8205 38.7577 38.8390 38.7800 38.5400 38.5110 [343] 38.6150 38.8980 38.8691 38.3840 38.0277 37.7200 37.7325 37.6260 37.6030 [352] 37.7800 38.5590 39.0459 38.4500 38.5050 38.2885 37.7950 37.9200 38.0340 [361] 38.0290 38.0630 37.9828 37.7450 37.9690 38.0070 38.0615 38.0912 38.0910 [370] 38.4310 38.4800 38.3500 38.2140 38.3840 38.1375 38.0075 38.0524 38.2350 [379] 38.3100 38.2615 38.1300 38.2820 38.5810 39.0801 39.0387 39.1015 39.1503 [388] 39.1400 39.0275 38.7665 38.6910 38.8490 39.1644 39.4907 39.5095 39.2795 [397] 39.0437 39.1355 39.1430 39.1850 39.3550 39.2970 39.4514 39.4173 39.4305 [406] 39.3840 39.3261 39.3010 39.3500 39.6400 39.4723 39.3685 39.1906 39.1183 [415] 39.1325 39.1144 39.1614 39.0908 38.9199 38.9130 38.9655 39.0290 39.0890 [424] 39.0700 39.0046 39.1038 39.3572 39.3880 39.3820 39.4398 39.2537 39.2301 [433] 39.2763 39.2820 39.3325 39.5570 40.1000 40.5875 40.4850 40.5500 40.7955 [442] 41.4560 41.3557 41.3740 41.2235 41.1500 41.3725 41.6923 41.8000 41.8045 [451] 41.6400 41.3600 41.5745 41.5930 41.5750 41.6800 42.0055 42.3188 42.5650 [460] 42.3575 42.2900 42.6950 43.0028 42.4507 42.4705 42.2875 42.3172 42.5500 [469] 42.7523 42.8993 43.1555 43.1885 43.4300 43.3100 42.8150 42.7017 42.2800 [478] 41.9220 42.1700 42.1962 42.3215 42.3173 42.3910 42.4630 42.4125 42.3040 [487] 41.8130 41.6510 41.5390 41.1575 40.9545 > 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]) [37.6,42.9) [42.9,46.7] 246 245 > colnames(x) [1] "Dollar" "Yen" "Roebel" > colnames(x)[par1] [1] "Roebel" > x[,par1] [1] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [7] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [42.9,46.7] [42.9,46.7] [13] [42.9,46.7] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [42.9,46.7] [19] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [25] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [31] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [37] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [43] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [49] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [55] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [61] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [67] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [73] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [79] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [85] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [91] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [97] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [103] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [109] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [115] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [121] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [127] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [133] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [139] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [145] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [151] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [157] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [163] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [169] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [175] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [181] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [187] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [193] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [199] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [205] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [211] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [217] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [223] [37.6,42.9) [42.9,46.7] [37.6,42.9) [37.6,42.9) [42.9,46.7] [42.9,46.7] [229] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [235] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [241] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [247] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [37.6,42.9) [253] [37.6,42.9) [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [259] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [42.9,46.7] [265] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [271] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [277] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [283] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [289] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [295] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [301] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [307] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [313] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [319] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [325] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [331] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [337] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [343] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [349] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [355] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [361] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [367] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [373] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [379] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [385] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [391] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [397] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [403] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [409] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [415] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [421] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [427] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [433] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [439] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [445] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [451] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [457] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [463] [42.9,46.7] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [469] [37.6,42.9) [37.6,42.9) [42.9,46.7] [42.9,46.7] [42.9,46.7] [42.9,46.7] [475] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [481] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [487] [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) [37.6,42.9) Levels: [37.6,42.9) [42.9,46.7] > if (par2 == 'none') { + m <- ctree(as.formula(paste(colnames(x)[par1],' ~ .',sep='')),data = x) + } > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/www/html/rcomp/tmp/1vwjh1292973293.tab") + } + } > m Conditional inference tree with 6 terminal nodes Response: as.factor(Roebel) Inputs: Dollar, Yen Number of observations: 491 1) Yen <= 127.74; criterion = 1, statistic = 247.321 2) Yen <= 113.64; criterion = 0.999, statistic = 13.131 3)* weights = 117 2) Yen > 113.64 4) Dollar <= 1.3182; criterion = 1, statistic = 42.319 5) Yen <= 118.06; criterion = 0.997, statistic = 10.087 6)* weights = 30 5) Yen > 118.06 7)* weights = 29 4) Dollar > 1.3182 8) Yen <= 120.11; criterion = 0.999, statistic = 12.625 9)* weights = 23 8) Yen > 120.11 10)* weights = 77 1) Yen > 127.74 11)* weights = 215 > postscript(file="/var/www/html/rcomp/tmp/2vwjh1292973293.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/www/html/rcomp/tmp/3vwjh1292973293.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,] 1 1 [2,] 1 1 [3,] 1 1 [4,] 1 1 [5,] 1 1 [6,] 1 1 [7,] 1 1 [8,] 1 1 [9,] 1 1 [10,] 1 1 [11,] 2 1 [12,] 2 2 [13,] 2 1 [14,] 1 1 [15,] 1 1 [16,] 1 1 [17,] 1 1 [18,] 2 1 [19,] 2 1 [20,] 2 2 [21,] 2 1 [22,] 2 1 [23,] 2 1 [24,] 2 1 [25,] 2 1 [26,] 2 1 [27,] 2 2 [28,] 2 2 [29,] 2 1 [30,] 2 1 [31,] 2 1 [32,] 2 1 [33,] 2 1 [34,] 2 1 [35,] 2 2 [36,] 2 2 [37,] 2 2 [38,] 2 2 [39,] 2 2 [40,] 2 2 [41,] 2 2 [42,] 2 2 [43,] 2 2 [44,] 2 2 [45,] 2 2 [46,] 2 2 [47,] 2 2 [48,] 2 2 [49,] 2 2 [50,] 2 2 [51,] 2 2 [52,] 2 2 [53,] 2 2 [54,] 2 2 [55,] 2 2 [56,] 2 2 [57,] 2 2 [58,] 2 2 [59,] 2 2 [60,] 2 2 [61,] 2 2 [62,] 2 2 [63,] 2 2 [64,] 2 2 [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,] 2 2 [80,] 2 2 [81,] 2 2 [82,] 2 2 [83,] 2 2 [84,] 2 2 [85,] 2 2 [86,] 2 2 [87,] 2 2 [88,] 2 2 [89,] 2 2 [90,] 2 2 [91,] 2 2 [92,] 2 2 [93,] 2 2 [94,] 2 2 [95,] 2 2 [96,] 2 2 [97,] 2 2 [98,] 2 2 [99,] 2 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,] 2 2 [109,] 2 2 [110,] 2 2 [111,] 2 2 [112,] 2 2 [113,] 2 2 [114,] 2 2 [115,] 2 2 [116,] 2 2 [117,] 2 2 [118,] 2 2 [119,] 2 2 [120,] 2 2 [121,] 2 2 [122,] 2 2 [123,] 2 2 [124,] 2 2 [125,] 2 2 [126,] 2 2 [127,] 2 2 [128,] 2 2 [129,] 2 2 [130,] 2 2 [131,] 2 2 [132,] 2 2 [133,] 2 2 [134,] 2 2 [135,] 2 2 [136,] 2 2 [137,] 2 2 [138,] 2 2 [139,] 2 2 [140,] 2 2 [141,] 2 2 [142,] 2 2 [143,] 2 2 [144,] 2 2 [145,] 2 2 [146,] 2 2 [147,] 2 2 [148,] 2 2 [149,] 2 2 [150,] 2 2 [151,] 2 2 [152,] 2 2 [153,] 2 2 [154,] 2 2 [155,] 2 2 [156,] 2 2 [157,] 2 2 [158,] 2 2 [159,] 2 2 [160,] 2 2 [161,] 2 2 [162,] 2 2 [163,] 2 2 [164,] 2 2 [165,] 2 2 [166,] 2 2 [167,] 2 2 [168,] 2 2 [169,] 2 2 [170,] 2 2 [171,] 2 2 [172,] 2 2 [173,] 2 2 [174,] 2 2 [175,] 2 2 [176,] 2 2 [177,] 2 2 [178,] 2 2 [179,] 2 2 [180,] 2 2 [181,] 2 2 [182,] 2 2 [183,] 2 2 [184,] 2 2 [185,] 2 2 [186,] 2 2 [187,] 2 2 [188,] 2 2 [189,] 2 2 [190,] 2 2 [191,] 2 2 [192,] 2 2 [193,] 2 2 [194,] 2 2 [195,] 2 2 [196,] 2 2 [197,] 2 2 [198,] 2 2 [199,] 2 2 [200,] 2 2 [201,] 2 2 [202,] 2 2 [203,] 2 2 [204,] 2 2 [205,] 2 2 [206,] 2 2 [207,] 2 2 [208,] 2 2 [209,] 2 2 [210,] 2 2 [211,] 2 2 [212,] 2 2 [213,] 2 2 [214,] 2 2 [215,] 2 2 [216,] 2 2 [217,] 2 2 [218,] 2 2 [219,] 2 2 [220,] 2 2 [221,] 2 2 [222,] 2 2 [223,] 1 2 [224,] 2 2 [225,] 1 2 [226,] 1 2 [227,] 2 2 [228,] 2 2 [229,] 2 2 [230,] 2 2 [231,] 2 2 [232,] 2 2 [233,] 2 2 [234,] 2 2 [235,] 2 2 [236,] 2 2 [237,] 2 2 [238,] 2 2 [239,] 2 2 [240,] 2 2 [241,] 2 2 [242,] 2 2 [243,] 2 2 [244,] 2 2 [245,] 2 2 [246,] 2 2 [247,] 2 2 [248,] 2 2 [249,] 2 2 [250,] 2 2 [251,] 2 2 [252,] 1 2 [253,] 1 2 [254,] 2 2 [255,] 2 2 [256,] 2 2 [257,] 2 2 [258,] 2 2 [259,] 1 2 [260,] 1 2 [261,] 1 2 [262,] 1 2 [263,] 1 2 [264,] 2 2 [265,] 1 2 [266,] 1 2 [267,] 1 2 [268,] 1 2 [269,] 1 2 [270,] 1 2 [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,] 1 1 [283,] 1 1 [284,] 1 1 [285,] 1 1 [286,] 1 1 [287,] 1 1 [288,] 1 1 [289,] 1 1 [290,] 1 1 [291,] 1 1 [292,] 1 1 [293,] 1 1 [294,] 1 1 [295,] 1 1 [296,] 1 1 [297,] 1 1 [298,] 1 1 [299,] 1 1 [300,] 1 1 [301,] 1 1 [302,] 1 1 [303,] 1 1 [304,] 1 1 [305,] 1 1 [306,] 1 1 [307,] 1 1 [308,] 1 1 [309,] 1 1 [310,] 1 1 [311,] 1 1 [312,] 1 1 [313,] 1 1 [314,] 1 1 [315,] 1 1 [316,] 1 1 [317,] 1 1 [318,] 1 1 [319,] 1 1 [320,] 1 1 [321,] 1 1 [322,] 1 1 [323,] 1 1 [324,] 1 1 [325,] 1 1 [326,] 1 1 [327,] 1 1 [328,] 1 1 [329,] 1 1 [330,] 1 1 [331,] 1 1 [332,] 1 1 [333,] 1 1 [334,] 1 1 [335,] 1 1 [336,] 1 1 [337,] 1 1 [338,] 1 1 [339,] 1 1 [340,] 1 1 [341,] 1 2 [342,] 1 2 [343,] 1 2 [344,] 1 1 [345,] 1 2 [346,] 1 1 [347,] 1 1 [348,] 1 1 [349,] 1 1 [350,] 1 1 [351,] 1 1 [352,] 1 1 [353,] 1 1 [354,] 1 1 [355,] 1 1 [356,] 1 1 [357,] 1 1 [358,] 1 1 [359,] 1 1 [360,] 1 1 [361,] 1 1 [362,] 1 1 [363,] 1 1 [364,] 1 1 [365,] 1 1 [366,] 1 1 [367,] 1 1 [368,] 1 1 [369,] 1 1 [370,] 1 1 [371,] 1 1 [372,] 1 1 [373,] 1 1 [374,] 1 1 [375,] 1 1 [376,] 1 1 [377,] 1 1 [378,] 1 1 [379,] 1 1 [380,] 1 1 [381,] 1 1 [382,] 1 1 [383,] 1 1 [384,] 1 1 [385,] 1 1 [386,] 1 1 [387,] 1 1 [388,] 1 1 [389,] 1 1 [390,] 1 1 [391,] 1 1 [392,] 1 1 [393,] 1 1 [394,] 1 1 [395,] 1 1 [396,] 1 1 [397,] 1 1 [398,] 1 1 [399,] 1 1 [400,] 1 1 [401,] 1 1 [402,] 1 1 [403,] 1 1 [404,] 1 1 [405,] 1 1 [406,] 1 1 [407,] 1 1 [408,] 1 1 [409,] 1 1 [410,] 1 1 [411,] 1 1 [412,] 1 1 [413,] 1 1 [414,] 1 1 [415,] 1 1 [416,] 1 1 [417,] 1 1 [418,] 1 1 [419,] 1 1 [420,] 1 1 [421,] 1 1 [422,] 1 1 [423,] 1 1 [424,] 1 1 [425,] 1 1 [426,] 1 1 [427,] 1 1 [428,] 1 1 [429,] 1 1 [430,] 1 1 [431,] 1 1 [432,] 1 1 [433,] 1 1 [434,] 1 1 [435,] 1 1 [436,] 1 1 [437,] 1 1 [438,] 1 1 [439,] 1 1 [440,] 1 1 [441,] 1 1 [442,] 1 1 [443,] 1 1 [444,] 1 1 [445,] 1 1 [446,] 1 1 [447,] 1 1 [448,] 1 1 [449,] 1 1 [450,] 1 1 [451,] 1 1 [452,] 1 1 [453,] 1 1 [454,] 1 1 [455,] 1 1 [456,] 1 1 [457,] 1 1 [458,] 1 1 [459,] 1 1 [460,] 1 1 [461,] 1 1 [462,] 1 1 [463,] 2 1 [464,] 1 1 [465,] 1 1 [466,] 1 1 [467,] 1 1 [468,] 1 1 [469,] 1 1 [470,] 1 1 [471,] 2 1 [472,] 2 1 [473,] 2 1 [474,] 2 1 [475,] 1 1 [476,] 1 1 [477,] 1 1 [478,] 1 1 [479,] 1 1 [480,] 1 1 [481,] 1 1 [482,] 1 1 [483,] 1 1 [484,] 1 1 [485,] 1 1 [486,] 1 1 [487,] 1 1 [488,] 1 1 [489,] 1 1 [490,] 1 1 [491,] 1 1 [37.6,42.9) [42.9,46.7] [37.6,42.9) 226 20 [42.9,46.7] 21 224 > postscript(file="/var/www/html/rcomp/tmp/4o5ik1292973293.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/www/html/rcomp/tmp/52xyb1292973293.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/www/html/rcomp/tmp/6dofw1292973293.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/www/html/rcomp/tmp/7g6ek1292973293.tab") + } > > try(system("convert tmp/2vwjh1292973293.ps tmp/2vwjh1292973293.png",intern=TRUE)) character(0) > try(system("convert tmp/3vwjh1292973293.ps tmp/3vwjh1292973293.png",intern=TRUE)) character(0) > try(system("convert tmp/4o5ik1292973293.ps tmp/4o5ik1292973293.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.714 0.517 6.033