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(3469648.00 + ,3456726.00 + ,3443622.00 + ,3416504.00 + ,3684772.00 + ,3670576.00 + ,3469648.00 + ,3336060.00 + ,3348982.00 + ,3348982.00 + ,3363360.00 + ,3389204.00 + ,3429426.00 + ,3429426.00 + ,3403582.00 + ,3336060.00 + ,3684772.00 + ,3737916.00 + ,3657654.00 + ,3469648.00 + ,3550092.00 + ,3429426.00 + ,3483844.00 + ,3509870.00 + ,3536988.00 + ,3469648.00 + ,3483844.00 + ,3389204.00 + ,3684772.00 + ,3778138.00 + ,3697876.00 + ,3550092.00 + ,3710798.00 + ,3536988.00 + ,3697876.00 + ,3684772.00 + ,3724994.00 + ,3577210.00 + ,3737916.00 + ,3724994.00 + ,3966144.00 + ,3911726.00 + ,3697876.00 + ,3590132.00 + ,3737916.00 + ,3536988.00 + ,3684772.00 + ,3710798.00 + ,3765216.00 + ,3644732.00 + ,3710798.00 + ,3751020.00 + ,3898804.00 + ,3778138.00 + ,3617432.00 + ,3443622.00 + ,3604510.00 + ,3162250.00 + ,3376282.00 + ,3496766.00 + ,3617432.00 + ,3443622.00 + ,3443622.00 + ,3443622.00 + ,3536988.00 + ,3403582.00 + ,3228498.00 + ,3081988.00 + ,3188276.00 + ,2773316.00 + ,3027570.00 + ,3175354.00 + ,3202472.00 + ,3054688.00 + ,3067610.00 + ,3027570.00 + ,3162250.00 + ,3067610.00 + ,2881060.00 + ,2746198.00 + ,2974244.00 + ,2479022.00 + ,2800616.00 + ,2947126.00 + ,2947126.00 + ,2773316.00 + ,2612610.00 + ,2599688.00 + ,2746198.00 + ,2612610.00 + ,2358538.00 + ,2183454.00 + ,2371460.00 + ,1929382.00 + ,2331238.00 + ,2545088.00 + ,2612610.00 + ,2464826.00 + ,2278094.00 + ,2411682.00 + ,2464826.00 + ,2424604.00 + ,2022566.00 + ,1836016.00 + ,1969422.00 + ,1567566.00 + ,1982526.00 + ,2130310.00 + ,2250794.00 + ,2049866.00 + ,1861860.00 + ,1969422.00 + ,2022566.00 + ,1916278.00 + ,1514422.00 + ,1339338.00 + ,1500044.00 + ,1057966.00 + ,1540266.00 + ,1836016.00) > par3 = '0.1' > par2 = '0.9' > par1 = '0.1' > ylab = 'omzet (EUR)' > xlab = 'Decielen' > main = 'Harrell-Davis Quantiles Omzet Evian' > 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/1qtvz1438953605.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/2rcxj1438953605.tab") > > try(system("convert tmp/1qtvz1438953605.ps tmp/1qtvz1438953605.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.945 0.122 1.065