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(100.64,100.93,101.41,102.07,102.42,102.53,102.43,102.6,102.65,102.74,102.82,103.2,102.75,103.09,103.71,104.3,104.58,104.71,104.44,104.57,104.95,105.49,106.03,106.48,106.25,106.7,107.6,108.05,108.72,109.17,109.08,109.04,109.34,109.37,108.96,108.77,108.11,108.67,109.05,109.43,109.62,109.85,109.34,109.65,109.69,109.91,110.09,110.44,109.9,110.25,111.26,111.74,111.91,111.95,111.63,111.85,112.16,112.49,112.66,113.39,112.92,113.44,114.68,115.38,115.48,115.41,114.92,115.16,115.89,116.25,116.43,116.83,116.17,116.78,117.98,118.53,118.43,118.29,117.85,118.27,119,119.33,119.17,119.57,118.62,119.09,120.19,120.17,120.29,120.35,119.88,120.04,120.52,120.43,120.34,120.75) > par3 = '0.1' > par2 = '0.9' > par1 = '0.1' > ylab = 'Waarden in %' > xlab = 'Decielen' > main = 'Inflatie Europese Unie t.o.v. 2005' > par3 <- '0.1' > par2 <- '0.9' > par1 <- '0.1' > #'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/12blz1424983173.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] 9 > 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/2ecet1424983173.tab") > > try(system("convert tmp/12blz1424983173.ps tmp/12blz1424983173.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.819 0.125 0.944