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(15.6,15.6,15.6,17.4,17.4,17.4,24,24,24,20.2,20.2,20.2,14.1,14.1,14.1,16.6,16.6,16.6,19.1,19.1,19.1,20.8,20.8,20.8,19,19,19,15.2,15.2,15.2,19.9,19.9,19.9,19,19,19,19.9,19.9,19.9,17.5,17.5,17.5,26.6,26.6,26.6,20.8,20.8,20.8,18.9,18.9,18.9,19.5,19.5,19.5,27.1,27.1,27.1,24.1,24.1,24.1,21.3,21.3,21.3,19.1,19.1,19.1,26.2,26.2,26.2,21.7,21.7,21.7,19.4,19.4,19.4,19.5,19.5,19.5,28.7,28.7,28.7,21.8,21.8,21.8,20,20,20,22.6,22.6,22.6,22.4,22.4,22.4,18.6,18.6,18.6,16.2,16.2,16.2,13.8,13.8,13.8,18,18,18) > y <- c(15.5,15.5,15.5,12.2,12.2,12.2,17.3,17.3,17.3,12.7,12.7,12.7,14.1,14.1,14.1,14.3,14.3,14.3,16.8,16.8,16.8,18.7,18.7,18.7,16.8,16.8,16.8,16,16,16,18,18,18,18,18,18,21.6,21.6,21.6,20.1,20.1,20.1,22.9,22.9,22.9,24,24,24,20.3,20.3,20.3,15.8,15.8,15.8,23.2,23.2,23.2,20.9,20.9,20.9,19.8,19.8,19.8,20.6,20.6,20.6,21.1,21.1,21.1,22.4,22.4,22.4,20.5,20.5,20.5,18.4,18.4,18.4,17.6,17.6,17.6,18.5,18.5,18.5,17.3,17.3,17.3,16.2,16.2,16.2,18.5,18.5,18.5,16.3,16.3,16.3,16.8,16.8,16.8,14.8,14.8,14.8,17.6,17.6,17.6) > x <- c(15.9,15.5,15.3,14.5,14.4,14.7,19.1,21.6,20.2,17.9,15.7,14.5,14.1,13.9,14.2,15.3,15.4,15.2,16.5,18.2,18.6,21,19.2,18.7,18.4,17.8,17.2,16.2,15.5,15.3,18.3,19.2,19,18.7,18.1,18.5,21.1,21,20.4,19.5,18.6,18.8,23.7,24.8,25,23.6,22.3,21.8,20.8,19.7,18.3,17.4,17,18.1,23.9,25.6,25.3,23.6,21.9,21.4,20.6,20.5,20.2,20.6,19.7,19.3,22.8,23.5,23.8,22.6,22,21.7,20.7,20.2,19.1,19.5,18.7,18.6,22.2,23.2,23.5,21.3,20,18.7,18.9,18.3,18.4,19.9,19.2,18.5,20.9,20.5,19.4,18.1,17,17,17.3,16.7,15.5,15.3,13.7,14.1,17.3,18.1,18.1) > #'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.8540973 > (rho23 <- cor(y, z)) [1] 0.5519058 > (rho13 <- cor(x, z)) [1] 0.8627315 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.8963082 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.9022988 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.703231 > > #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/1pgn91226487838.tab") > > > > proc.time() user system elapsed 0.439 0.053 4.936