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.00493230141437728,0.107678628845633,-0.0528205753233406,0.199100607082406,-0.144367730984423,0.266128654838783,0.172225906110077,0.224491244879139,-0.0348470699291920,-0.111686469164129,0.099749222622141,0.111497284666774,-0.00839447738635663,-0.00563672447314335,-0.126370656774087,-0.00253206274864999,-0.0119283780625802,0.159852751087222,0.0636514476997631,-0.152200041338903,-0.0539034689208854,-0.07844074268474,-0.0743117351630078,0.0768226887832288,0.00579521326840513,-0.214006255534506,0.238247691622851,0.0509449472997333,-0.0101884217162066,0.0443616294178435,0.0389873761426418,0.139619405285727,0.109398088418867,-0.141010565534075,0.037450542625394,-0.082281430607799,-0.148506552263898,-0.083510811324401,-0.0243974136493362,0.0336833609224408,0.176519781465256,0.0126360834319074,-0.0731455812572029,0.0552629651973458,-0.0252148558710217,0.0330607466977735,-0.00121732736080765,-0.0393173147888723,-0.178516980582396) > 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/1w1qh1261051751.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/2c9f01261051751.tab") > > try(system("convert tmp/1w1qh1261051751.ps tmp/1w1qh1261051751.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.097 0.208 1.171