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.00203999754590597 + ,0.0773627323677002 + ,0.372421143612371 + ,-0.0515177609621391 + ,0.0700601947162624 + ,0.301495421655644 + ,-0.319972584668071 + ,0.15258758096157 + ,-0.433715525400506 + ,-0.100246566944901 + ,0.0539119560426101 + ,-0.116667666602114 + ,0.488997000484655 + ,0.254118930888024 + ,0.0548722067983710 + ,-0.219322942707060 + ,0.104449119253964 + ,-0.127850089876485 + ,-0.0839471761928557 + ,-0.0993450473606438 + ,-0.225842164119386 + ,0.493641513156144 + ,-0.298349956272019 + ,0.0195113941255897 + ,-0.352204625446148 + ,-0.0302419657056322 + ,-0.295253831104799 + ,0.226459592215499 + ,0.000936261477244581 + ,-0.0999088428894084 + ,-0.0861201368177648 + ,-0.293110770282025 + ,0.0318683917403608 + ,0.31894119737227 + ,0.240162895984549 + ,-0.08385929933355 + ,-0.632853237199351 + ,-0.517347585379127 + ,0.184763640928742 + ,0.0389329382461284 + ,0.301575235188412 + ,-0.266085702084044 + ,-0.137259310825954 + ,-0.0204039432078939 + ,0.0853801819905226 + ,0.142742844848359 + ,-0.0116601154169168 + ,-0.106387281921214 + ,0.0273908927894755 + ,-0.0453171588623951 + ,-0.110053859256513 + ,0.284488702289744 + ,0.0913036946183505 + ,-0.307783994394605 + ,0.691511591663423 + ,-0.359236090142899 + ,-0.142725672722528 + ,-0.103691766923668 + ,0.341858160490579 + ,0.311245970716462 + ,0.0540524848923138 + ,0.0127249788232297 + ,0.331069362862632 + ,0.332648344155167 + ,-0.0225649983912859 + ,-0.195038947843270 + ,0.0362293675965455 + ,-0.069577313376148 + ,0.0152645436358407 + ,-0.379910921061455 + ,0.00361685743192846 + ,-0.275104817399173 + ,0.49964695975772 + ,0.264270166212225 + ,-0.170722383164307 + ,0.151028479374174 + ,-0.0737213888984699 + ,-0.526313539335325 + ,-0.0155016986455107 + ,0.195663681164338 + ,0.208692332930012 + ,-0.331812263134072 + ,0.117571728891483 + ,-0.323891314199251 + ,0.222383835749592 + ,-0.377045988842714 + ,-0.0125123644301898 + ,0.0510845082333554 + ,-0.266691530900874 + ,0.00599049984082347 + ,0.375432153681187 + ,0.923618175643263 + ,0.284125715016621 + ,0.115899858105988 + ,0.137438667905655 + ,0.353493181097252 + ,-0.172183837906205 + ,0.741607111873156 + ,0.270413731141624 + ,0.00540882423201259 + ,-0.765422875661438 + ,0.304733879354377 + ,-0.176357591670319 + ,-0.60530977936302 + ,-0.0573191354668051 + ,0.0260543642789634 + ,-0.168620620001144 + ,-0.604955099938894) > 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/1991t1260701672.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/2sp1m1260701672.tab") > > try(system("convert tmp/1991t1260701672.ps tmp/1991t1260701672.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.165 0.207 1.286