R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" Copyright (C) 2015 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(109.12,109.12,109.73,112.59,112.59,112.29,113.8,114.16,112.29,112.29,110.99,110.99,110.99,110.99,111.98,114.26,114.26,114.44,115.47,115.41,114.63,116.48,115.8,115.18,115.18,115.18,115.18,116.38,122.41,122.47,123.09,123.09,123.09,123.09,121.77,121.52,121.52,121.52,121.52,124.73,125.23,124.62,128.94,129.34,127.17,128.08,124.54,121.21,120.85,119.02,119.13,119.84,125.53,124.16,127.32,127.22,122.57,125.45,125.45,127.32,128.79,128.99,129.8,130.33,131.19,132.02,136.97,139.45,128.31,130.73,129.83,125.46,130.23,130.23,132.65,136.34,139.12,133.94,143.09,142.71,136.09,134.57,134.65,134.35) > par3 = '0.01' > par2 = '0.99' > par1 = '0.1' > ylab = 'Consumentenprijs ontwikkeling 2006=100' > xlab = 'Percentielen' > main = 'H-D percentielen consumentenprijsindex' > 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/148k81456779797.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] 90 > 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/20pnv1456779797.tab") > > try(system("convert tmp/148k81456779797.ps tmp/148k81456779797.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.216 0.145 1.359