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(118.9,108.8,115.6,95.0,92.8,108.9,109.8,106.1,102.8,98.4,85.7,114.6,129.4,117.7,126.6,103.8,101.5,118.7,119.6,114.8,109.9,106.3,95.0,124.5,140.4,128.8,137.5,113.3,110.3,129.1,128.4,120.3,113.6,96.9,124.7,126.4,131.9,122.5,113.1,99.8,116.0,115.0,114.0,111.0,91.7,90.6,103.3,106.7,111.2,102.9,126.5,115.1,110.2,110.1,103.3,107.7,103.9,114.0,117.2,117.0,116.5) > y <- c(117.1,107.0,107.0,111.0,108.2,96.3,100.9,107.7,106.2,118.7,116.1,118.1,118.4,110.8,106.4,112.2,108.3,96.0,100.6,107.8,108.4,120.9,117.3,119.7,119.6,111.8,108.1,111.8,105.5,93.6,103.9,100.3,106.6,118.4,106.6,109.8,115.9,111.7,119.8,116.1,103.2,99.0,112.3,104.2,114.0,121.7,107.2,112.8,117.8,113.3,116.1,111.8,110.2,110.0,102.9,110.1,102.7,118.7,109.0,115.7,118.1) > x <- c(116.1,102.5,102.0,101.3,100.6,100.9,104.2,108.3,108.9,109.9,106.8,112.7,113.4,101.3,97.8,95.0,93.8,94.5,101.4,105.8,106.6,109.7,108.8,113.4,113.7,103.6,98.2,95.5,94.4,95.9,103.2,104.1,127.6,130.3,133.0,140.4,123.5,116.9,115.9,113.1,112.1,112.4,118.9,117.4,115.6,120.7,114.9,122.0,119.6,114.6,118.4,110.9,111.6,114.6,112.1,117.4,114.8,123.4,118.1,121.9,123.3) > #'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.4269806 > (rho23 <- cor(y, z)) [1] -0.1366840 > (rho13 <- cor(x, z)) [1] 0.04211869 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.4372254 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.1121713 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.1711954 > > #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/10reu1226146631.tab") > > > > proc.time() user system elapsed 0.589 0.024 0.688