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(8378669.00,7557530.00,8656721.00,7729873.00,7067002.00,7222189.00,6758161.00,6745665.00,8203660.00,8799755.00,7995151.00,6844694.00,7400186.00,6146183.00,6793027.00,5815146.00,5993505.00,5838016.00,5926815.00,5642890.00,7120621.00,7781743.00,7638921.00,5886070.00,7358890.00,6981189.00,8423532.00,6819313.00,6727221.00,6923349.00,7578240.00,7228898.00,8988846.00,8404694.00,9601659.00,8213138.00,8434646.00,8466539.00,9106270.00,8438555.00,7723821.00,7538413.00,7199881.00,8168314.00,9045790.00,8544483.00,9020709.00,7932021.00,8435986.00,7920357.00,8333659.00,7415547.00,7770392.00,8188878.00,8092465.00,7188528.00,8152373.00,9025069.00,9233973.00,6916290.00,8171721.00,7012501.00,8779456.00,7308709.00,8084547.00,8255978.00,7658071.00,7371877.00,8780827.00,10116778.00,9567175.00,7455902.00) > par3 = '0.1' > par2 = '0.9' > par1 = '0.1' > ylab = 'Totaal handelsbalans' > xlab = 'Decielen' > main = 'Harrell-Davis Quantiles' > 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/1cndn1412411472.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/216os1412411472.tab") > > try(system("convert tmp/1cndn1412411472.ps tmp/1cndn1412411472.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.765 0.098 0.864