R version 2.7.2 (2008-08-25) 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(989.8,946.6,1149.1,915.3,846.4,730.3,919.5,796.3,947.9,874.1,968.6,1185.3,1012.2,1120.9,1079,1043.9,1099.8,1026.4,1130.7,1190.1,1018.3,1131.8,1077.2,1323.7,1229.1,1409.7,1597.4,1393.2,1186.7,1118.6,1199.1,1342.7,1454.2,1344.6,2374.7,3039.4,2462.8,2287.2,2821.8,1805.1,1697.7,1600.4,1600,1544.9,1298.7,1098.1,1169.7,1289.3,1245.8,1158.5,1123.5,1037.2,1245.2,1307.4,1510.6,1514.3,1633.5,2013.2,2320.1,2345.7,2550.4,2221.6,2417,2353.4,2453.6,2339.5,2469.8) > y <- c(10.5,11.4,12.2,12.9,11.6,11.7,8.6,8.2,11.4,10.8,10.3,12.7,9.6,13.3,14.3,14,12,13.7,10.6,9.4,13.4,11.8,14.4,15.3,11.5,10.9,12.4,14.2,13.9,14,11.9,10.6,11.1,11.8,12.7,12.5,11.6,11.5,15.8,11.1,14.9,14.2,12,11,14.3,14.2,18.4,16.9,16.5,21.6,24.4,18.7,20.9,21.8,15.6,12.5,18.6,20.1,19.5,22.8,17.8,18.3,19.1,18.4,18.4,15.8,11.6) > x <- c(336.2,343.4,392.9,375.7,385.5,397.7,393.2,338.5,379.5,393.7,386.4,402,375.7,381.1,436.9,434.1,408.2,439.6,342.2,345.3,361.5,345.3,346.2,405,355.1,360.2,427.7,390.9,412,400.9,338,351.5,370.3,363.4,380.6,421.6,374.5,349.2,455.9,437.1,455,448.9,384.9,417.7,399.9,468.6,434.6,425.5,438.1,407.1,508.6,525.8,517.4,481.6,449.1,427.5,542.9,578.6,549,513,605.7,471.7,465.4,511.9,505.4,529.7,481.7) > #'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.7602085 > (rho23 <- cor(y, z)) [1] 0.3164343 > (rho13 <- cor(x, z)) [1] 0.4963484 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.7324059 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.4150486 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.1079677 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/rcomp/tmp/1qev21226240902.tab") > > > > proc.time() user system elapsed 0.403 0.044 0.449