R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) 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(1.5469,1.5501,1.5494,1.5475,1.5449,1.5391,1.5578,1.5528,1.5496,1.549,1.5449,1.5479,1.5494,1.558,1.5691,1.5748,1.5564,1.5601,1.5687,1.5775,1.5841,1.5898,1.5922,1.5969,1.6155,1.6212,1.6124,1.6375,1.6506,1.6543,1.6567,1.6383,1.6475,1.6706,1.6485,1.6592,1.6203,1.608,1.572,1.5964,1.6247,1.6139,1.6193,1.6212,1.5942,1.5194,1.5162,1.5393,1.4935,1.4904,1.5083,1.5147,1.5118,1.5148,1.5202,1.5236,1.5148,1.5138,1.5105,1.502,1.4765,1.4671,1.4482,1.4337,1.4181,1.3767,1.346,1.3413,1.3089,1.3452,1.3442,1.2811,1.2779,1.2974,1.2867,1.2977,1.2537,1.2092,1.1766,1.1203,1.2005,1.2295,1.2307,1.2276,1.2108,1.2071,1.2061,1.2023,1.2012,1.2011,1.2011,1.2011,1.2089,1.2098,1.2052,1.2091,1.2288,1.2298,1.2266,1.2199,1.2418,1.2322,1.2366,1.2338,1.2338,1.2316,1.2316,1.2245) > par3 = '0.1' > par2 = '0.9' > par1 = '0.1' > ylab = 'value' > xlab = 'quantile' > main = 'Harrell-Davis Quantiles' > par3 <- '0.1' > par2 <- '0.9' > par1 <- '0.1' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa, (2012), Harrell-Davis Quantile Estimator (v1.0.13) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_harrell_davis.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > par1 <- as(par1,'numeric') > par2 <- as(par2,'numeric') > par3 <- as(par3,'numeric') > library(Hmisc) Loading required package: grid Loading required package: lattice Loading required package: survival Loading required package: splines Loading required package: Formula Attaching package: 'Hmisc' The following objects 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/wessaorg/rcomp/tmp/1di1a1432666970.ps",horizontal=F,onefile=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/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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] 9 > 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/wessaorg/rcomp/tmp/2ck7v1432666970.tab") > > try(system("convert tmp/1di1a1432666970.ps tmp/1di1a1432666970.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.752 0.125 0.874