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.00415461463151299 + ,0.0598479208281161 + ,0.231837182072185 + ,-0.0643759675950533 + ,0.285725134884296 + ,0.30925843784523 + ,0.283738708939707 + ,0.0773057439023999 + ,-0.180526820136143 + ,-0.119596350066064 + ,0.0684383972699569 + ,-0.0412412472142293 + ,0.0490317177843978 + ,0.0361680669273923 + ,-0.0817092238144313 + ,0.188891087449907 + ,0.075412352630827 + ,0.118588573621350 + ,0.225627503517667 + ,-0.223282499920157 + ,-0.000638805401697781 + ,-0.364778494941755 + ,0.112291966503304 + ,-0.0417185806221226 + ,-0.116792691367414 + ,-0.0847583421796806 + ,-0.0424221283981986 + ,0.0444538759404461 + ,0.153976898478930 + ,0.0961531602834788 + ,0.365986514707546 + ,-0.287627889939851 + ,-0.107580928720535 + ,0.119727126366258 + ,-0.167918147401660 + ,-0.261277395256366 + ,0.331081520428657 + ,-0.0861541673893157 + ,0.0274790315485176 + ,0.0447423799247966 + ,-0.00181605757560772 + ,0.101095957692457 + ,-0.173524417814782 + ,0.0676117730912544 + ,0.691777271542287 + ,0.0512254855826213 + ,-0.0359068153412068 + ,0.0433931175946564 + ,-0.0289576317383038 + ,0.117244256498483 + ,0.0606352544042368 + ,0.317974535214823 + ,-0.103088910150431 + ,0.160817073167572 + ,0.181144370235367 + ,-0.0282901507833467 + ,0.112867820789995 + ,-0.257615828226542 + ,0.0889842053344156 + ,-0.0472639751089367) > 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/16lbw1259863246.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/28iib1259863246.tab") > system("convert tmp/16lbw1259863246.ps tmp/16lbw1259863246.png") > > > proc.time() user system elapsed 1.119 0.217 3.630