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.102859855416197 + ,-0.184931710048905 + ,-0.118415426382957 + ,0.0294331301355558 + ,0.194095647620377 + ,0.26628698110607 + ,-0.276043863387070 + ,-0.104573795359269 + ,0.260362681472705 + ,0.110243912135446 + ,-0.0558286235175563 + ,0.0207720618724801 + ,-0.45810684069464 + ,0.00980701974239928 + ,0.132110994691509 + ,-0.234343173306411 + ,0.0065556042915447 + ,-0.282101265519816 + ,0.129703414949959 + ,0.0446769021185361 + ,-0.0907014830631195 + ,-0.0618789122209489 + ,0.0321885187513025 + ,-0.313693330615173 + ,-0.297830209059854 + ,0.250620353081108 + ,0.249672019103721 + ,-0.317480618733313 + ,0.111601257751957 + ,-0.340635113037266 + ,0.115762772655430 + ,-0.431864351670896 + ,0.0173419714506906 + ,-0.00202795865313021 + ,-0.226109623426069 + ,0.061074948875671 + ,0.298849434561078 + ,0.961781284294105 + ,0.232084579391241 + ,0.111950005054126 + ,0.0768415055374732 + ,0.339524352419517 + ,-0.207051551639282 + ,0.728255502140485 + ,0.226552837689383 + ,-0.0775013801865754 + ,-0.758524534448398 + ,0.39728278703555 + ,-0.0650240772987871 + ,-0.700381837362983 + ,-0.0899544250420092 + ,0.141023497068176 + ,-0.159744308462834 + ,-0.490107245247401 + ,-0.153957098429942 + ,-0.142343999361671 + ,-0.0772828750395576 + ,-0.387132803874081 + ,0.328401166642152 + ,-0.154521626369771) > 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/14yvo1260095897.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/2ngio1260095897.tab") > > system("convert tmp/14yvo1260095897.ps tmp/14yvo1260095897.png") > > > proc.time() user system elapsed 1.089 0.193 1.339