R version 3.3.0 (2016-05-03) -- "Supposedly Educational" 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(93166,93517,94547,95299,95121,95583,96138,96647,97311,97644,100299,101130,102239,103667,104494,105944,106956,109156,109528,109813,110939,112182,113137,114506,115197,116142,117478,118678,119808,121210,122372,123266,124020,124922,125863,126898,127522,128062,129630,130919,131175,133387,134512,135423,136395,137384,138344,139342,139885,140560,141457,144577,145505,146767,147602,148490,149516,150688,151012,151614,151779,152062,152432,153634,153989,155114,155448,155514,156552,157472,158928,154948,155178,155396,156479,157562,158255,159138,160067,161112,162009,162941,163463,165473,165805,166524,167426,168593,169452,170386,171281,171950,172842,173644,174380,175639,176169,176642,177225,178180,178771,180337,180740,181299,181768,182304,182670,183241,183106,183039,183447,184915,185144,185787,186243,186518,187156,186083,186350,187010,187057,187019,187487,188280,188756,189574,189996,190251,190925,191499,192172,191639) > par3 = '0.01' > par2 = '0.9' > par1 = '0.1' > ylab = 'value' > xlab = '01/2004-12/2014 (Maandcijfers)' > main = 'Harrell-Davis Quantiles' > par3 <- '0.01' > 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: 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/1uku91463675784.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] 81 > 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/24n1w1463675784.tab") > > try(system("convert tmp/1uku91463675784.ps tmp/1uku91463675784.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.048 0.138 1.187