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(129.5,103.7,114.2,123.5,111.3,126.5,119.6,116.5,116.7,119.4,124,130.6,120.1,113.2,111.1,126,115.8,111,128.7,112.6,114.7,118.5,124.8,128.6,127,111.8,100.6,122.9,117.8,108.1,129.6,111.4,110,115.2,118.8,116.2,126.3,106.7,96.5,119.1,109.6,110.3,118.8,104.5,107.7,127.7,118.5,120.1,127.4,107.8,106.5,124.6,101.9,106.5,119.4,103.3,99.6,120.9,111.7,123.9) > y <- c(142,109,120.7,159.6,142.4,145.1,148.9,136.9,119.9,133.9,131,133.2,135,99.1,110.8,152.3,131.9,127.9,142,118.7,116.3,125.7,122.7,125.3,123.2,88.8,94.9,136.8,128.7,110.8,132.8,112,104.5,112,110.6,107.2,116.2,85.7,94.2,127.2,108.9,111.9,126.3,105.9,101.3,105.5,106.3,117.3,110.9,85.4,81.9,121.5,106.3,111.8,122.8,101.8,92.2,106.3,103,97.7) > x <- c(111.8,100.9,102.1,118,110.6,115.1,114.8,110.1,110.8,95.6,108.1,116,111.2,98.2,97.6,113.3,107,107.9,117.5,105.4,104.2,98,106.7,113.4,111.7,94.2,92.5,109.8,105.1,104.4,111.1,98.7,100.5,93.7,103.2,104.1,106.9,89.2,88.7,110.7,98.8,102.5,101.8,96,98.3,94,105.1,114,115.5,94.3,100.8,111.2,103.4,106.7,112.2,100.7,99,91.5,102.7,111.4) > #'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.7281963 > (rho23 <- cor(y, z)) [1] 0.632461 > (rho13 <- cor(x, z)) [1] 0.6562472 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.5357812 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.3686162 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] 0.2989202 > > #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/1uhmt1229335688.tab") > > > > proc.time() user system elapsed 0.193 0.038 0.226