R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 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(2754542,2899512,2928886,3011252,2932895,3069307,2863923,2585491,2993900,3023542,2491370,2341705,2126472,2196705,2368313,2285174,2163877,2299241,2275643,2163091,2416149,2434553,2281937,2440464,2255745,2389872,2863148,2623516,2558136,2898129,2537720,2543469,2779739,2884779,2711624,2817771,2884477,3058996,3285298,2879617,3220416,3144280,2940811,2986507,3153720,2995806,2990242,2879837,2848699,3138385,3532447,3121872,3309250,3215022,2966778,3010284,3083824,3257727,3180374,3036414,2966714,3067677,3339789,3299861,3193328,3181266,3193356,2898282,2929524,3217311,3126249,3131083,3008058,2868318,3207495,3109336,3070725,2989963,3287552,2835238,3368961,3291689,3008536,2974109) > par3 = '0.1' > par2 = '0.9' > par1 = '0.1' > ylab = 'Invoerwaarde van België (in euro x1000)' > xlab = 'Deciel' > main = 'Belgische invoerwaarden 2008-2014' > 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: 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/1h9nb1444406133.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/29e7u1444406133.tab") > > try(system("convert tmp/1h9nb1444406133.ps tmp/1h9nb1444406133.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.085 0.162 1.245