x <- c(10698,11514,13253,13807,13971,15548,17351,17409,17537,17704,17970,18004,18089,18479,18730,19169,19684,19785,20366,20506,20764,21382,21705,21725,21790,22205,22228,22397,22405,22414,22679,22780,22782,23843,23970,24319,24561,24693,25316,25591,25814,26105,26482,26887,27044,27071,27192,28029,28352,28806,29096,29133,29383,29462,29743,29965,30212,30364,31514,32034,32609,34777,35022,35338,35953,36438,36845,37702,37863,39690,41086,43129) 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) 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/1v3rh1268068020.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() #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) 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/2is931268068020.tab") try(system("convert tmp/1v3rh1268068020.ps tmp/1v3rh1268068020.png",intern=TRUE))