R version 2.8.0 (2008-10-20) Copyright (C) 2008 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. > z <- c(1961782,1787447,1953757,1828167,2078223,1777226,1538059,1678452,2262924,1616451,1829222,1763216,2138777,1565784,1781485,1962103,1775358,1837255,1917824,1878651,2124030,1948811,1947985,1719466,2139078,2086587,2020001,2405555,2152069,2791310,2397287,1885473,1978324,2165120,2052877,1726766,2267082,2501737,1916630,2177682,1859283,1718749,1819181,1463556,1979279,1723911,1528538,1635412,2255789,1698773,1635959,2054968,1794346,1938855,2112672,1446965,1610773,1576815,1509935,1769046) > y <- c(3269,2934,3098,2956,3429,2887,2587,2865,3645,2557,3120,2827,3530,2606,3015,3481,3011,3179,2899,2768,3498,3417,3317,2951,3911,3674,3505,4263,3729,4384,4110,3360,3450,3708,3515,2877,3810,3953,3226,3818,3295,2884,3190,2652,3388,3071,2545,2686,4085,2869,2719,3599,2912,3509,3533,2365,2606,2712,2551,2646) > x <- c(1784,1429,1744,1551,1679,1639,1393,1405,1750,1263,1357,1593,1821,1419,1524,1637,1540,1623,1523,1335,1700,1615,1493,1577,1607,1765,1504,1936,1862,2570,2082,1781,1869,1785,1682,1556,2080,2027,1887,1935,1798,1589,1592,1387,1849,1470,1437,1500,2081,1552,1586,1914,1639,1633,1693,1224,1417,1577,1225,1510) > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), 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: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > (rho12 <- cor(x, y)) [1] 0.8432698 > (rho23 <- cor(y, z)) [1] 0.9493784 > (rho13 <- cor(x, z)) [1] 0.8607403 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.1632284 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.3562933 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] 0.8170203 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Pearson Product Moment Partial Correlation - Ungrouped Data',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Statistic',1,TRUE) > a<-table.element(a,'Value',1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Correlation r(xy)',header=TRUE) > a<-table.element(a,rho12) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/partial_correlation1.htm','Partial Correlation r(xy.z)',''),header=TRUE) > a<-table.element(a,rhoxy_z) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Correlation r(xz)',header=TRUE) > a<-table.element(a,rho13) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/partial_correlation1.htm','Partial Correlation r(xz.y)',''),header=TRUE) > a<-table.element(a,rhoxz_y) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Correlation r(yz)',header=TRUE) > a<-table.element(a,rho23) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/partial_correlation1.htm','Partial Correlation r(yz.x)',''),header=TRUE) > a<-table.element(a,rhoyz_x) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/freestat/rcomp/tmp/120y01226486253.tab") > > > > proc.time() user system elapsed 0.270 0.016 0.296