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(147.5,164.7,176.2,161.8,171.7,169,161.4,157.2,166.2,162.1,169.1,158.4,139.7,145.2,165.3,154.4,147.4,165.3,145.7,147.2,156.1,152.9,153.8,151.7,131.8,131,155.8,143.8,139.8,160.1,136.5,131,153.7,141.3,138.9,141.2,120.3,118.9,141.7,126.2,130.6,139.8,119.5,115.8,142.6,127.7,131.8,129.5,111.1,112.6,130.8,115.4,120.5,131.9,111.2,108.9,128.1,110.7,124.1,121.5) > y <- c(154.2,175.8,187.6,169.9,182.3,179.4,171.5,166.6,171.8,164.3,172.6,163,142.2,149.7,168.4,156.5,150.4,170.6,150.1,151.5,159.5,155.2,154.8,156.5,134.2,135.9,156.4,144.2,143.7,164.8,140.2,132.2,162,145,146.3,145.5,124.4,126,146.8,130.8,133.6,145.7,122.8,118.5,149.5,129.9,134.8,133.3,117.2,120.2,136.4,118.5,126.7,137.5,116.3,113.3,136.6,112.9,128.6,126.8) > x <- c(136.5,146.4,157.7,148.7,154.6,152.1,144.8,142.1,157,159.1,164,151.5,135.9,138.5,161,151.7,142.9,157.4,138.9,141,150.9,149.9,153,144.3,128.1,123.3,155.9,144.1,134.1,153.1,131,129.8,139.9,135.6,126.8,134.4,113.5,107.5,133.8,119,125.9,130.1,114.2,111.6,131.2,124.1,127.1,123.4,100.7,100.3,121.6,110.5,110.3,122.7,102.6,101.8,113.6,107.2,116.8,112.5) > #'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.9269245 > (rho23 <- cor(y, z)) [1] 0.991164 > (rho13 <- cor(x, z)) [1] 0.9684825 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] -0.9988341 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.9994865 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] 0.9998544 > > #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/1ulau1226319935.tab") > > > > proc.time() user system elapsed 0.441 0.051 0.614