R version 3.0.1 (2013-05-16) -- "Good Sport" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: i686-pc-linux-gnu (32-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(1165010 + ,1160665 + ,1156265 + ,1147162.5 + ,1237238.75 + ,1232481.25 + ,1165010 + ,1120157.5 + ,1124488.75 + ,1124488.75 + ,1129328.75 + ,1138005 + ,1151507.5 + ,1151507.5 + ,1142831.25 + ,1120157.5 + ,1237238.75 + ,1255086.25 + ,1228136.25 + ,1165010 + ,1192015 + ,1151507.5 + ,1169781.25 + ,1178512.5 + ,1187615 + ,1165010 + ,1169781.25 + ,1138005 + ,1237238.75 + ,1268588.75 + ,1241638.75 + ,1192015 + ,1245983.75 + ,1187615 + ,1241638.75 + ,1237238.75 + ,1250755 + ,1201131.25 + ,1255086.25 + ,1250755 + ,1331715 + ,1313441.25 + ,1241638.75 + ,1205462.5 + ,1255086.25 + ,1187615 + ,1237238.75 + ,1245983.75 + ,1264257.5 + ,1223805 + ,1245983.75 + ,1259486.25 + ,1309110 + ,1268588.75 + ,1214633.75 + ,1156265 + ,1210288.75 + ,1061788.75 + ,1133660 + ,1174112.5 + ,1214633.75 + ,1156265 + ,1156265 + ,1156265 + ,1187615 + ,1142831.25 + ,1084036.25 + ,1034838.75 + ,1070533.75 + ,931205 + ,1016578.75 + ,1066188.75 + ,1075305 + ,1025681.25 + ,1030012.5 + ,1016578.75 + ,1061788.75 + ,1030012.5 + ,967381.25 + ,922102.5 + ,998662.5 + ,832383.75 + ,940362.5 + ,989560 + ,989560 + ,931205 + ,877236.25 + ,872905 + ,922102.5 + ,877236.25 + ,791931.25 + ,733136.25 + ,796276.25 + ,647831.25 + ,782760 + ,854562.5 + ,877236.25 + ,827626.25 + ,764926.25 + ,809778.75 + ,827626.25 + ,814110 + ,679126.25 + ,616481.25 + ,661278.75 + ,526350 + ,665678.75 + ,715302.5 + ,755755 + ,688283.75 + ,625157.5 + ,661278.75 + ,679126.25 + ,643431.25 + ,508502.5 + ,449707.5 + ,503676.25 + ,355231.25 + ,517178.75 + ,616481.25) > par3 = '0.1' > par2 = '0.9' > par1 = '0.1' > ylab = 'Omzet' > xlab = 'Decielen' > main = 'Harrell-Davis Decielen omzetcijfer' > 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: survival Loading required package: splines Hmisc library by Frank E Harrell Jr Type library(help='Hmisc'), ?Overview, or ?Hmisc.Overview') to see overall documentation. NOTE:Hmisc no longer redefines [.factor to drop unused levels when subsetting. To get the old behavior of Hmisc type dropUnusedLevels(). Attaching package: 'Hmisc' The following object is masked from 'package:survival': untangle.specials The following object is 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/1a7az1376991321.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/2xvrs1376991321.tab") > > try(system("convert tmp/1a7az1376991321.ps tmp/1a7az1376991321.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.279 0.295 1.627