x <- c(5714837,6015267,3415340,115612,615159,9714993,2414534,6614721,8414518,9513816,7713310,9212714,411919,3611400,710617,2410172,529569,269509,508895,308560,198397,977631,717793,57435,667628,57696,577284,677273,447200,327096,207113,616966,276765,866845,6725,576898,187085,966784,586883,476728,406853,217097,827154,526998,456977,427122,867075,157185,87059,657279,87566,67453,297553,227345,97406,187524,337651,397672,797737,717980,717784,897934,297932,108061,187927,887990,998136,288286,768212,988170,508491,438167) par3 = '0.1' par2 = '0.9' par1 = '0.1' ylab = 'value' xlab = 'quantile' main = 'Harrell-Davis Werklozen 16 +' #'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/1nhm61268161058.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/2lix21268161058.tab") try(system("convert tmp/1nhm61268161058.ps tmp/1nhm61268161058.png",intern=TRUE))