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(5947968.00 + ,5925816.00 + ,5903352.00 + ,5856864.00 + ,6316752.00 + ,6292416.00 + ,5947968.00 + ,5718960.00 + ,5741112.00 + ,5741112.00 + ,5765760.00 + ,5810064.00 + ,5879016.00 + ,5879016.00 + ,5834712.00 + ,5718960.00 + ,6316752.00 + ,6407856.00 + ,6270264.00 + ,5947968.00 + ,6085872.00 + ,5879016.00 + ,5972304.00 + ,6016920.00 + ,6063408.00 + ,5947968.00 + ,5972304.00 + ,5810064.00 + ,6316752.00 + ,6476808.00 + ,6339216.00 + ,6085872.00 + ,6361368.00 + ,6063408.00 + ,6339216.00 + ,6316752.00 + ,6385704.00 + ,6132360.00 + ,6407856.00 + ,6385704.00 + ,6799104.00 + ,6705816.00 + ,6339216.00 + ,6154512.00 + ,6407856.00 + ,6063408.00 + ,6316752.00 + ,6361368.00 + ,6454656.00 + ,6248112.00 + ,6361368.00 + ,6430320.00 + ,6683664.00 + ,6476808.00 + ,6201312.00 + ,5903352.00 + ,6179160.00 + ,5421000.00 + ,5787912.00 + ,5994456.00 + ,6201312.00 + ,5903352.00 + ,5903352.00 + ,5903352.00 + ,6063408.00 + ,5834712.00 + ,5534568.00 + ,5283408.00 + ,5465616.00 + ,4754256.00 + ,5190120.00 + ,5443464.00 + ,5489952.00 + ,5236608.00 + ,5258760.00 + ,5190120.00 + ,5421000.00 + ,5258760.00 + ,4938960.00 + ,4707768.00 + ,5098704.00 + ,4249752.00 + ,4801056.00 + ,5052216.00 + ,5052216.00 + ,4754256.00 + ,4478760.00 + ,4456608.00 + ,4707768.00 + ,4478760.00 + ,4043208.00 + ,3743064.00 + ,4065360.00 + ,3307512.00 + ,3996408.00 + ,4363008.00 + ,4478760.00 + ,4225416.00 + ,3905304.00 + ,4134312.00 + ,4225416.00 + ,4156464.00 + ,3467256.00 + ,3147456.00 + ,3376152.00 + ,2687256.00 + ,3398616.00 + ,3651960.00 + ,3858504.00 + ,3514056.00 + ,3191760.00 + ,3376152.00 + ,3467256.00 + ,3285048.00 + ,2596152.00 + ,2296008.00 + ,2571504.00 + ,1813656.00 + ,2640456.00 + ,3147456.00) > par3 = '0.01' > par2 = '0.99' > par1 = '0.01' > ylab = 'omzet automatten' > xlab = 'Percentielen' > main = 'Harrell-Davis Percentielen' > 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/14hig1438772561.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/201pe1438772561.tab") > > try(system("convert tmp/14hig1438772561.ps tmp/14hig1438772561.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.972 0.122 1.091