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(10.0015939149028 + ,371.813308674732 + ,139.113711610022 + ,-210.030232637406 + ,142.055012162915 + ,-128.975367627225 + ,-350.976465713142 + ,157.166445743686 + ,87.5309812924864 + ,92.676719336301 + ,-27.1311294380929 + ,-44.0906392174146 + ,-208.584185970837 + ,378.027105589823 + ,28.0828780363971 + ,60.9032683309262 + ,11.5471113491051 + ,132.157611528015 + ,63.729948264106 + ,45.4826458746394 + ,-382.790919694142 + ,100.341267809125 + ,192.783333439961 + ,272.604227510628 + ,358.637300862355 + ,63.7637436691249 + ,91.9381724982798 + ,-7.15480961814398 + ,52.4359557503299 + ,-431.909835130252 + ,507.393298577296 + ,495.349929317988 + ,5.71683862811048 + ,83.8912763850498 + ,-596.84139513122 + ,373.967197637512 + ,172.484595302248 + ,-691.036135288197 + ,307.396559464462 + ,-931.94278611332 + ,206.303780435812 + ,-166.451922338117 + ,626.814155836047 + ,5.14318082015322 + ,-764.936788593008 + ,-602.640915213037 + ,432.382310374056 + ,-339.481405871305 + ,-1617.66180193604 + ,-37.9397369693343 + ,174.776434676013 + ,206.332544517659 + ,-549.683378837201 + ,-293.313021161138 + ,838.126432625709 + ,363.722217334598 + ,263.339206725736 + ,-29.2065157303848 + ,481.276239674834 + ,87.2905924881707) > 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/1b3te1262178642.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/2f5cs1262178642.tab") > > try(system("convert tmp/1b3te1262178642.ps tmp/1b3te1262178642.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.157 0.222 3.123