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.0240886087252070 + ,-0.122120241713183 + ,-0.139798510241542 + ,0.317954847176401 + ,-0.0467821844278985 + ,0.181194174647438 + ,-0.0436425997038122 + ,-0.0347346597039032 + ,-0.162983899150763 + ,0.0272606671787285 + ,0.0500457281227344 + ,-0.212917255086521 + ,0.034094719030717 + ,0.117843441674719 + ,0.101853801608441 + ,0.0993368768202152 + ,-0.180963687948229 + ,-0.0844254052202338 + ,-0.00684935020835807 + ,-0.0539730184005447 + ,-0.00143514144913413 + ,0.0461863682226082 + ,-0.0362631658977486 + ,0.126376441857390 + ,0.0140755896507162 + ,0.0494760864501790 + ,0.0361484077081449 + ,-0.0202224486087764 + ,-0.101598745043367 + ,-0.209129822767451 + ,0.0738440938764818 + ,-0.0346300549103362 + ,-0.155288201496210 + ,-0.0393638276210602 + ,-0.0174014515960666 + ,-0.0160461806711786 + ,0.114544434911774 + ,0.0964892803792827 + ,0.286282757903359 + ,-0.151031215347036 + ,-0.186731891279334 + ,0.0388521803025796 + ,-0.115080419727261 + ,-0.226631381719464 + ,0.201658443616068 + ,-0.05863391541506 + ,0.0140306633924940 + ,0.0517545203926153 + ,0.0376483010817856 + ,0.117939624538714 + ,-0.0392154731240636 + ,0.00684650013771865 + ,0.479671946298484 + ,0.0091403208113178 + ,-0.0111482161053811 + ,-0.0316928102962065 + ,-0.00659909638923888 + ,0.0628666882565723 + ,0.0526557731006415) > 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/12okx1259833027.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/29uhg1259833027.tab") > > system("convert tmp/12okx1259833027.ps tmp/12okx1259833027.png") > > > proc.time() user system elapsed 1.097 0.224 3.042