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(0.42,0.74,1.02,1.51,1.86,1.59,1.03,0.44,0.82,0.86,0.57,0.59,0.95,0.98,1.23,1.17,0.84,0.74,0.65,0.91,1.19,1.3,1.53,1.94,1.79,1.95,2.26,2.04,2.16,2.75,2.79,2.88,3.36,2.97,3.1,2.49,2.2,2.25,2.09,2.79,3.14,2.93,2.65,2.67,2.26,2.35,2.13,2.18,2.9,2.63,2.67,1.81,1.33,0.88,1.28,1.26,1.26,1.29,1.1,1.37,1.21,1.74,1.76,1.48,1.04,1.62,1.49,1.79,1.8,1.58,1.86,1.74,1.59,1.26,1.13,1.92,2.61,2.26,2.41,2.26,2.03,2.86,2.55,2.27,2.26,2.57,3.07,2.76,2.51,2.87,3.14,3.11,3.16,2.47,2.57,2.89,2.63,2.38,1.69,1.96,2.19,1.87,1.6,1.63,1.22,1.21,1.49,1.64,1.66,1.77,1.82,1.78,1.28,1.29,1.37,1.12,1.51,2.24,2.94,3.09) > y <- c(19,23,22,23,25,25,23,22,21,16,21,21,26,23,22,22,22,12,20,18,23,25,28,28,29,31,33,32,33,35,33,36,30,34,34,35,33,28,27,23,23,24,24,20,16,6,2,12,19,21,22,20,21,20,19,17,17,17,16,12,11,7,2,9,11,10,7,9,15,5,14,14,17,19,17,16,14,20,16,18,18,14,13,14,14,17,18,15,9,9,9,10,6,12,11,15,19,18,15,16,14,18,18,18,18,22,21,12,19,21,19,22,22,21,19,18,18,19,12,16) > x <- c(9.4,9.4,9.5,9.5,9.4,9.4,9.3,9.4,9.4,9.2,9.1,9.1,9.1,9.1,9,8.9,8.8,8.7,8.4,8.3,8.2,7.9,7.8,7.7,7.3,7.2,7.1,6.9,6.8,6.7,6.8,6.9,6.7,6.8,6.8,6.7,6.3,6.2,6.2,6.5,6.5,6.4,6.2,6.2,6.3,7.5,7.4,7.4,7.4,7.4,7.4,7.2,7.2,7.1,7.5,7.4,7.5,8,8.1,8.1,8.1,8.1,8.1,7.9,7.9,8,8.1,8.1,8.1,8.6,8.6,8.6,8.4,8.4,8.4,7.7,7.8,7.9,8.7,8.8,8.8,8.5,8.5,8.5,8.4,8.5,8.5,8.3,8.4,8.4,8.5,8.4,8.4,8.5,8.5,8.5,8.5,8.5,8.5,8.3,8.3,8.3,8.3,8.2,8.2,8.1,8,7.8,7.9,7.8,7.7,7.8,7.7,7.6,7.3,7.3,7.1,7.1,7.1,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.3516893 > (rho23 <- cor(y, z)) [1] 0.04156805 > (rho13 <- cor(x, z)) [1] -0.4707536 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] -0.3767670 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] -0.487684 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.1501278 > > #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/16ugn1229606927.tab") > > > > proc.time() user system elapsed 0.221 0.044 0.267