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.00329595419221907 + ,-0.134361931788833 + ,0.144926886399372 + ,0.0553873447888675 + ,-0.0266898107850539 + ,-0.217546395729404 + ,-0.137109160197476 + ,0.274144331658432 + ,-0.217183667796287 + ,-0.0822537194912396 + ,-0.048138895663063 + ,0.0674428508541689 + ,-0.00135671625583204 + ,0.0456658478737366 + ,-0.178697594837662 + ,-0.0763244256654423 + ,-0.076727349564969 + ,0.176442073973510 + ,0.0451301821395226 + ,-0.0703368317597445 + ,0.214077663726516 + ,0.148764746171388 + ,-0.110832836298782 + ,-0.00861288212233489 + ,0.122549597588482 + ,0.158186700923519 + ,0.00267306214163923 + ,-0.0299034250468220 + ,0.0103569083152644 + ,0.0386151650305852 + ,-0.096730120265162 + ,-0.0255535298588305 + ,0.0457076788654534 + ,-0.0312238640864103 + ,0.0385998594402198 + ,0.108661774751241 + ,-0.0466614216150859 + ,-0.0931881832416275 + ,0.172254180642488 + ,0.0433906078812827 + ,0.0958578415347138 + ,-0.111821509608529 + ,-0.20916245967089 + ,0.0204230669355445 + ,0.00427891016259069 + ,-0.136662782089477 + ,0.234452705344630 + ,-0.380962083953372 + ,-0.150480847169581 + ,0.284575535664979 + ,0.334594786060292 + ,0.0273496908771899 + ,0.342512792168283 + ,-0.337331527249125 + ,-0.334797254428663 + ,0.108246806534783 + ,-0.399403734877978 + ,-0.489187685986669 + ,-0.0882769337256428 + ,-0.159514263570633 + ,0.00214804489700802 + ,0.0465765132109734 + ,0.0266236662709651 + ,-0.201608744528986 + ,0.181693764871007 + ,-0.0572329001576047 + ,0.232813981579291 + ,-0.305296378293285 + ,0.109436711106370 + ,-0.0616010665716072) > 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/1ad2y1261309942.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/2yjag1261309942.tab") > > try(system("convert tmp/1ad2y1261309942.ps tmp/1ad2y1261309942.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.122 0.204 1.194