R version 2.8.1 (2008-12-22) 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(7.3,7.2,7.7,8.2,8.4,8.3,7.8,7.5,7.9,8.3,8.7,8.2,6.9,6.5,6.8,7.1,7.6,7.9,8,7.9,7.9,7.7,8.1,8.4,8.3,8.8,9.2,9.1,9.1,9.1,9,9,9.3,9.8,10,9.8,9,9,9,9.2,9.4,9.4,9.3,9.2,9.6,10.2,10.3,10.1,9,8.9,9.1,9.5,9.6,9.5,9.2,9.2,10,10.9,11.1,10.4,8.5,8,8.3,9.3,9.8,9.9,9.3,9,9.1,9.4,9.4,9.1,7.9,7.9,8.2,8.7,9.1,9,8.6,8.4,8.7,9.2,9.4,9.2,7.8,7.7,7.9,8.6,9,9.1,8.8,8.4,8.4,7.7,7.3,7,6.7,7,7.1,6.9,7.1,7.5,8.1,8.5,8.9,9,9.2,8.7,8,8.1,8.3,8.1,8.4,8.9,9.4,9.7,10.1,10.4,10.7) > y <- c(7.5,7.4,7.7,7.9,7.7,7.1,6.2,5.8,6.1,6.9,7.3,7.2,6.1,5.8,6.1,6.4,6.8,6.8,6.5,6.2,6.3,6.4,6.6,6.7,6.4,6.8,7,6.9,7.1,7.2,7.1,7,6.9,6.7,6.6,6.9,7.3,7.9,8.2,8.2,8.2,8.1,7.9,7.7,7.7,7.6,7.5,7.5,7.1,7.5,7.5,7.8,7.8,7.8,7.6,7.5,7.7,8.1,8,7.6,6.6,6.5,6.8,7.5,8,8.2,8.1,7.9,7.9,7.6,7.5,7.6,7.3,7.5,7.6,7.5,7.6,7.8,7.9,7.8,7.5,6.6,6.3,6.3,6,6.3,6.4,6.3,6.3,6.4,6.7,6.7,6.8,6.2,5.8,5.6,5.4,5.7,5.8,5.5,5.4,5.4,5.4,5.5,5.6,5.7,5.8,5.4,4.9,5.2,5.5,5.9,6.3,6.5,6.4,6.4,6.6,6.8,7.2) > x <- c(7.4,7.3,7.7,8,8,7.7,6.9,6.6,6.9,7.5,7.9,7.7,6.5,6.1,6.4,6.8,7.1,7.3,7.2,7,7,7,7.3,7.5,7.2,7.7,8,7.9,8,8,7.9,7.9,8,8.1,8.1,8.2,8,8.3,8.5,8.6,8.7,8.7,8.5,8.4,8.5,8.7,8.7,8.6,7.9,8.1,8.2,8.5,8.6,8.5,8.3,8.2,8.7,9.3,9.3,8.8,7.4,7.2,7.5,8.3,8.8,8.9,8.6,8.4,8.4,8.4,8.4,8.3,7.6,7.6,7.9,8,8.2,8.3,8.2,8.1,8,7.8,7.6,7.5,6.8,6.9,7.1,7.3,7.4,7.6,7.6,7.5,7.5,6.8,6.4,6.2,6,6.3,6.3,6.1,6.1,6.3,6.6,6.8,7,7.1,7.3,6.8,6.3,6.4,6.7,6.8,7.2,7.5,7.7,7.8,8.1,8.4,8.7) > #'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.8989289 > (rho23 <- cor(y, z)) [1] 0.5603574 > (rho13 <- cor(x, z)) [1] 0.8643062 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.9952625 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.9937508 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.9829617 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/rcomp/tmp/1n3iz1257353371.tab") > > > > proc.time() user system elapsed 0.180 0.110 0.276