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.0447208800237501,0.0628789570160542,-0.196265683554080,-0.156168002495438,0.164470110053280,-0.0653533615252956,0.0627829130831423,-0.0535847490926473,-0.311709457136278,-0.138251455226786,0.251966886824416,-0.140596573588994,0.00876106609524287,0.0593850547200641,-0.228817679428104,0.0939213677061848,0.120962527532223,0.128494977321424,0.167236762143601,-0.606288685481547,-0.251842142656184,-0.251954149030317,-0.130700053511714,-0.0381982122366429,0.610113339025282,-0.223597766086544,-0.172567983991916,0.195085900109628,0.114403162113202,-0.200428770318022,-0.0418505063987653,0.00344641563838091,0.460899556083119,0.304710803036061,0.089759420231955,-0.188844764167923,0.160414630695268,0.149597979701001,0.163563282502204,0.127263884814720,-0.290696423856117,0.0211128044723951,-0.176510190183034,-0.112803717622444,0.0771853672896475,-0.418723106479802,0.0137663091330624) > par3 = '0.01' > 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) 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/1m7zi1261127044.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] 99 > 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/2gem31261127044.tab") > > try(system("convert tmp/1m7zi1261127044.ps tmp/1m7zi1261127044.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.731 0.204 0.864