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.00268774692616338 + ,-0.0291052842393931 + ,0.0827948800045758 + ,-0.108319866495540 + ,0.0357346366801577 + ,0.0536043030308426 + ,-0.067829771561318 + ,0.0227163003807207 + ,0.0632172901571284 + ,-0.0715371566533336 + ,-0.0407460372438493 + ,0.0706600488447342 + ,-0.0333483607218783 + ,0.00458449290061402 + ,0.0275567355902977 + ,-0.0268676867977957 + ,-0.00785877150908832 + ,0.0218961810234681 + ,-0.0156035661154830 + ,0.0343394454331696 + ,-0.0399430115486528 + ,0.0264806739240817 + ,0.181953169474816 + ,-0.105158553346231 + ,-0.0715200629912767 + ,0.152254193949414 + ,-0.0251305648426530 + ,-0.182670206770896 + ,0.138620890970802 + ,0.0374826534768955 + ,0.0370567572580831 + ,-0.0783768549475501 + ,0.147055745813891 + ,-0.146941768911197 + ,0.0674888522974304 + ,-0.071612250210928 + ,-0.081765110458719 + ,0.105961579041428 + ,0.0373406880706253 + ,-0.164754446810461 + ,0.164196468582707 + ,-0.0159226956963288 + ,-0.138028725418936 + ,-0.0297559639767488 + ,-0.0652455531895395 + ,0.155244541745346 + ,-0.178205889593512 + ,0.220894201470656 + ,-0.0545445981113195 + ,0.00372549019826085 + ,-0.140792130853673 + ,0.0816682272180796 + ,0.0164915687656055 + ,0.168018842021606 + ,-0.0291679743570352 + ,-0.166764604736623 + ,-0.446350614803522 + ,-0.303476266798671 + ,-0.0118142384011213 + ,-0.00389645555230178 + ,0.124971505774326 + ,0.379840940931673 + ,0.0487208085440152 + ,0.133481454175012 + ,0.0164355917584489 + ,-0.274509399343018 + ,0.274110480183592 + ,0.108974727964595 + ,-0.026461557373642 + ,-0.0034623376245711) > par3 = '0.005' > par2 = '0.99' > par1 = '0.01' > ylab = 'Rente' > 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/155x51261305561.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/2ngnl1261305561.tab") > > try(system("convert tmp/155x51261305561.ps tmp/155x51261305561.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.116 0.211 2.289