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.00486999668147347 + ,0.0428273731806190 + ,-0.0113270953550521 + ,-0.00164695550344393 + ,-0.00248663426244923 + ,0.0268510385266467 + ,0.0381967001528541 + ,-0.0431450620861952 + ,-0.0475736004031863 + ,0.0435888009176893 + ,-0.000959816306380407 + ,0.0328414363366557 + ,-0.0124353398424357 + ,0.0213031282597432 + ,0.0403129149299032 + ,0.0528253385053685 + ,0.0225279161294693 + ,0.00539833355800482 + ,-0.0108852534839238 + ,0.137155213449756 + ,0.100180613729367 + ,-0.199546638423276 + ,0.0949284582184347 + ,0.0145848937339730 + ,-0.0228422906657681 + ,0.0664170312799638 + ,-0.0345043755837051 + ,0.00544241248252102 + ,-0.0596599918629353 + ,0.0461721625871752 + ,0.0644725854521347 + ,0.061634613533397 + ,-0.0461685064706519 + ,-0.0779623149252923 + ,0.0403910056589936 + ,-0.0642868294428809 + ,0.0211365986735667 + ,0.0620573822056189 + ,-0.0708343686064749 + ,-0.0481963081514007 + ,0.0886792280936185 + ,0.0957477307815901 + ,0.0285169208195182 + ,-0.0181928870370216 + ,-0.0190904848694347 + ,-0.0621906777103636 + ,0.0511216331238096 + ,-0.0874071799401595 + ,-0.0558093993543016 + ,-0.218067302943946 + ,-0.0742120945601723 + ,-0.0734099443447587 + ,0.0912840248285622 + ,0.00076027616046126 + ,0.070843827111049 + ,0.116525204480106 + ,-0.0149685430567228 + ,0.0444154520072297 + ,0.00882059510305222 + ,0.109936925166035 + ,-0.0753182154572745) > 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/1n1d71259927888.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/21w0a1259927888.tab") > > system("convert tmp/1n1d71259927888.ps tmp/1n1d71259927888.png") > > > proc.time() user system elapsed 1.105 0.215 1.180