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(0.000122731418385286 + ,0.00241176062065143 + ,0.00454140599615316 + ,-0.00402583570154451 + ,-0.00193967048183182 + ,0.00320768442262351 + ,0.00240051297617237 + ,0.00248102399927561 + ,0.00522120378512577 + ,0.00323471226552284 + ,-0.000422193121621420 + ,0.000205816117153402 + ,-0.000288091582987664 + ,-0.00637508628400539 + ,-0.00105104102454469 + ,0.00743350631311348 + ,-0.00767101170632287 + ,0.00116401249609047 + ,0.00117753419933191 + ,0.000733275098580065 + ,0.00384574338623112 + ,-0.00307081652847713 + ,-0.00264416152092356 + ,-0.00279656278570905 + ,-0.000702103656141851 + ,-0.00745537201791366 + ,-0.000425836473132485 + ,-0.00293281614619538 + ,-0.00125023796047494 + ,-0.00092945793891733 + ,0.000206465079581329 + ,0.00164184814032768 + ,0.00195746753848796 + ,0.000127640171670621 + ,-0.000542978626811696 + ,4.06913608270088e-05 + ,-0.00145098459719878 + ,0.00219667743149766 + ,0.000878446301642876 + ,0.00143759416018860 + ,8.37756048070314e-05 + ,0.00595976943689932 + ,-0.00163768348958786 + ,0.00246577263478245 + ,-0.000540183243434383 + ,-0.000830262865008054 + ,0.00211426862775146 + ,0.00164418409853329 + ,-0.00229453957395615) > par3 = '0.005' > par2 = '0.99' > par1 = '0.01' > ylab = 'value' > xlab = 'quantile' > main = 'Harrell-Davis Quantiles' > #'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!) > par1 <- as(par1,'numeric') > par2 <- as(par2,'numeric') > par3 <- as(par3,'numeric') > library(Hmisc) Loading required package: survival Loading required package: splines Attaching package: 'Hmisc' The following object(s) are masked from package:survival : untangle.specials The following object(s) are masked from package:base : format.pval, round.POSIXt, trunc.POSIXt, units > myseq <- seq(par1, par2, par3) > hd <- hdquantile(x, probs = myseq, se = TRUE, na.rm = FALSE, names = TRUE, weights=FALSE) > postscript(file="/var/www/html/rcomp/tmp/1zjum1259947646.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(myseq,hd,col=2,main=main,xlab=xlab,ylab=ylab) > 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,'Harrell-Davis Quantiles',3,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'quantiles',header=TRUE) > a<-table.element(a,'value',header=TRUE) > a<-table.element(a,'standard error',header=TRUE) > a<-table.row.end(a) > length(hd) [1] 197 > for (i in 1:length(hd)) + { + a<-table.row.start(a) + a<-table.element(a,as(labels(hd)[i],'numeric'),header=TRUE) + a<-table.element(a,as.matrix(hd[i])[1,1]) + a<-table.element(a,as.matrix(attr(hd,'se')[i])[1,1]) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/2woc71259947646.tab") > > system("convert tmp/1zjum1259947646.ps tmp/1zjum1259947646.png") > > > proc.time() user system elapsed 1.082 0.207 1.163