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.254448836 + ,-0.256780831 + ,-0.259858758 + ,-0.262922664 + ,-0.58299007 + ,-0.269660681 + ,-0.267500517 + ,-0.255754535 + ,-0.25189903 + ,-0.247821188 + ,-0.247866841 + ,-0.249146156 + ,-0.251426129 + ,-0.25565253 + ,-0.250103244 + ,-0.250663359 + ,-0.238473671 + ,-0.232090754 + ,-0.232847188 + ,-0.234824571 + ,-0.239128757 + ,-0.239601826 + ,-0.235402947 + ,-0.232119695 + ,-0.220166096 + ,-0.213161853 + ,-0.205117286 + ,-0.209143249 + ,-0.198978042 + ,-0.213920482 + ,-0.216990968 + ,-0.215575519 + ,-0.219207253 + ,-0.219075142 + ,-0.225220401 + ,-0.217999529 + ,-0.227524361 + ,-0.239380179 + ,-0.241235077 + ,-0.241653918 + ,-0.233510584 + ,-0.232338549 + ,-0.233602859 + ,-0.234539434 + ,-0.228081164 + ,-0.221364739 + ,-0.210459879 + ,-0.217238843 + ,-0.217936845 + ,-0.224668866 + ,-0.222757515 + ,-0.228283207 + ,-0.226825709 + ,-0.234957874 + ,-0.228228971 + ,-0.228282532 + ,-0.232320865 + ,-0.22971766 + ,-0.229870746 + ,-0.230794044 + ,-0.226855875 + ,-0.231231714 + ,-0.230266723 + ,-0.228504068 + ,-0.230569043 + ,-0.229456547 + ,-0.231130029 + ,-0.24063145 + ,-0.243416097 + ,-0.246560656 + ,-0.246300188 + ,-0.248241127 + ,-0.258941951 + ,-0.257554536 + ,-0.247733179 + ,-0.254730878 + ,-0.256799653 + ,-0.261192655 + ,-0.262520696 + ,-0.255958914 + ,-0.251464499 + ,-0.252894413 + ,-0.239531306 + ,-0.235265203 + ,-0.208414972) > 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: Wessa, (2007), Harrell-Davis Quantile Estimator (v1.0.11) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_harrell_davies.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: #Hmisc library > #v 1.0.2, 1 sept. 2006: fixed buffer overflow in R interpreter (thanks to John J. Ely, Ph.D.) > 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/1otrt1256071540.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/2j2uk1256071540.tab") > > system("convert tmp/1otrt1256071540.ps tmp/1otrt1256071540.png") > > > proc.time() user system elapsed 1.136 0.206 2.415