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.2894 + ,8.9000 + ,8.7000 + ,95.4000 + ,2504.5800 + ,16.0000 + ,16.6000 + ,3.0000 + ,-4.0000 + ,17.0000 + ,1.2770 + ,8.9000 + ,8.9000 + ,86.2000 + ,2462.3200 + ,17.7000 + ,17.2000 + ,7.0000 + ,-4.0000 + ,23.0000 + ,1.2208 + ,8.1000 + ,8.9000 + ,111.7000 + ,2467.3800 + ,19.8000 + ,19.2000 + ,4.0000 + ,-7.0000 + ,24.0000 + ,1.2565 + ,8.0000 + ,8.1000 + ,97.5000 + ,2446.6600 + ,17.0000 + ,17.1000 + ,-4.0000 + ,-9.0000 + ,27.0000 + ,1.3406 + ,8.3000 + ,8.0000 + ,99.7000 + ,2656.3200 + ,17.4000 + ,17.7000 + ,-6.0000 + ,-13.0000 + ,31.0000 + ,1.3569 + ,8.5000 + ,8.3000 + ,111.5000 + ,2626.1500 + ,18.9000 + ,18.7000 + ,8.0000 + ,-8.0000 + ,40.0000 + ,1.3686 + ,8.7000 + ,8.5000 + ,91.8000 + ,2482.6000 + ,15.7000 + ,15.9000 + ,2.0000 + ,-13.0000 + ,47.0000 + ,1.4272 + ,8.6000 + ,8.7000 + ,86.3000 + ,2539.9100 + ,15.2000 + ,16.0000 + ,-1.0000 + ,-15.0000 + ,43.0000 + ,1.4614 + ,8.3000 + ,8.6000 + ,88.7000 + ,2502.6600 + ,15.8000 + ,16.8000 + ,-2.0000 + ,-15.0000 + ,60.0000 + ,1.4914 + ,7.9000 + ,8.3000 + ,95.1000 + ,2466.9200 + ,16.0000 + ,16.0000 + ,0.0000 + ,-15.0000 + ,64.0000 + ,1.4816 + ,7.9000 + ,7.9000 + ,105.1000 + ,2513.1700 + ,16.1000 + ,16.8000 + ,10.0000 + ,-10.0000 + ,65.0000 + ,1.4562 + ,8.1000 + ,7.9000 + ,104.5000 + ,2443.2700 + ,16.2000 + ,16.3000 + ,3.0000 + ,-12.0000 + ,65.0000 + ,1.4268 + ,8.3000 + ,8.1000 + ,89.1000 + ,2293.4100 + ,12.5000 + ,13.6000 + ,6.0000 + ,-11.0000 + ,55.0000 + ,1.4088 + ,8.1000 + ,8.3000 + ,82.6000 + ,2070.8300 + ,14.8000 + ,14.3000 + ,7.0000 + ,-11.0000 + ,57.0000 + ,1.4016 + ,7.4000 + ,8.1000 + ,102.7000 + ,2029.6000 + ,15.4000 + ,15.5000 + ,-4.0000 + ,-17.0000 + ,57.0000 + ,1.3650 + ,7.3000 + ,7.4000 + ,91.8000 + ,2052.0200 + ,13.6000 + ,13.9000 + ,-5.0000 + ,-18.0000 + ,57.0000 + ,1.3190 + ,7.7000 + ,7.3000 + ,94.1000 + ,1864.4400 + ,14.2000 + ,14.3000 + ,-7.0000 + ,-19.0000 + ,65.0000 + ,1.3050 + ,8.0000 + ,7.7000 + ,103.1000 + ,1670.0700 + ,15.0000 + ,15.8000 + ,-10.0000 + ,-22.0000 + ,69.0000 + ,1.2785 + ,8.0000 + ,8.0000 + ,93.2000 + ,1810.9900 + ,14.1000 + ,14.5000 + ,-21.0000 + ,-24.0000 + ,70.0000 + ,1.3239 + ,7.7000 + ,8.0000 + ,91.0000 + ,1905.4100 + ,13.7000 + ,15.1000 + ,-22.0000 + ,-24.0000 + ,71.0000 + ,1.3449 + ,6.9000 + ,7.7000 + ,94.3000 + ,1862.8300 + ,14.4000 + ,15.8000 + ,-16.0000 + ,-20.0000 + ,71.0000 + ,1.2732 + ,6.6000 + ,6.9000 + ,99.4000 + ,2014.4500 + ,15.6000 + ,17.2000 + ,-25.0000 + ,-25.0000 + ,73.0000 + ,1.3322 + ,6.9000 + ,6.6000 + ,115.7000 + ,2197.8200 + ,19.7000 + ,20.4000 + ,-22.0000 + ,-22.0000 + ,68.0000 + ,1.4369 + ,7.5000 + ,6.9000 + ,116.8000 + ,2962.3400 + ,20.4000 + ,21.3000 + ,-22.0000 + ,-17.0000 + ,65.0000 + ,1.4975 + ,7.9000 + ,7.5000 + ,99.8000 + ,3047.0300 + ,16.1000 + ,18.2000 + ,-19.0000 + ,-9.0000 + ,57.0000 + ,1.5770 + ,7.7000 + ,7.9000 + ,96.0000 + ,3032.6000 + ,20.1000 + ,20.2000 + ,-21.0000 + ,-11.0000 + ,41.0000 + ,1.5553 + ,6.5000 + ,7.7000 + ,115.9000 + ,3504.3700 + ,20.6000 + ,21.1000 + ,-31.0000 + ,-13.0000 + ,21.0000 + ,1.5557 + ,6.1000 + ,6.5000 + ,109.1000 + ,3801.0600 + ,19.3000 + ,19.7000 + ,-28.0000 + ,-11.0000 + ,21.0000 + ,1.5750 + ,6.4000 + ,6.1000 + ,117.3000 + ,3857.6200 + ,20.5000 + ,21.5000 + ,-23.0000 + ,-9.0000 + ,17.0000 + ,1.5527 + ,6.8000 + ,6.4000 + ,109.8000 + ,3674.4000 + ,19.2000 + ,20.2000 + ,-17.0000 + ,-7.0000 + ,9.0000 + ,1.4748 + ,7.1000 + ,6.8000 + ,112.8000 + ,3720.9800 + ,19.0000 + ,19.0000 + ,-12.0000 + ,-3.0000 + ,11.0000 + ,1.4718 + ,7.3000 + ,7.1000 + ,110.7000 + ,3844.4900 + ,18.7000 + ,20.2000 + ,-14.0000 + ,-3.0000 + ,6.0000 + ,1.4570 + ,7.2000 + ,7.3000 + ,100.0000 + ,4116.6800 + ,16.5000 + ,18.0000 + ,-18.0000 + ,-6.0000 + ,-2.0000 + ,1.4684 + ,7.0000 + ,7.2000 + ,113.3000 + ,4105.1800 + ,19.0000 + ,19.5000 + ,-16.0000 + ,-4.0000 + ,0.0000 + ,1.4227 + ,7.0000 + ,7.0000 + ,122.4000 + ,4435.2300 + ,20.5000 + ,20.3000 + ,-22.0000 + ,-8.0000 + ,5.0000 + ,1.3896 + ,7.0000 + ,7.0000 + ,112.5000 + ,4296.4900 + ,18.4000 + ,18.0000 + ,-9.0000 + ,-1.0000 + ,3.0000 + ,1.3622 + ,7.3000 + ,7.0000 + ,104.2000 + ,4202.5200 + ,16.2000 + ,16.4000 + ,-10.0000 + ,-2.0000 + ,7.0000 + ,1.3716 + ,7.5000 + ,7.3000 + ,92.5000 + ,4562.8400 + ,18.1000 + ,17.8000 + ,-10.0000 + ,-2.0000 + ,4.0000 + ,1.3419 + ,7.2000 + ,7.5000 + ,117.2000 + ,4621.4000 + ,19.3000 + ,18.5000 + ,0.0000 + ,-1.0000 + ,8.0000 + ,1.3511 + ,7.7000 + ,7.2000 + ,109.3000 + ,4696.9600 + ,18.3000 + ,18.2000 + ,3.0000 + ,1.0000 + ,9.0000 + ,1.3516 + ,8.0000 + ,7.7000 + ,106.1000 + ,4591.2700 + ,17.2000 + ,16.7000 + ,2.0000 + ,2.0000 + ,14.0000 + ,1.3242 + ,7.9000 + ,8.0000 + ,118.8000 + ,4356.9800 + ,19.6000 + ,19.1000 + ,4.0000 + ,2.0000 + ,12.0000 + ,1.3074 + ,8.0000 + ,7.9000 + ,105.3000 + ,4502.6400 + ,17.2000 + ,16.8000 + ,-3.0000 + ,-1.0000 + ,12.0000 + ,1.2999 + ,8.0000 + ,8.0000 + ,106.0000 + ,4443.9100 + ,17.4000 + ,17.5000 + ,0.0000 + ,1.0000 + ,7.0000 + ,1.3213 + ,7.9000 + ,8.0000 + ,102.0000 + ,4290.8900 + ,16.0000 + ,16.2000 + ,-1.0000 + ,-1.0000 + ,15.0000 + ,1.2881 + ,7.9000 + ,7.9000 + ,112.9000 + ,4199.7500 + ,18.5000 + ,17.9000 + ,-7.0000 + ,-8.0000 + ,14.0000 + ,1.2611 + ,8.0000 + ,7.9000 + ,116.5000 + ,4138.5200 + ,18.4000 + ,17.7000 + ,2.0000 + ,1.0000 + ,19.0000 + ,1.2727 + ,8.1000 + ,8.0000 + ,114.8000 + ,3970.1000 + ,18.2000 + ,17.2000 + ,3.0000 + ,2.0000 + ,39.0000 + ,1.2811 + ,8.1000 + ,8.1000 + ,100.5000 + ,3862.2700 + ,14.9000 + ,15.7000 + ,-3.0000 + ,-2.0000 + ,12.0000 + ,1.2684 + ,8.2000 + ,8.1000 + ,85.4000 + ,3701.6100 + ,16.3000 + ,15.2000 + ,-5.0000 + ,-2.0000 + ,11.0000 + ,1.2650 + ,8.0000 + ,8.2000 + ,114.6000 + ,3570.1200 + ,18.3000 + ,17.7000 + ,0.0000 + ,-2.0000 + ,17.0000 + ,1.2770 + ,8.3000 + ,8.0000 + ,109.9000 + ,3801.0600 + ,18.0000 + ,17.4000 + ,-3.0000 + ,-2.0000 + ,16.0000 + ,1.2271 + ,8.5000 + ,8.3000 + ,100.7000 + ,3895.5100 + ,15.9000 + ,15.9000 + ,-7.0000 + ,-6.0000 + ,25.0000 + ,1.2020 + ,8.6000 + ,8.5000 + ,115.5000 + ,3917.9600 + ,19.6000 + ,19.7000 + ,-7.0000 + ,-4.0000 + ,24.0000 + ,1.1938 + ,8.7000 + ,8.6000 + ,100.7000 + ,3813.0600 + ,16.6000 + ,16.7000 + ,-7.0000 + ,-5.0000 + ,28.0000 + ,1.2103 + ,8.7000 + ,8.7000 + ,99.0000 + ,3667.0300 + ,16.2000 + ,16.9000 + ,-4.0000 + ,-2.0000 + ,25.0000 + ,1.1856 + ,8.5000 + ,8.7000 + ,102.3000 + ,3494.1700 + ,16.6000 + ,18.0000 + ,-3.0000 + ,-1.0000 + ,31.0000 + ,1.1786 + ,8.4000 + ,8.5000 + ,108.8000 + ,3363.9900 + ,17.5000 + ,17.6000 + ,-6.0000 + ,-5.0000 + ,24.0000 + ,1.2015 + ,8.5000 + ,8.4000 + ,105.9000 + ,3295.3200 + ,16.2000 + ,15.2000 + ,-10.0000 + ,-9.0000 + ,24.0000 + ,1.2256 + ,8.7000 + ,8.5000 + ,113.2000 + ,3277.0100 + ,17.5000 + ,16.5000 + ,-10.0000 + ,-8.0000 + ,33.0000 + ,1.2292 + ,8.7000 + ,8.7000 + ,95.7000 + ,3257.1600 + ,13.8000 + ,14.7000 + ,-23.0000 + ,-14.0000 + ,37.0000 + ,1.2037 + ,8.6000 + ,8.7000 + ,80.9000 + ,3161.6900 + ,14.9000 + ,14.1000 + ,-13.0000 + ,-10.0000 + ,35.0000 + ,1.2165 + ,7.9000 + ,8.6000 + ,113.9000 + ,3097.3100 + ,17.2000 + ,16.9000 + ,-18.0000 + ,-11.0000 + ,37.0000 + ,1.2694 + ,8.1000 + ,7.9000 + ,98.1000 + ,3061.2600 + ,15.6000 + ,15.2000 + ,-16.0000 + ,-11.0000 + ,38.0000 + ,1.2938 + ,8.2000 + ,8.1000 + ,102.8000 + ,3119.3100 + ,16.2000 + ,15.4000 + ,-15.0000 + ,-11.0000 + ,42.0000 + ,1.3201 + ,8.5000 + ,8.2000 + ,104.7000 + ,3106.2200 + ,17.4000 + ,16.8000 + ,-5.0000 + ,-5.0000 + ,43.0000 + ,1.3014 + ,8.6000 + ,8.5000 + ,95.9000 + ,3080.5800 + ,15.1000 + ,14.8000 + ,2.0000 + ,-2.0000 + ,44.0000 + ,1.3119 + ,8.5000 + ,8.6000 + ,94.6000 + ,2981.8500 + ,14.5000 + ,14.1000 + ,-2.0000 + ,-3.0000 + ,32.0000 + ,1.3408 + ,8.3000 + ,8.5000 + ,101.6000 + ,2921.4400 + ,15.1000 + ,15.0000 + ,-4.0000 + ,-6.0000 + ,32.0000 + ,1.2991 + ,8.2000 + ,8.3000 + ,103.9000 + ,2849.2700 + ,15.5000 + ,14.8000 + ,-4.0000 + ,-6.0000 + ,37.0000 + ,1.2490 + ,8.7000 + ,8.2000 + ,110.3000 + ,2756.7600 + ,15.9000 + ,15.0000 + ,-6.0000 + ,-7.0000 + ,38.0000 + ,1.2218 + ,9.3000 + ,8.7000 + ,114.1000 + ,2645.6400 + ,15.9000 + ,15.1000 + ,-7.0000 + ,-6.0000 + ,39.0000 + ,1.2176 + ,9.3000 + ,9.3000 + ,96.8000 + ,2497.8400 + ,12.3000 + ,12.8000 + ,0.0000 + ,-2.0000 + ,38.0000 + ,1.2266 + ,8.8000 + ,9.3000 + ,87.4000 + ,2448.0500 + ,14.4000 + ,13.0000 + ,1.0000 + ,-2.0000 + ,39.0000 + ,1.2138 + ,7.4000 + ,8.8000 + ,111.4000 + ,2454.6200 + ,16.0000 + ,15.7000 + ,-3.0000 + ,-4.0000 + ,30.0000 + ,1.2007 + ,7.2000 + ,7.4000 + ,97.4000 + ,2407.6000 + ,13.9000 + ,12.8000 + ,6.0000 + ,0.0000 + ,28.0000 + ,1.1985 + ,7.5000 + ,7.2000 + ,102.9000 + ,2472.8100 + ,14.7000 + ,13.9000 + ,-2.0000 + ,-6.0000 + ,31.0000 + ,1.2262 + ,8.3000 + ,7.5000 + ,112.7000 + ,2408.6400 + ,16.2000 + ,15.4000 + ,2.0000 + ,-4.0000 + ,28.0000 + ,1.2646 + ,8.8000 + ,8.3000 + ,97.0000 + ,2440.2500 + ,13.8000 + ,13.2000 + ,5.0000 + ,-3.0000 + ,38.0000 + ,1.2613 + ,8.9000 + ,8.8000 + ,95.1000 + ,2350.4400 + ,13.2000 + ,12.7000 + ,7.0000 + ,-1.0000 + ,37.0000 + ,1.2286 + ,8.6000 + ,8.9000 + ,96.9000 + ,2196.7200 + ,13.5000 + ,13.5000 + ,4.0000 + ,-3.0000 + ,34.0000 + ,1.1702 + ,8.4000 + ,8.6000 + ,98.6000 + ,2174.5600 + ,13.5000 + ,12.8000 + ,0.0000 + ,-6.0000 + ,32.0000 + ,1.1692 + ,8.4000 + ,8.4000 + ,111.7000 + ,2120.8800 + ,15.0000 + ,13.9000 + ,0.0000 + ,-6.0000 + ,33.0000 + ,1.1222 + ,8.4000 + ,8.4000 + ,109.8000 + ,2093.4800 + ,14.5000 + ,13.3000 + ,-13.0000 + ,-15.0000 + ,39.0000 + ,1.1139 + ,8.4000 + ,8.4000 + ,89.9000 + ,2061.4100 + ,10.5000 + ,10.7000 + ,-2.0000 + ,-5.0000 + ,42.0000 + ,1.1372 + ,8.3000 + ,8.4000 + ,87.4000 + ,1969.6000 + ,13.7000 + ,12.3000 + ,-10.0000 + ,-11.0000 + ,57.0000 + ,1.1663 + ,7.6000 + ,8.3000 + ,104.5000 + ,1959.6700 + ,13.9000 + ,12.9000 + ,-12.0000 + ,-13.0000 + ,36.0000 + ,1.1582 + ,7.6000 + ,7.6000 + ,98.1000 + ,1910.4300 + ,13.4000 + ,12.5000 + ,-9.0000 + ,-10.0000 + ,42.0000 + ,1.0848 + ,7.9000 + ,7.6000 + ,102.7000 + ,1833.4200 + ,14.0000 + ,13.0000 + ,-4.0000 + ,-9.0000 + ,49.0000 + ,1.0807 + ,8.0000 + ,7.9000 + ,105.4000 + ,1635.2500 + ,14.3000 + ,13.9000 + ,-11.0000 + ,-11.0000 + ,44.0000 + ,1.0773 + ,8.2000 + ,8.0000 + ,97.0000 + ,1765.9000 + ,13.3000 + ,13.1000 + ,-28.0000 + ,-18.0000 + ,44.0000 + ,1.0622 + ,8.3000 + ,8.2000 + ,97.4000 + ,1946.8100 + ,13.2000 + ,13.1000 + ,-19.0000 + ,-13.0000 + ,43.0000 + ,1.0183 + ,8.2000 + ,8.3000 + ,92.0000 + ,1995.3700 + ,12.6000 + ,13.0000 + ,-16.0000 + ,-9.0000 + ,50.0000 + ,1.0014 + ,8.1000 + ,8.2000 + ,101.7000 + ,2042.0000 + ,13.7000 + ,12.8000 + ,-8.0000 + ,-8.0000 + ,45.0000 + ,0.9811 + ,8.0000 + ,8.1000 + ,112.6000 + ,1940.4900 + ,15.6000 + ,14.2000 + ,-1.0000 + ,-4.0000 + ,40.0000 + ,0.9808 + ,7.8000 + ,8.0000 + ,106.9000 + ,2065.8100 + ,14.4000 + ,13.0000 + ,-2.0000 + ,-3.0000 + ,38.0000 + ,0.9778 + ,7.6000 + ,7.8000 + ,92.1000 + ,2214.9500 + ,11.0000 + ,11.2000 + ,-4.0000 + ,-3.0000 + ,29.0000 + ,0.9922 + ,7.5000 + ,7.6000 + ,86.0000 + ,2304.9800 + ,13.7000 + ,12.1000 + ,-5.0000 + ,-3.0000 + ,27.0000 + ,0.9554 + ,6.8000 + ,7.5000 + ,104.7000 + ,2555.2800 + ,13.8000 + ,12.9000 + ,0.0000 + ,-1.0000 + ,27.0000 + ,0.9170 + ,6.9000 + ,6.8000 + ,102.0000 + ,2799.4300 + ,14.3000 + ,13.2000 + ,5.0000 + ,0.0000 + ,27.0000 + ,0.8858 + ,7.1000 + ,6.9000 + ,103.1000 + ,2811.7000 + ,14.0000 + ,13.2000 + ,5.0000 + ,1.0000 + ,32.0000 + ,0.8758 + ,7.3000 + ,7.1000 + ,106.0000 + ,2735.7000 + ,14.6000 + ,13.5000 + ,2.0000 + ,0.0000 + ,24.0000 + ,0.8700 + ,7.4000 + ,7.3000 + ,96.1000 + ,2745.8800 + ,13.1000 + ,12.4000 + ,6.0000 + ,2.0000 + ,22.0000 + ,0.8833 + ,7.6000 + ,7.4000 + ,96.2000 + ,2720.2500 + ,13.2000 + ,12.4000 + ,3.0000 + ,1.0000 + ,22.0000 + ,0.8924 + ,7.6000 + ,7.6000 + ,90.7000 + ,2638.5300 + ,11.6000 + ,11.6000 + ,1.0000 + ,-1.0000 + ,23.0000 + ,0.8883 + ,7.5000 + ,7.6000 + ,102.3000 + ,2659.8100 + ,13.3000 + ,12.6000 + ,-9.0000 + ,-8.0000 + ,23.0000 + ,0.9059 + ,7.5000 + ,7.5000 + ,109.4000 + ,2641.6500 + ,14.4000 + ,13.1000 + ,-26.0000 + ,-18.0000 + ,28.0000 + ,0.9111 + ,6.8000 + ,7.5000 + ,101.0000 + ,2604.4200 + ,13.3000 + ,12.3000 + ,-25.0000 + ,-14.0000 + ,36.0000 + ,0.9005 + ,6.4000 + ,6.8000 + ,94.7000 + ,2892.6300 + ,11.3000 + ,11.4000 + ,-13.0000 + ,-4.0000 + ,60.0000 + ,0.8607 + ,6.2000 + ,6.4000 + ,81.0000 + ,2915.0300 + ,13.2000 + ,11.8000 + ,-6.0000 + ,0.0000 + ,43.0000 + ,0.8532 + ,6.0000 + ,6.2000 + ,106.2000 + ,2845.2600 + ,14.1000 + ,13.4000 + ,-1.0000 + ,4.0000 + ,23.0000 + ,0.8742 + ,6.3000 + ,6.0000 + ,101.9000 + ,2794.8300 + ,14.0000 + ,13.6000 + ,1.0000 + ,4.0000 + ,15.0000 + ,0.8920 + ,6.3000 + ,6.3000 + ,96.4000 + ,2848.9600 + ,12.9000 + ,12.9000 + ,1.0000 + ,3.0000 + ,7.0000 + ,0.9095 + ,6.1000 + ,6.3000 + ,110.4000 + ,2833.1800 + ,15.2000 + ,14.5000 + ,-2.0000 + ,3.0000 + ,6.0000 + ,0.9217 + ,6.1000 + ,6.1000 + ,100.5000 + ,2995.5500 + ,13.6000 + ,13.3000 + ,2.0000 + ,7.0000 + ,8.0000 + ,0.9383 + ,6.3000 + ,6.1000 + ,98.8000 + ,2987.1000 + ,13.7000 + ,13.5000 + ,3.0000 + ,8.0000 + ,5.0000) + ,dim=c(10 + ,116) + ,dimnames=list(c('WSK' + ,'WER' + ,'WER(d-1)' + ,'INP' + ,'BE2' + ,'Uit' + ,'INV' + ,'CE-AES' + ,'CE-CV' + ,'CE-WER') + ,1:116)) > y <- array(NA,dim=c(10,116),dimnames=list(c('WSK','WER','WER(d-1)','INP','BE2','Uit','INV','CE-AES','CE-CV','CE-WER'),1:116)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'kendall' > main = 'Correlation Matrix' > par1 <- 'pearson' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Patrick Wessa > #To cite this work: Patrick Wessa, (2010), Multivariate Correlation Matrix (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/Patrick.Wessa/rwasp_pairs.wasp/ > #Source of accompanying publication: > #Technical description: > panel.tau <- function(x, y, digits=2, prefix='', cex.cor) + { + usr <- par('usr'); on.exit(par(usr)) + par(usr = c(0, 1, 0, 1)) + rr <- cor.test(x, y, method=par1) + r <- round(rr$p.value,2) + txt <- format(c(r, 0.123456789), digits=digits)[1] + txt <- paste(prefix, txt, sep='') + if(missing(cex.cor)) cex <- 0.5/strwidth(txt) + text(0.5, 0.5, txt, cex = cex) + } > panel.hist <- function(x, ...) + { + usr <- par('usr'); on.exit(par(usr)) + par(usr = c(usr[1:2], 0, 1.5) ) + h <- hist(x, plot = FALSE) + breaks <- h$breaks; nB <- length(breaks) + y <- h$counts; y <- y/max(y) + rect(breaks[-nB], 0, breaks[-1], y, col='grey', ...) + } > postscript(file="/var/www/html/rcomp/tmp/10ni31292937044.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > pairs(t(y),diag.panel=panel.hist, upper.panel=panel.smooth, lower.panel=panel.tau, main=main) > dev.off() null device 1 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > n <- length(y[,1]) > n [1] 10 > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,paste('Correlations for all pairs of data series (method=',par1,')',sep=''),n+1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,' ',header=TRUE) > for (i in 1:n) { + a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) + } > a<-table.row.end(a) > for (i in 1:n) { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) + for (j in 1:n) { + r <- cor.test(y[i,],y[j,],method=par1) + a<-table.element(a,round(r$estimate,3)) + } + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/2wfxb1292937044.tab") > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Correlations for all pairs of data series with p-values',4,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'pair',1,TRUE) > a<-table.element(a,'Pearson r',1,TRUE) > a<-table.element(a,'Spearman rho',1,TRUE) > a<-table.element(a,'Kendall tau',1,TRUE) > a<-table.row.end(a) > cor.test(y[1,],y[2,],method=par1) Pearson's product-moment correlation data: y[1, ] and y[2, ] t = 2.3177, df = 114, p-value = 0.02225 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.03101107 0.37975798 sample estimates: cor 0.2121283 > for (i in 1:(n-1)) + { + for (j in (i+1):n) + { + a<-table.row.start(a) + dum <- paste(dimnames(t(x))[[2]][i],';',dimnames(t(x))[[2]][j],sep='') + a<-table.element(a,dum,header=TRUE) + rp <- cor.test(y[i,],y[j,],method='pearson') + a<-table.element(a,round(rp$estimate,4)) + rs <- cor.test(y[i,],y[j,],method='spearman') + a<-table.element(a,round(rs$estimate,4)) + rk <- cor.test(y[i,],y[j,],method='kendall') + a<-table.element(a,round(rk$estimate,4)) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'p-value',header=T) + a<-table.element(a,paste('(',round(rp$p.value,4),')',sep='')) + a<-table.element(a,paste('(',round(rs$p.value,4),')',sep='')) + a<-table.element(a,paste('(',round(rk$p.value,4),')',sep='')) + a<-table.row.end(a) + } + } There were 45 warnings (use warnings() to see them) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/3hxeh1292937044.tab") > > try(system("convert tmp/10ni31292937044.ps tmp/10ni31292937044.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.709 0.646 3.611