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(3.31,3.25,3.2,3.1,2.93,2.92,2.9,2.87,2.76,2.67,2.75,2.72,2.72,2.86,2.99,3.07,2.96,3.04,3.3,3.48,3.46,3.57,3.6,3.51,3.52,3.49,3.5,3.64,3.94,3.94,3.91,3.88,4.21,4.39,4.33,4.27,4.29,4.18,4.14,4.23,4.07,3.74,3.66,3.92,4.45,4.92,4.9,4.54,4.53,4.14,4.05,3.92,3.68,3.35,3.38,3.44,3.5,3.54,3.52,3.53,3.51) > y <- c(2.83,2.72,2.73,2.72,2.77,2.61,2.47,2.3,2.38,2.43,2.39,2.6,2.84,2.87,2.92,2.08,3.33,3.48,3.57,3.66,3.77,3.75,3.75,3.81,3.82,3.89,4.05,4.1,4.07,4.26,4.4,4.61,4.63,4.48,4.46,4.45,4.32,4.52,4.21,3.97,4.12,4.5,4.73,5.26,4.52,4.94,4.95,3.52,3.85,2.41,2.95,2.68,2.53,2.44,2.16,2.2,2.1,2.29,2.03,2.05,2.07) > x <- c(2.22,2.19,2.2,2.19,2.22,2.15,2.08,2,2.06,2.11,2.11,2.3,2.57,2.65,2.69,2.76,2.93,3.05,3.15,3.23,3.37,3.45,3.55,3.63,3.7,3.75,3.88,3.91,3.94,4.1,4.21,4.33,4.38,4.19,4.06,4.06,4.02,4.08,3.84,3.6,3.69,3.95,4.11,4.52,4.48,4.33,4.21,3.03,2.46,2.13,1.58,1.22,1.03,1.06,0.91,0.92,0.72,0.78,0.65,0.78,0.79) > #'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.932767 > (rho23 <- cor(y, z)) [1] 0.6745901 > (rho13 <- cor(x, z)) [1] 0.4873664 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.937024 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] -0.5331341 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] 0.6988933 > > #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/1qh1p1258040483.tab") > > > > proc.time() user system elapsed 0.212 0.026 0.627