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.166646532498191,1.45446038541130,1.24444430192058,0.546892625557094,0.092483227606145,-2.05501754615136,0.000968248628828662,0.358669943697234,-1.96248894495211,-0.760430072823699,-2.15129744720461,-2.27687543769387,0.429721920121495,0.251798319320420,0.0538261247459631,0.420389951364929,-1.15014586681924,2.33969562462212,-0.966522812333634,0.425357986510933,-0.104720863173985,1.13756910736265,-1.74841664563892,0.376320447670808,-0.453576483938847,-0.0583257566372856,0.626862560020816,1.76273423439776,-0.807266008249354,0.0336200512961656,-0.424808300981018,-0.228845362094883,0.685587835348772,-0.371904564411849,-2.78446258435140,-0.160077329447092,0.646594885985588,0.0512569903857203,-0.246501767270706,0.0423722347299893,1.86131887227694,-0.629009045704846,-0.616706418345441,-1.06533038224853,0.887005708246265,-0.181852725894869,0.0868758116841302,-0.950195127295966) > par3 = '0.025' > par2 = '1' > par1 = '0.00' > 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/1qhtq1259952084.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] 41 > 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/2fd0c1259952084.tab") > > system("convert tmp/1qhtq1259952084.ps tmp/1qhtq1259952084.png") > > > proc.time() user system elapsed 0.664 0.197 0.734