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,99.87,99.54,99.81,100.49,101.14,101.37,101.51,101.82,102.44,102.53,102.65,102.47,102.44,102.42,102.45,102.89,102.85,103.36,103.74,103.72,104.08,104.21,103.91,103.70,103.96,104.10,104.15,104.71,104.72,105.20,105.07,105.06,105.50,105.38,105.47,106.03,107.02,107.32,107.75,108.52,109.32,109.56,110.54,111.16,111.74,111.06,111.24,111.04,110.38,110.14,110.25,110.62,109.99,110.22,110.14,109.93,109.86,110.20,109.91) > y <- c(100,97.82,94.05,91.12,93.13,93.88,92.55,94.43,96.25,100.44,101.50,99.40,99.69,101.69,103.67,103.05,100.95,102.35,101.65,99.57,95.68,96.58,96.33,95.37,96.00,96.88,94.85,92.47,93.99,93.45,92.27,90.40,90.43,91.05,89.08,89.69,87.92,85.88,83.21,83.86,83.01,82.85,78.69,77.57,78.54,78.56,77.48,81.59,85.02,91.71,95.96,90.85,92.29,95.57,93.62,92.63,89.51,87.17,86.73,85.63) > x <- c(100,96.21,96.31,107.18,114.91,92.56,115.00,107.12,117.78,107.37,106.30,114.51,98.00,103.06,100.29,104.61,111.15,104.99,109.93,111.54,132.50,100.34,123.10,114.24,104.57,109.08,106.98,133.68,124.85,122.51,116.80,116.01,129.76,125.20,143.79,127.95,130.30,108.44,129.37,143.68,131.88,117.62,118.96,104.82,134.62,140.40,143.80,153.43,153.29,127.31,153.55,136.93,131.77,144.34,107.42,113.62,124.22,102.06,96.37,111.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.4881451 > (rho23 <- cor(y, z)) [1] -0.7098551 > (rho13 <- cor(x, z)) [1] 0.5873995 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] -0.1248654 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.3918596 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.5990435 > > #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/1b8h61258644767.tab") > > > > proc.time() user system elapsed 0.200 0.033 1.168