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(77.34,78.15,78.31,78.71,78.68,78.85,78.97,79.47,80.6,82.24,83.25,84.55,85.91,86.84,87.44,87.79,88.08,88.38,88.53,88.79,88.85,89.26,89.31,89.39,89.76,89.94,89.99,90.08,89.95,90.2,89.7,89.5,89.25,89.13,89.07,89.06,89.15,89.38,89.4,89.51,89.62,89.65,89.68,89.92,90.26,90.89,91.08,91.13,91.83,92.66,93.45,93.95,94.12,94.31,94.25,94.51,94.58,94.85,95.31,95.75,96.06,96.4,96.57,96.47,96.34,96.22,96.2,96.71,97.05,97.82,98.22,98.5,98.94,99.5,99.89,100,100.1,100.16,100.05,100.03,100,100.32,100.53,100.49,100.38,100.22,100.5,100.57,100.6,100.23,100.29,100.01,100.13,100.22,100.2,100.34,100.73,100.29,101.11,101.09,101.01,101.27,101.57,101.69,101,101.43,101.13,101.23) > par3 = '0.01' > par2 = '0.99' > par1 = '0.01' > ylab = 'Consumptieprijsindex' > xlab = 'Percielen' > main = 'Harrell-Davis consumptieprijsindex' > 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: 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/1zprf1475663216.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/2a5qf1475663216.tab") > > try(system("convert tmp/1zprf1475663216.ps tmp/1zprf1475663216.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.249 0.078 1.333