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.117354396717212 + ,0.118845681032272 + ,0.112391885267935 + ,0.111306414892192 + ,0.111557866161293 + ,0.115874513020299 + ,0.120518600028397 + ,0.127937652516104 + ,0.11613316666403 + ,0.109945475878252 + ,0.116553866162416 + ,0.116068157652546 + ,0.113370026071156 + ,0.123182199760877 + ,0.111632647202366 + ,0.109758101752217 + ,0.105238647621144 + ,0.110567657536647 + ,0.109445829081846 + ,0.115565377944385 + ,0.109040168162481 + ,0.118699838338174 + ,0.115706070657763 + ,0.103330532839008 + ,0.114086556139986 + ,0.111186708004422 + ,0.108409409523554 + ,0.101131998751098 + ,0.101340239460215 + ,0.101132392401369 + ,0.103330089281936 + ,0.112997274264224 + ,0.101388063209412 + ,0.0954252014189293 + ,0.111307936120104 + ,0.108517581966327 + ,0.113117723156533 + ,0.12234246171967 + ,0.116281802327739 + ,0.092816312987346 + ,0.0954083259281368 + ,0.0983760049075001 + ,0.100589152001216 + ,0.104522549361392 + ,0.0998363447670241 + ,0.0959721467215449 + ,0.097031371532279 + ,0.093072585629373 + ,0.100082898456186 + ,0.100416078984485 + ,0.10057893372505 + ,0.0940357410855729 + ,0.0902738332694873 + ,0.0956823578799632 + ,0.103656114777059 + ,0.111759459418603 + ,0.10108471855862 + ,0.0980399013830847 + ,0.0975611265478894 + ,0.0955190702462385) > #'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/108du1224849002.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/2a9xc1224849002.tab") > > system("convert tmp/108du1224849002.ps tmp/108du1224849002.png") > > > proc.time() user system elapsed 0.673 0.191 0.798