R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Copyright (C) 2016 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(21571.00 + ,21493.00 + ,21422.00 + ,21272.00 + ,22747.00 + ,22676.00 + ,21571.00 + ,20831.00 + ,20909.00 + ,20909.00 + ,20980.00 + ,21130.00 + ,21051.00 + ,21643.00 + ,21864.00 + ,21643.00 + ,22455.00 + ,21935.00 + ,20759.00 + ,20467.00 + ,20467.00 + ,20610.00 + ,20026.00 + ,20467.00 + ,20097.00 + ,20467.00 + ,21051.00 + ,21272.00 + ,21792.00 + ,21571.00 + ,20246.00 + ,19726.00 + ,19506.00 + ,19726.00 + ,19363.00 + ,19506.00 + ,19064.00 + ,19805.00 + ,20168.00 + ,20246.00 + ,21643.00 + ,21643.00 + ,19805.00 + ,19363.00 + ,19363.00 + ,19584.00 + ,18622.00 + ,18180.00 + ,17668.00 + ,17817.00 + ,18480.00 + ,17960.00 + ,19363.00 + ,19584.00 + ,18180.00 + ,17668.00 + ,17375.00 + ,17668.00 + ,16855.00 + ,16563.00 + ,15388.00 + ,15680.00 + ,15751.00 + ,15830.00 + ,17226.00 + ,17076.00 + ,15388.00 + ,14647.00 + ,14355.00 + ,14725.00 + ,13322.00 + ,12367.00 + ,10601.00 + ,10750.00 + ,10750.00 + ,10601.00 + ,11854.00 + ,11926.00 + ,10451.00 + ,10159.00 + ,9568.00 + ,10380.00 + ,8905.00 + ,8022.00 + ,6333.00 + ,6697.00 + ,6255.00 + ,6404.00 + ,7509.00 + ,7730.00 + ,6996.00 + ,6917.00 + ,6917.00 + ,7879.00 + ,6184.00 + ,5079.00 + ,3163.00 + ,4709.00 + ,4488.00 + ,4566.00 + ,6333.00 + ,6112.00 + ,5300.00 + ,5671.00 + ,5671.00 + ,6996.00 + ,5450.00 + ,4566.00 + ,3163.00 + ,5008.00 + ,4859.00 + ,4930.00 + ,6476.00 + ,6333.00 + ,5813.00 + ,5892.00 + ,6255.00 + ,7067.00 + ,5813.00 + ,4787.00) > par3 = '0.01' > par2 = '0.99' > par1 = '0.01' > ylab = 'Omzet in EUR op jaarbasis' > xlab = 'Percentielen' > main = 'Harrell-Davis Percentielen webcam-omzet' > 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: Formula Loading required package: ggplot2 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/1zvu81471274586.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/2omiw1471274586.tab") > > try(system("convert tmp/1zvu81471274586.ps tmp/1zvu81471274586.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.685 0.136 1.833