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(5.41,5.46,5.64,5.76,5.82,5.84,5.83,5.85,5.85,5.88,5.87,5.87,5.85,5.89,5.88,5.89,5.9,5.91,5.89,5.92,5.91,5.96,5.96,5.99,5.92,5.96,5.96,5.97,5.96,5.95,5.97,5.98,5.99,6.03,6.05,6.08,6.1,6.11,6.09,6.1,6.12,6.13,6.13,6.17,6.19,6.23,6.21,6.23,6.25,6.23,6.23,6.24,6.28,6.3,6.34,6.27,6.22,6.31,6.33,6.31,6.35,6.33,6.36,6.37,6.33,6.34,6.42,6.42,6.48,6.47,6.5,6.52,6.49,6.51,6.52,6.54,6.59,6.6,6.59,6.58,6.55,6.57,6.61,6.61) > y <- c(2.36,1.95,2.16,2.76,2.09,1.49,1.17,1.3,1.26,2.17,2.03,2.18,2.61,2.58,3.86,3.81,2.41,1.47,1.33,1.38,1.57,2.6,2.18,2.36,2.24,2.41,2.51,2.98,1.87,1.9,1.47,1.45,2.71,2.9,2.11,2.18,2.24,2.05,2.42,2.77,1.99,1.47,1.09,0.93,1.32,2.03,2.04,2.78,2.8,3.03,3.11,2.75,2.78,1.76,1.29,1.28,1.43,1.71,1.89,1.84,2.08,2.09,2.36,2.99,2.75,1.58,1.69,1.3,1.97,1.84,1.96,1.86,2.75,2.62,2.41,3.61,2.03,1.45,1.4,1.3,1.58,2.1,2.27,2.54) > x <- c(3.3,2.86,2.27,1.95,2.98,1.71,1.31,1.37,1.8,2.14,2.05,2.43,5.28,4.07,3.24,1.22,1.18,1,1.18,1.86,2.38,1.48,1.62,2.44,3.91,3.83,2.9,1.67,1.19,1.26,1.6,2.61,2.19,1.46,2.17,2.6,4.33,2.9,2.05,1.51,1.19,1.08,1.1,1.39,1.35,1.69,2.35,3.7,3.55,3.75,4.23,2.13,1.33,1.46,2.1,1.76,1.28,1.26,1.99,3.06,3.33,4.02,2.43,1.39,1.52,1.75,2.22,2.57,2.37,1.69,2.71,3.06,4.64,3.22,2.35,2.01,1.49,1.31,1.29,1.33,1.33,1.39,2.39,3.04) > #'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.3836004 > (rho23 <- cor(y, z)) [1] -0.04806554 > (rho13 <- cor(x, z)) [1] -0.04915508 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.3821408 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] -0.03330015 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.03166758 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/18rj81226613943.tab") > > > > proc.time() user system elapsed 0.268 0.027 0.292