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(1069.108 + ,1059.362 + ,1049.495 + ,1029.082 + ,1231.089 + ,1220.388 + ,1069.108 + ,968.521 + ,978.233 + ,978.233 + ,989.056 + ,1008.514 + ,1069.108 + ,1049.495 + ,1079.775 + ,1129.547 + ,1412.683 + ,1412.683 + ,1352.244 + ,1291.65 + ,1341.422 + ,1401.983 + ,1412.683 + ,1442.964 + ,1533.833 + ,1473.244 + ,1473.244 + ,1564.114 + ,1816.014 + ,1836.427 + ,1785.734 + ,1664.578 + ,1755.42 + ,1755.42 + ,1765.165 + ,1816.014 + ,1856.04 + ,1876.453 + ,1876.453 + ,1937.014 + ,2169.452 + ,2229.89 + ,2239.603 + ,2088.322 + ,2169.452 + ,2139.171 + ,2078.582 + ,2209.478 + ,2239.603 + ,2188.909 + ,2199.61 + ,2269.916 + ,2532.64 + ,2663.352 + ,2663.352 + ,2602.913 + ,2693.66 + ,2602.913 + ,2552.092 + ,2744.509 + ,2774.634 + ,2703.378 + ,2884.967 + ,2956.228 + ,3168.103 + ,3308.711 + ,3289.258 + ,3278.43 + ,3359.559 + ,3349.692 + ,3228.692 + ,3410.253 + ,3470.847 + ,3410.253 + ,3662.154 + ,3783.309 + ,4065.362 + ,4176.65 + ,4146.492 + ,4085.897 + ,4136.624 + ,4197.185 + ,3995.056 + ,4156.204 + ,4257.779 + ,4216.798 + ,4479.366 + ,4570.08 + ,4953.837 + ,5024.138 + ,4933.418 + ,4984.117 + ,5014.398 + ,5044.678 + ,4852.261 + ,5033.856 + ,5134.437 + ,5033.856 + ,5326.854 + ,5417.607 + ,5811.037 + ,5871.631 + ,5891.089 + ,5992.631 + ,5992.631 + ,6032.657 + ,5851.063 + ,5941.938 + ,6002.377 + ,5891.089 + ,6214.246 + ,6274.812 + ,6678.021 + ,6749.283 + ,6849.864 + ,6940.739 + ,6950.451 + ,6961.152 + ,6779.563 + ,6961.152) > 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/1wh4u1312741994.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/22lnc1312741994.tab") > > try(system("convert tmp/1wh4u1312741994.ps tmp/1wh4u1312741994.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.894 0.076 0.962