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(100.00,94.97,107.50,124.27,107.06,79.71,163.41,144.83,166.82,154.26,132.60,157.51,104.02,106.03,113.23,117.64,113.34,66.62,185.99,174.57,208.19,163.81,162.46,148.16,113.41,105.63,111.79,132.36,110.75,67.37,178.29,156.38,189.71,152.80,150.80,160.40,127.25,108.47,117.09,147.25,116.19,75.83,181.94,179.12,183.15,197.90,155.42,162.54,125.90,105.50,121.11,137.51,97.20,69.74,152.58,146.59,161.16,152.84,121.95,140.12) > y <- c(100.00,106.73,104.81,96.15,88.46,88.46,91.35,92.31,91.35,87.50,85.58,86.54,97.12,99.04,98.08,92.31,88.46,89.42,90.38,90.38,88.46,86.54,86.54,86.54,94.23,96.15,94.23,89.42,86.54,86.54,87.50,87.50,87.50,88.46,84.62,79.81,80.77,77.88,74.04,75.96,75.96,76.92,75.96,73.08,68.27,65.38,62.50,66.35,78.85,83.65,79.81,75.96,72.12,75.00,79.81,80.77,78.85,74.04,69.23,70.19) > x <- c(100.00,105.26,106.58,101.32,98.68,100.00,102.63,102.63,102.63,98.68,98.68,93.42,98.68,98.68,100.00,101.32,101.32,103.95,106.58,107.89,107.89,107.89,103.95,96.05,90.79,86.84,88.16,90.79,92.11,93.42,94.74,93.42,90.79,92.11,89.47,84.21,88.16,86.84,84.21,82.89,81.58,85.53,89.47,89.47,84.21,80.26,76.32,80.26,94.74,96.05,90.79,80.26,76.32,81.58,93.42,101.32,103.95,101.32,97.37,98.68) > #'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.6360003 > (rho23 <- cor(y, z)) [1] -0.2694962 > (rho13 <- cor(x, z)) [1] 0.0604677 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.6785991 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.3120114 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.3997962 > > #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/1ar3h1259022379.tab") > > > > proc.time() user system elapsed 0.197 0.028 0.631