R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(-1575.00887827752 + ,-2263.82750005582 + ,7045.75768165492 + ,-2035.83149854133 + ,3886.02985519469 + ,158.539675832947 + ,960.457190377358 + ,-337.841379165606 + ,-7109.61280621946 + ,-7043.92461948593 + ,4685.51755601771 + ,977.408177407792 + ,918.328545859417 + ,589.375354065341 + ,-6891.67878957285 + ,1533.64184150137 + ,2210.55324487903 + ,-9280.29800578057 + ,8034.36112956057 + ,3659.22886246375 + ,7117.41595284467 + ,-2633.18383716224 + ,-4523.01908028135 + ,-10249.2788035485 + ,1517.80356687876 + ,1484.15119995578 + ,-1214.46781890457 + ,2169.24845396691 + ,-2253.92155265332 + ,-2631.74888936717 + ,-3849.26121145593 + ,821.620255775573 + ,-9408.87260464867 + ,1241.88804485160 + ,1179.93724525252 + ,-1962.37832237001 + ,516.653311386494 + ,-2767.97210236296 + ,5629.81911313198 + ,5803.53000967108 + ,-1873.10106680445 + ,-7023.12305076338 + ,-1722.94778568371 + ,-3011.92640473933 + ,-17439.1442995944 + ,-1770.63103827571 + ,-6148.68941133731 + ,7691.62364275427 + ,-4994.18050152824 + ,-4899.69881288656 + ,5524.45031429093 + ,-6451.65580766626 + ,-9155.30558471285 + ,9268.49118895307 + ,4067.36942971564 + ,-15460.4752115729 + ,9214.1160150789 + ,4009.46524142609 + ,8598.3415209042 + ,1171.18094385286 + ,-1585.96191465526 + ,-2329.27119138406 + ,5674.43930504972 + ,-9680.56803374957 + ,13269.3191881056 + ,-4706.51689196404 + ,-3552.85443447458 + ,-3123.75770966460 + ,2912.26032459412 + ,12338.9131048695 + ,10340.0965258702 + ,6543.69991954822 + ,7116.01012281237) > 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: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as(par1,'numeric') > par2 <- as(par2,'numeric') > par3 <- as(par3,'numeric') > library(Hmisc) Loading required package: survival Loading required package: splines Attaching package: 'Hmisc' The following object(s) are masked from package:survival : untangle.specials 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/143h51259947455.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/2o7921259947455.tab") > > system("convert tmp/143h51259947455.ps tmp/143h51259947455.png") > > > proc.time() user system elapsed 1.098 0.261 1.235