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(2891262.00 + ,3001753.00 + ,3049444.00 + ,3072606.00 + ,3114971.00 + ,3167956.00 + ,3213665.00 + ,3213977.00 + ,3251624.00 + ,3293039.00 + ,3331523.00 + ,3333873.00 + ,3348700.00 + ,3355439.00 + ,3388686.00 + ,3390581.00 + ,3440349.00 + ,3443549.00 + ,3454304.00 + ,3466587.00 + ,3535989.00 + ,3545823.00 + ,3552136.00 + ,3563751.00 + ,3571343.00 + ,3647578.00 + ,3670053.00 + ,3675761.00 + ,3697355.00 + ,3719403.00 + ,3777434.00 + ,3807138.00 + ,3858569.00 + ,3888685.00 + ,3896807.00 + ,3921482.00 + ,3944666.00 + ,3973721.00 + ,3990145.00 + ,4099344.00 + ,4103791.00 + ,4121803.00 + ,4130139.00 + ,4156519.00 + ,4173577.00 + ,4177498.00 + ,4274814.00 + ,4322719.00 + ,4341934.00 + ,4442139.00 + ,4447089.00 + ,4452338.00 + ,4466794.00 + ,4472259.00 + ,4487988.00 + ,4529566.00 + ,4560314.00 + ,4563348.00 + ,4566599.00 + ,4568847.00 + ,4600637.00 + ,4623783.00 + ,4656638.00 + ,4666071.00 + ,4704148.00 + ,4713449.00 + ,4713826.00 + ,4779391.00 + ,4811406.00 + ,4851476.00 + ,4877589.00 + ,4916693.00 + ,4939490.00 + ,5021544.00 + ,5024163.00 + ,5025767.00 + ,5027940.00 + ,5058056.00 + ,5078079.00 + ,5100023.00 + ,5119203.00 + ,5121598.00 + ,5128892.00 + ,5172312.00 + ,5175950.00 + ,5239374.00 + ,5288928.00 + ,5404974.00 + ,5440427.00 + ,5477811.00 + ,5540569.00 + ,5627276.00 + ,5671424.00 + ,5759003.00 + ,5934128.00 + ,5942981.00) > par3 = '0.01' > par2 = '0.99' > par1 = '0.01' > ylab = 'value' > xlab = 'quantile' > main = 'Harrell-Davis Quantiles' > par3 <- '0.01' > par2 <- '0.99' > par1 <- '0.01' > #'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/1cfvb1424976194.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] 99 > 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/2bi871424976194.tab") > > try(system("convert tmp/1cfvb1424976194.ps tmp/1cfvb1424976194.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.992 0.115 1.107