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(0.000746099568952258 + ,0.0292111461738571 + ,-0.00280267596084322 + ,-0.00184368563002967 + ,0.0107457257770334 + ,-0.0175566443253344 + ,0.0131165820445929 + ,-0.0324353168918367 + ,0.0224382020922924 + ,-0.0196217959970839 + ,0.00495492412026389 + ,0.00168574453846993 + ,-0.00506586405101019 + ,-0.0116484658020629 + ,-0.00266112877646428 + ,0.0179412217929573 + ,-0.0168120805195169 + ,-0.0147697069296257 + ,0.035665172596409 + ,0.00293868331101443 + ,-0.0145835439671676 + ,0.0184871974956284 + ,-0.00672423964360273 + ,-0.00834464807562108 + ,0.0169769773776811 + ,0.0141585136611232 + ,0.00520840412118636 + ,-0.0225065086691335 + ,0.0221256937859677 + ,0.008638135296458 + ,0.0259853418092942 + ,-0.014962664383958 + ,0.0336773377780083 + ,-0.00849413990510539 + ,-0.0229882773676451 + ,0.0569000711376357 + ,0.025309869239244 + ,-0.029512999542613 + ,-0.00750220761300227 + ,0.00584857420117411 + ,0.061296189365771 + ,-0.0463306298649301 + ,0.0380278085379684 + ,-0.00825029078426785 + ,0.0306190401585776 + ,-0.04367173164859 + ,-0.0556117529677963 + ,-0.0645860417354424 + ,-0.111874591444632 + ,0.0165546744538422 + ,0.0221480269493989 + ,-0.0314854358112557 + ,0.000731004014562505 + ,0.038079969509555 + ,0.0370058066179545 + ,0.0559163673005735 + ,0.00562659064346704 + ,0.0194175429404750 + ,-0.00318505854805297) > 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/1yf6x1259937265.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/28m561259937265.tab") > > system("convert tmp/1yf6x1259937265.ps tmp/1yf6x1259937265.png") > > > proc.time() user system elapsed 1.106 0.211 1.177