x <- c(100.55,100.41,100.54,100.66,100.86,100.88,100.88,101.37,101.84,102.25,102.58,102.59,102.59,101.95,101.94,102.18,102.47,102.5,102.5,102.87,103.08,103.47,103.65,103.68,99.76,99.13,99.19,99.37,99.61,99.65,99.66,99.98,100.38,100.92,101.16,101.19,101.52,101.14,101.38,101.46,101.52,101.53,100.79,101.2,101.28,101.59,101.75,101.76,103.03,102.97,103.11,103.17,103.17,103.2,102.17,102.22,102.18,102.44,102.61,102.63)
par3 = '0.10'
par2 = '0.90'
par1 = '0.10'
ylab = 'value'
xlab = 'quantile'
main = 'Harrell-Davis Quantiles'
par3 <- '0.10'
par2 <- '0.90'
par1 <- '0.10'
#'GNU S' R Code compiled by R2WASP v. 1.2.291 ()
#Author: root
#To cite this work: Wessa, (2012), Harrell-Davis Quantile Estimator (v1.0.13) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_harrell_davis.wasp/
#Source of accompanying publication: Office for Research, Development, and Education
#
par1 <- as(par1,'numeric')
par2 <- as(par2,'numeric')
par3 <- as(par3,'numeric')
library(Hmisc)
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/1q5ss1482924619.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()

#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)
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/2pwiy1482924619.tab") 

try(system("convert tmp/1q5ss1482924619.ps tmp/1q5ss1482924619.png",intern=TRUE))

