R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(2.87550242562274e-05 + ,0.00155584252265055 + ,0.00051084899547365 + ,-0.00221322346788899 + ,-0.00301638452220537 + ,-0.00279467898531214 + ,0.000863543706410622 + ,-0.00275492095243501 + ,0.00601496766238096 + ,-0.00254507881271959 + ,0.0002636738526231 + ,-0.00175221251108731 + ,-0.000489206933664634 + ,-0.00182941515474625 + ,-0.00144707307408091 + ,-0.00336978360706447 + ,2.2916761839861e-05 + ,0.000201343409562587 + ,-0.00148130741038659 + ,-0.00123429780068959 + ,0.0058106916013125 + ,-0.00036735417945173 + ,-0.00231420048212976 + ,-0.0020770069806127 + ,-0.000650911283696455 + ,-0.00765543853471955 + ,0.00118823572978931 + ,0.00192412372081625 + ,-0.00211082595912956 + ,-0.00128381940835733 + ,-0.00147715975812426 + ,-0.000728384433789636 + ,0.0029182596271064 + ,-0.00339750290442145 + ,-6.64979460367175e-05 + ,-0.000600807552089475 + ,-0.000488129760290973 + ,0.002629847201282 + ,-0.00508335129253669 + ,-0.000654535289365911 + ,0.000713089032905264 + ,0.00017631348211703 + ,-0.00118307742885969 + ,-0.00154064947780773 + ,0.0008401686446974 + ,-0.0017658295084943 + ,-0.00233721730457364 + ,-0.000995832759749649 + ,0.000453380835593304 + ,0.000898649420257573 + ,-0.000314597322698498 + ,-0.00123252185077362 + ,8.78562321872131e-05 + ,-0.000672428279560397 + ,0.000243717301244565 + ,0.0013329172766259 + ,-0.000978793826053218 + ,-0.00147067162551774 + ,-0.000990350158922138 + ,-0.00104258504900996 + ,-0.00140492347512407 + ,0.00764116779420568 + ,0.00385985381254906 + ,0.00146333384357409 + ,-0.00149276262011495 + ,0.00506966892220885 + ,-0.000722888415589872 + ,-0.00480315125612542 + ,-0.00110386007586379 + ,-0.000716121652885972 + ,0.000678184615710899 + ,7.6115095094999e-05 + ,-0.00048114450074346 + ,-0.00333629678437956 + ,0.00142253261344236 + ,-0.00119261098524634 + ,-0.00142145262741885 + ,-0.00378399855705837 + ,0.000117716603661615 + ,-0.000329405503845429 + ,0.00306564616660776 + ,-0.00129855984802292 + ,-0.000256614349261368 + ,0.00043822781733966 + ,0.000650110383485539) > par3 = '0.01' > 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/wessaorg/rcomp/tmp/193kr1324305605.ps",horizontal=F,onefile=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/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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] 99 > 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/wessaorg/rcomp/tmp/2dryr1324305605.tab") > > try(system("convert tmp/193kr1324305605.ps tmp/193kr1324305605.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.979 0.097 1.180