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. > x <- c(112.1294759 + ,123.1474443 + ,119.3806175 + ,121.5465429 + ,124.3716631 + ,85.47917603 + ,88.86932018 + ,128.3268312 + ,141.0398718 + ,117.9680574 + ,101.9590434 + ,103.0890915 + ,111.9411345 + ,120.6990069 + ,111.9411345 + ,111.9411345 + ,117.0263507 + ,89.99936823 + ,68.90513797 + ,113.4478653 + ,105.9142116 + ,119.2864468 + ,114.954596 + ,106.7617476 + ,110.2460624 + ,143.0174559 + ,125.5958818 + ,106.7617476 + ,147.2551361 + ,79.16974108 + ,92.63614701 + ,137.6497276 + ,141.0398718 + ,123.4299564 + ,112.5061585 + ,127.5734659 + ,130.5869273 + ,152.1520109 + ,131.3402927 + ,106.1967236 + ,144.6183573 + ,88.02178414 + ,99.60477665 + ,142.8291145 + ,116.8380094 + ,125.0308578 + ,111.2819398 + ,115.0487667 + ,134.2595835 + ,152.3403523 + ,107.8917957 + ,139.3447997 + ,147.7259894 + ,89.24600286 + ,97.43885122 + ,145.6542347 + ,144.9008693 + ,144.4300159 + ,106.7617476 + ,130.7752687 + ,125.0308578 + ,139.250629 + ,115.0487667 + ,121.9232256 + ,150.7394509 + ,104.1249688 + ,96.59131518 + ,136.8021916 + ,144.0533333 + ,133.8829008 + ,118.3447401 + ,127.1967832 + ,127.0084418 + ,128.3268312 + ,136.3313383 + ,124.7483457 + ,137.1788743 + ,104.9725049 + ,92.54197634 + ,136.4255089 + ,134.1654128 + ,97.8155339 + ,86.42088274 + ,77.28632767 + ,86.89173609) > #'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!) > 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/1bks11258129323.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/2tu7d1258129323.tab") > > system("convert tmp/1bks11258129323.ps tmp/1bks11258129323.png") > > > proc.time() user system elapsed 0.443 0.186 0.490