R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" 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(425.25,417.75,410.25,395.25,546.75,539.25,425.25,349.50,357.00,357.00,364.50,380.25,334.50,288.75,251.25,251.25,395.25,410.25,296.25,167.25,235.50,235.50,288.75,319.50,312.00,235.50,273.75,258.75,387.75,357.00,235.50,144.75,228.00,251.25,273.75,303.75,243.00,190.50,213.00,220.50,417.75,417.75,303.75,288.75,334.50,312.00,372.75,448.50,463.50,357.00,327.00,296.25,501.75,516.75,478.50,516.75,509.25,448.50,516.75,592.50,623.25,531.75,471.00,516.75,714.00,774.75,759.75,789.75,782.25,706.50,835.50,866.25,911.25,774.75,721.50,782.25,927.00,1056.00,1025.25,1025.25,1040.25,987.75,1124.25,1124.25,1101.00,972.00,995.25,1010.25,1109.25,1238.25,1146.75,1192.50,1154.25,1131.75,1306.50,1268.25,1215.00,1139.25,1215.00,1253.25,1299.00,1359.75,1299.00,1336.50,1290.75,1283.25,1473.00,1488.75,1428.00,1321.50,1412.25,1450.50,1496.25,1564.50,1496.25,1549.50,1526.25,1443.00,1617.75,1617.75) > par3 = '0.01' > par2 = '0.99' > par1 = '0.01' > ylab = 'Omzet (euro)' > xlab = 'Percentiles' > main = 'Percentiles Mentos Aardbei' > 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/1tsum1471012010.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/22du31471012010.tab") > > try(system("convert tmp/1tsum1471012010.ps tmp/1tsum1471012010.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.445 0.096 1.550