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.101412434656184 + ,8.81202575001982 + ,7.22218199005616 + ,6.34522390407069 + ,10.8649940993359 + ,-10.8922198651649 + ,0.734394414465646 + ,-0.0179390706289798 + ,9.77474289606975 + ,-1.89838978467021 + ,-7.43663216780881 + ,3.93631177801305 + ,-7.37586328597002 + ,4.56937607566163 + ,-5.57644511931599 + ,-5.01498813962224 + ,-3.15959218858348 + ,19.1892932271942 + ,-7.06045860990475 + ,11.0833125612922 + ,-13.0458821593181 + ,-9.06290124399022 + ,-1.28060038228237 + ,-15.9882579614673 + ,-7.77520617937238 + ,-0.433574311074287 + ,9.42649047423882 + ,10.8410822582803 + ,-3.69645197084187 + ,-0.959561390175432 + ,-2.93909670762435 + ,-5.22988378451808 + ,-8.70332470272302 + ,0.20118534528325 + ,8.63697951799477 + ,0.0353594847692281 + ,-8.52606038876601 + ,4.32479728273804 + ,3.77674215942339 + ,-4.3395217968542 + ,-13.1524297646555 + ,-4.89269052015993 + ,-3.64581392623976 + ,-3.03944041822005 + ,9.51943698875795 + ,-3.59266175781745 + ,-5.48035015252675 + ,-4.25254907793764 + ,-9.9008973968445 + ,-1.75816861848705 + ,-1.52563999886315 + ,-7.18999545624147 + ,-5.51845416493396 + ,3.89790349608751 + ,-3.35322089064957 + ,2.13650137374166 + ,-5.51652882241756 + ,-2.76178813847456 + ,8.56498835185603 + ,9.7467700827992) > 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/128no1259887307.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/2iupd1259887307.tab") > > system("convert tmp/128no1259887307.ps tmp/128no1259887307.png") > > > proc.time() user system elapsed 1.093 0.220 1.451