R version 2.9.0 (2009-04-17) Copyright (C) 2009 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.76,0.752,1.386,0.432,0.388,0.381,0.401,0.344,0.36,0.328,0.332,0.476,0.362,0.36,0.34,0.353,0.363,0.345,0.358,0.356,0.354,0.365,0.366,0.355,0.346,0.345,0.349,0.349,0.36,0.358,0.346,0.351,0.343,0.334,0.341,0.332,0.473,0.339,0.342,0.338,0.348,0.345,0.343,0.333) > y <- c(1.3683,1.3623,1.3563,1.3518,1.3494,1.3612,1.369,1.3771,1.3972,1.401,1.3908,1.3901,1.3856,1.4098,1.422,1.4238,1.4207,1.4095,1.4177,1.3866,1.3959,1.4102,1.3969,1.4004,1.385,1.389,1.384,1.392,1.3932,1.3858,1.3978,1.4029,1.394,1.4096,1.4058,1.4134,1.4096,1.4049,1.4009,1.3897,1.4019,1.3901,1.399,1.3901) > x <- c(0.87405,0.878,0.8804,0.8784,0.88135,0.8815,0.8751,0.8747,0.872,0.8735,0.87365,0.8793,0.87575,0.8739,0.879,0.8869,0.8897,0.8905,0.9003,0.9066,0.9047,0.8994,0.91065,0.91875,0.92265,0.9118,0.9093,0.91085,0.9172,0.9171,0.92605,0.9249,0.92,0.92285,0.9333,0.9408,0.93025,0.9147,0.91175,0.9143,0.9117,0.9001,0.9053,0.9172) > #'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.373607 > (rho23 <- cor(y, z)) [1] -0.4772748 > (rho13 <- cor(x, z)) [1] -0.2972456 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.2761971 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] -0.1459077 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.413501 > > #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/1l1up1258053087.tab") > > > proc.time() user system elapsed 0.207 0.036 0.328