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.000170474174683904 + ,0.00300105105514765 + ,-0.00258118056597717 + ,-0.00100474530085886 + ,-0.00188317259190206 + ,0.00226741260984998 + ,-0.000378236771890163 + ,0.00534467868598725 + ,-0.00454122647204378 + ,-0.000243030964403188 + ,-0.00178877611418487 + ,0.00196315202134216 + ,0.00198733873263326 + ,-0.00252514472141311 + ,0.00111821256310272 + ,0.00387688819377798 + ,-0.00188036114794339 + ,-0.00192385337153380 + ,0.000588655014479161 + ,-0.000374525152491403 + ,0.000869024529743859 + ,-0.000669663589467674 + ,-0.00177170780798301 + ,-0.00183025621937770 + ,0.00365996468188564 + ,-0.000200519045054502 + ,0.000198305771384854 + ,-0.000492380458504018 + ,-0.00197714776666268 + ,-0.00267978689994471 + ,0.00474728909441552 + ,-0.00309143062740757 + ,0.000469148868372284 + ,-0.00164114198064576 + ,0.00129373584013251 + ,0.00226179950814353 + ,-0.00070068049122048 + ,0.00262387467614701 + ,0.008073000601554 + ,0.0036133062200368 + ,0.00426263030262271 + ,-0.000185564534509172 + ,-0.00263152838693195 + ,0.00116617910298652 + ,0.00161552901276068 + ,-0.00137625725324675 + ,-0.00407050694199777 + ,-0.000573356069464514) > 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/1debk1260993887.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/2mhwu1260993887.tab") > > try(system("convert tmp/1debk1260993887.ps tmp/1debk1260993887.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.057 0.245 1.184