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. > z <- c(100,101.73,102.97,100.18,99.58,100.79,102.60,99.08,99.31,100.24,101.64,105.56,108.99,106.24,108.25,106.18,104.04,107.16,107.14,111.00,109.75,110.51,108.55,112.37,112.26,115.12,115.18,117.17,117.87,114.22,114.22,114.98,117.26,120.14,123.91,125.96,127.53,129.32,126.52,127.78,133.32,137.66,135.32,130.87,132.56,137.36,139.02,133.07,132.02,123.98,119.65,119.29,124.65,125.87,114.82,114.16,115.82,104.70,87.12,79.92) > y <- c(100,95.70,96.10,102.64,93.99,95.42,94.85,94.05,97.93,100.44,103.09,108.79,102.76,101.12,104.13,102.62,102.80,99.78,103.93,103.70,105.61,111.98,110.39,120.06,127.33,136.52,135.56,141.02,158.80,150.15,149.66,153.09,149.20,144.29,147.53,155.86,153.69,158.61,161.06,158.14,161.83,160.12,157.30,159.94,161.44,178.38,189.85,188.41,203.42,219.76,237.48,213.27,204.92,213.39,225.23,219.22,197.54,211.41,175.26,186.91) > x <- c(100.00,104.02,112.82,133.11,102.26,103.44,98.49,111.32,112.82,114.67,121.37,129.34,107.12,112.32,121.71,119.11,114.84,123.72,117.69,121.54,114.92,123.55,126.32,139.40,151.55,163.79,164.29,194.22,233.36,202.01,189.10,190.36,213.75,194.13,207.21,232.19,218.11,227.66,239.56,223.55,225.48,226.82,209.05,214.08,202.85,230.93,240.74,232.36,250.29,288.18,337.97,280.64,278.96,282.65,294.38,294.89,227.66,205.87,168.48,166.14) > #'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.9442722 > (rho23 <- cor(y, z)) [1] 0.5171938 > (rho13 <- cor(x, z)) [1] 0.6796581 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.9441752 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.6789888 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.5159956 > > #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/19tii1257943987.tab") > > > > proc.time() user system elapsed 0.206 0.024 0.359