R version 2.8.0 (2008-10-20) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(1160.9 + ,1470.1 + ,1653 + ,1390 + ,1550.7 + ,1852.1 + ,1797.9 + ,1256.4 + ,1835.5 + ,1793.2 + ,1874.8 + ,1948.6 + ,1819.9 + ,1823.6 + ,2042.7 + ,1705.9 + ,1876.8 + ,1919.5 + ,1803.4 + ,1380.4 + ,1812.1 + ,1856.4 + ,1934.3 + ,1977.5 + ,1813.7 + ,1937.1 + ,2178.7 + ,1699.9 + ,1943.8 + ,2151 + ,1927.7 + ,1418.2 + ,1899.8 + ,1974.9 + ,1918.7 + ,1818.3 + ,1751 + ,1888 + ,1947.7 + ,1818.1 + ,2110.8 + ,2009 + ,2124.2 + ,1542.5 + ,2044.1 + ,2324.3 + ,2055.6 + ,2137.9 + ,2140.7 + ,2301.5 + ,2412.6 + ,2477 + ,2311.8 + ,2326.6 + ,2745.3 + ,1937.2 + ,2668.7 + ,2636.1 + ,2327.6 + ,2584.6 + ,2282.8 + ,2337 + ,2499.3 + ,2389.6 + ,2327.1 + ,2556.6 + ,2580 + ,1831.4 + ,2382.1 + ,2237.9 + ,2117.7 + ,2240.9 + ,1946.1 + ,2149.6 + ,2690 + ,2171.1 + ,2358.6 + ,2841.4 + ,3064.6 + ,2037.3 + ,2799.9 + ,2852.3 + ,2541.2 + ,2910 + ,2694.6 + ,3081.7 + ,3648.2 + ,2823.3 + ,3670.1 + ,3027.6 + ,3578.5 + ,2655.1 + ,3835.3 + ,3766 + ,3716 + ,3531.7 + ,3194 + ,3442.2 + ,3610 + ,3105.5 + ,3428.4 + ,3489.7 + ,3679 + ,2596.1 + ,3110.7 + ,3401.7 + ,3431.8 + ,3383.1 + ,3797.5 + ,3860.5 + ,4054.1 + ,4044.9 + ,4402.4 + ,4046.4 + ,4329.7 + ,3204.2 + ,4037.2 + ,4678.4 + ,4174.6 + ,4151.4 + ,3874.7 + ,3568 + ,3431 + ,3733.2 + ,3278.3 + ,3583.7 + ,4060.3 + ,2979 + ,4078.4 + ,4002.1 + ,3542.4 + ,3928.2 + ,3626 + ,3998.4 + ,4413.5 + ,3853.1 + ,3920.5 + ,4616.2 + ,4332.7 + ,3362.7 + ,3855.4 + ,4087.1 + ,3860.2 + ,4018.1 + ,3627.7 + ,3996 + ,4420.7 + ,4386.5 + ,4631.8 + ,4875.3 + ,4549.3 + ,3933 + ,4963.3 + ,4419.7 + ,4646.7 + ,5000.2 + ,4302.2 + ,4432.1 + ,5125.5 + ,4299.9 + ,5145.6 + ,4537.8 + ,4880.9 + ,4136.9 + ,4668.8 + ,4818.5 + ,4933.9 + ,4524.4 + ,4676.1 + ,4911 + ,5745 + ,4483.7 + ,4772.7 + ,5021.4 + ,5535.6 + ,4736 + ,5001.7 + ,5486.3 + ,4958.5 + ,4756.4 + ,4763.3 + ,4951.2 + ,4692.8 + ,5301.2 + ,4929.7 + ,5223.3 + ,5708.3 + ,4018) > par3 = '0.005' > par2 = '0.99' > par1 = '0.01' > ylab = 'value' > xlab = 'quantile' > main = 'Harrell-Davis Quantiles' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa, (2007), Harrell-Davis Quantile Estimator (v1.0.11) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_harrell_davies.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: #Hmisc library > #v 1.0.2, 1 sept. 2006: fixed buffer overflow in R interpreter (thanks to John J. Ely, Ph.D.) > par1 <- as(par1,'numeric') > par2 <- as(par2,'numeric') > par3 <- as(par3,'numeric') > library(Hmisc) Attaching package: 'Hmisc' The following object(s) 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/www/html/rcomp/tmp/11ivp1228396157.ps",horizontal=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/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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] 197 > 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/www/html/rcomp/tmp/243qk1228396157.tab") > > system("convert tmp/11ivp1228396157.ps tmp/11ivp1228396157.png") > > > proc.time() user system elapsed 1.618 0.211 1.789