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(196.09,192.64,189.19,182.29,252.11,248.66,196.09,161.18,164.62,164.62,168.08,175.35,154.27,133.16,115.88,115.88,182.29,189.19,136.61,77.14,108.60,108.60,133.16,147.34,143.89,108.60,126.26,119.33,178.80,164.62,108.60,66.75,105.15,115.88,126.26,140.07,112.05,87.87,98.25,101.70,192.64,192.64,140.07,133.16,154.27,143.89,171.90,206.82,213.75,164.62,150.79,136.61,231.38,238.31,220.65,238.31,234.83,206.82,238.31,273.23,287.40,245.21,217.20,238.31,329.25,357.26,350.36,364.16,360.71,325.80,385.28,399.45,420.19,357.26,332.70,360.71,427.46,486.94,472.76,472.76,479.70,455.47,518.44,518.44,507.71,448.20,458.93,465.86,511.50,570.98,528.79,549.90,532.24,521.88,602.47,584.81,560.25,525.34,560.25,577.91,598.99,627.00,598.99,616.28,595.20,591.75,679.23,686.51,658.50,609.37,651.22,668.85,689.96,721.42,689.96,714.52,703.80,665.40,745.98,745.98) > par3 = '0.01' > par2 = '0.99' > par1 = '0.01' > ylab = 'Omzet (Euro) (x1000)' > xlab = 'Maanden' > main = 'Harrell-Davis Quantiles Omzet UK Shippin' > 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: 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/fisher/rcomp/tmp/1n1ks1376324127.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/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/21lzr1376324127.tab") > > try(system("convert tmp/1n1ks1376324127.ps tmp/1n1ks1376324127.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 6.468 1.178 7.289