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,100.7,100.9,101.1,101.1,100.7,104.1,108,112.8,116.7,122.6,125.1,126.3,122.4,118.3,116.2,113.5,113.5,113.5,114.6,116.9,119.6,119.4,118.9,116.9,114.4,112.1,110,107.1,105.3,104.1,103.7,102.5,100.2,101.4,100,100,99.3,97,94.7,91.6,90.9,90.2,89,88.4,88.1,88.1,87.2,87.2,87.4,88.4,88.8,90.4,92.7,94.1,94.1,94.5,94.7,95.9,99.3,99.8) > y <- c(100,85.2,102.9,72.1,78.7,90.5,68.6,71,82.2,70.7,85,97.3,86.2,93.5,104.9,81.4,112.5,86.1,97.8,100.7,81,80.4,99.2,74.5,80.7,95.9,108.8,86.9,91.1,99,90.3,93.9,88.8,80.4,95.9,91.3,89.7,97.6,99.9,112.7,89.5,116.4,104.9,139.7,112.3,97.6,107,101.5,100.4,93.1,117.9,117.6,113.5,109.3,99.7,90.2,84.5,81.8,102.7,84.8,86.7) > x <- c(100,102.5,103.75,101.25,92.5,91.25,96.25,100,100,96.25,86.25,82.5,86.25,93.75,98.75,96.25,81.25,76.25,80,85,88.75,91.25,90,87.5,87.5,87.5,91.25,93.75,90,96.25,100,98.75,100,100,98.75,98.75,100,101.25,101.25,102.5,100,103.75,106.25,107.5,108.75,108.75,106.25,105,106.25,108.75,108.75,107.5,98.75,101.25,102.5,106.25,107.5,106.25,103.75,102.5,108.75) > #'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.2728226 > (rho23 <- cor(y, z)) [1] -0.441344 > (rho13 <- cor(x, z)) [1] -0.8215026 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] -0.1753928 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] -0.8121123 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] -0.3959714 > > #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/1ossn1260969613.tab") > > > > proc.time() user system elapsed 0.194 0.032 0.243