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.0162546059377794 + ,-0.0148298338621527 + ,0.0429789143056512 + ,0.0676099254775447 + ,-0.00913062407613658 + ,-0.0273148951016960 + ,0.0154314265058987 + ,-0.0550836452812792 + ,-0.0181857545735439 + ,0.039120282650129 + ,0.045609695591456 + ,-0.0257114925670081 + ,-0.0822248655735198 + ,0.0344670951184958 + ,-0.0649480573005924 + ,0.0547880946588895 + ,-0.0298714644311193 + ,0.114486013193493 + ,0.0950182690016939 + ,0.0128897761246238 + ,0.0217338721591169 + ,-0.0585786658314538 + ,-0.00178464667589517 + ,0.0975509395010088 + ,-0.0113550087842068 + ,-0.0883044373725658 + ,0.0179204878624572 + ,0.066164679052732 + ,-0.0099207405260636 + ,0.103607176083683 + ,0.0369264253242576 + ,0.00965354447922407 + ,0.026902902179049 + ,-0.0250603551600334 + ,0.0246542199720085 + ,0.168876809920545 + ,0.112338488941952 + ,-0.036116193707152 + ,0.0280171003434138 + ,-0.131412282540058 + ,-0.0399410829453708 + ,0.124655566251397 + ,-0.0664914145230275 + ,-0.0280685165725154 + ,-0.0325932501163457 + ,0.0760414611727969 + ,0.0299455213065676 + ,0.0122999790464433 + ,-0.0296840699981808 + ,-0.00479604036760547 + ,0.0196873639947141 + ,0.0273047495098025 + ,0.163972076190680 + ,0.0271393922548936 + ,-0.0986837349351024 + ,0.0367475750419005 + ,0.059550337783431 + ,-0.034635410814478 + ,0.0511197750260465 + ,0.0870247693412692 + ,0.139123550697516 + ,-0.0711869967705733 + ,-0.0539550882823555 + ,-0.120829434834710 + ,-0.00399043356082099 + ,-0.0384057230232389 + ,-0.0498123979425045 + ,-0.0102239321937341 + ,0.0132516871224478 + ,0.0386859479280122 + ,0.0182281387500084 + ,-0.0327287832111250 + ,-0.0857238681324117 + ,-0.0983692652186727 + ,-0.0623788777331983 + ,-0.0589630420706581 + ,-0.084951519189121 + ,0.062846014700024 + ,0.0232288817825146 + ,0.0352284612117494 + ,-0.0732760380316094 + ,0.204214186760906 + ,0.0202510008831150 + ,-0.131477217803103 + ,-0.0460660250497657 + ,0.0514761046443304 + ,-0.0909439057760498 + ,0.0235160893016880 + ,-0.0780858631227644 + ,0.00813869562935705 + ,-0.006437489243248 + ,-0.0388345261403087 + ,0.0477437773767919 + ,-0.0602013822220711 + ,0.0188028818969097 + ,0.0871164100684405) > 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/12bj11259867061.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/2rnwq1259867061.tab") > > system("convert tmp/12bj11259867061.ps tmp/12bj11259867061.png") > > > proc.time() user system elapsed 1.154 0.227 1.242