R version 2.7.2 (2008-08-25) Copyright (C) 2008 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. > x <- c(0.076904412 + ,0.114909836 + ,0.064628931 + ,0.103260606 + ,0.093753165 + ,0.098798611 + ,0.08698 + ,0.083630872 + ,0.084392857 + ,0.102034965 + ,0.074606452 + ,0.083621795 + ,0.091568493 + ,0.109784 + ,0.065912162 + ,0.074264151 + ,0.09197973 + ,0.110705426 + ,0.094818182 + ,0.12543662 + ,0.10672956 + ,0.121045752 + ,0.118974194 + ,0.130278146 + ,0.116473333 + ,0.154041322 + ,0.098689873 + ,0.099112426 + ,0.148178808 + ,0.143445255 + ,0.126452703 + ,0.119197279 + ,0.08504375 + ,0.093785714 + ,0.108106667 + ,0.088258065 + ,0.102907285 + ,0.144897436 + ,0.085711656 + ,0.110682635 + ,0.120613333 + ,0.104100671 + ,0.105931507 + ,0.095941176 + ,0.092871508 + ,0.120262195 + ,0.108668831 + ,0.098435754 + ,0.127031447 + ,0.126208633 + ,0.078674157 + ,0.081206704 + ,0.100051724 + ,0.101473054 + ,0.096325 + ,0.089295181 + ,0.085450262 + ,0.103219101 + ,0.104476744 + ,0.111086022 + ,0.121705521 + ,0.106072848 + ,0.086473958 + ,0.11039548 + ,0.104287958 + ,0.104522222 + ,0.134028571 + ,0.09961236 + ,0.081478673 + ,0.130284884 + ,0.093628866 + ,0.109661616 + ,0.103596591 + ,0.124845679 + ,0.102102564 + ,0.096482412 + ,0.10842 + ,0.116387283 + ,0.094751323 + ,0.099768817 + ,0.096915888 + ,0.136333333 + ,0.092787879 + ,0.086783654 + ,0.091107143 + ,0.127118644 + ,0.098974747 + ,0.085171171 + ,0.116217391 + ,0.117432584 + ,0.07609589 + ,0.081606335 + ,0.081908676 + ,0.063353191 + ,0.073571429 + ,0.060884444 + ,0.064803571) > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa P., (2007), Tukey lambda PPCC Plot (v1.0.1) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_tukeylambda.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > gp <- function(lambda, p) + { + (p^lambda-(1-p)^lambda)/lambda + } > sortx <- sort(x) > c <- array(NA,dim=c(201)) > for (i in 1:201) + { + if (i != 101) c[i] <- cor(gp(ppoints(x), lambda=(i-101)/100),sortx) + } > postscript(file="/var/www/html/rcomp/tmp/1zq0r1225107273.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot((-100:100)/100,c[1:201],xlab='lambda',ylab='correlation',main='PPCC Plot - Tukey lambda') > grid() > dev.off() null device 1 > > #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,'Tukey Lambda - Key Values',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Distribution (lambda)',1,TRUE) > a<-table.element(a,'Correlation',1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Approx. Cauchy (lambda=-1)',header=TRUE) > a<-table.element(a,c[1]) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Exact Logistic (lambda=0)',header=TRUE) > a<-table.element(a,(c[100]+c[102])/2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Approx. Normal (lambda=0.14)',header=TRUE) > a<-table.element(a,c[115]) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'U-shaped (lambda=0.5)',header=TRUE) > a<-table.element(a,c[151]) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Exactly Uniform (lambda=1)',header=TRUE) > a<-table.element(a,c[201]) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/217gf1225107273.tab") > > system("convert tmp/1zq0r1225107273.ps tmp/1zq0r1225107273.png") > > > proc.time() user system elapsed 0.661 0.196 0.730