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(94.65,94.16,93.91,93.21,92.81,93.55,93.03,93.25,94.24,93.23,93.52,92.05,93.42,95.15,95.12,95.46,94.92,95.63,94.96,95.1,95.22,93.77,95.01,94.87,95.01,96.68,94.94,93.9,94.83,96.27,96.51,96.69,97.47,96.41,98.68,99.3,99.22,99.7,98,98.51,98.6,98.14,99.14,98.25,99.72,99.23,101.32,101.07,101.66,103.09,102.3,100.01,98.78,99.46,99.73,99.52,98.97,97.97,99.37,99.14,99.89,100.29,99.57,101.11,101.44,100.81,101.26,99.86,100.57,100.35,101.15,101.33,102.09,101.79,102.83,102.5,102.22,102.43,102.89,102.12,103.25,103.36,103.5,103.68) > par3 = '0.01' > par2 = '0.99' > par1 = '0.01' > ylab = 'Tijd maand (01/2009-12/2015' > xlab = 'Waarde' > main = 'Harrell-Davis Quantiles' > 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/1sjw81456568387.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/2t4o41456568387.tab") > > try(system("convert tmp/1sjw81456568387.ps tmp/1sjw81456568387.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.136 0.179 1.305