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(346545.627,314279.910,308812.096,290559.914,27380.264,345085.079,77331.697,68439.037,35622.198,12450.223,02101.256,41947.963,43121.454,98500.316,317458.276,289562.400,15062.110,363671.636,02273.846,04940.681,350217.801,316397.924,06115.236,48101.071,28657.739,07333.430,18729.800,297858.078,30615.570,64259.798,410420.793,07762.536,32055.321,21567.091,09158.826,336283.246,53531.095,323230.395,20471.243,03129.064,330202.758,362754.877,393226.432,421796.659,55393.912,32615.416,14102.543,346290.331,362142.474,324274.772,23931.760,304333.531,324589.071,72442.921,402088.175,87974.725,37258.801,318231.559,309929.807,343061.285) > y <- c(12610,10862,52929,56902,81776,87876,82103,72846,60632,33521,15342,7758,8668,13082,38157,58263,81153,88476,72329,75845,61108,37665,12755,2793,12935,19533,33404,52074,70735,69702,61656,82993,53990,32283,15686,2713,12842,19244,48488,54464,84192,84458,85793,75163,68212,49233,24302,5402,15058,33559,70358,85934,94452,129305,113882,107256,94274,57842,26611,14521) > x <- c(30.35,31.21,32.86,33.20,35.73,34.53,36.54,40.10,40.56,46.14,42.85,38.22,40.18,42.19,47.56,47.26,44.03,49.83,53.35,58.90,59.64,56.99,53.20,53.24,57.85,55.69,55.64,62.52,64.40,64.65,67.71,67.21,59.37,53.26,52.42,55.03,49.32,52.94,54.95,58.20,58.90,62.35,69.23,67.77,73.27,79.32,87.16,85.28,87.06,89.41,98.44,106.64,118.55,127.47,128.08,112.83,98.50,73.18,53.67,036.80) > #'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.4752828 > (rho23 <- cor(y, z)) [1] 0.08227999 > (rho13 <- cor(x, z)) [1] 0.09873693 > (rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23)))) [1] 0.4710499 > (rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23)))) [1] 0.06800556 > (rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13)))) [1] 0.04037768 > > #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/1l62l1260549797.tab") > > > > proc.time() user system elapsed 0.207 0.022 0.226