R version 2.8.1 (2008-12-22) Copyright (C) 2008 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 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,196 + ,229 + ,249 + ,258 + ,265 + ,268 + ,278 + ,279 + ,280 + ,286 + ,291 + ,296 + ,296 + ,296 + ,298 + ,300 + ,303 + ,306 + ,307 + ,308 + ,311 + ,316 + ,317 + ,318 + ,319 + ,322 + ,322 + ,324 + ,325 + ,325 + ,326 + ,327 + ,328 + ,329 + ,331 + ,332 + ,333 + ,335 + ,336 + ,337 + ,337 + ,339 + ,339 + ,340 + ,341 + ,341 + ,341 + ,342 + ,343 + ,344 + ,344 + ,345 + ,346 + ,346 + ,348 + ,350 + ,351 + ,353 + ,354 + ,355 + ,355 + ,355 + ,356 + ,356 + ,356 + ,356 + ,356 + ,358 + ,358 + ,358 + ,358 + ,358 + ,359 + ,359 + ,360 + ,360 + ,361 + ,361 + ,361 + ,362 + ,362 + ,362 + ,365 + ,365 + ,366 + ,367 + ,369 + ,369 + ,371 + ,371 + ,372 + ,372 + ,373 + ,374 + ,375 + ,375 + ,376 + ,376 + ,377 + ,377 + ,377 + ,379 + ,379 + ,379 + ,379 + ,383 + ,384 + ,387 + ,387 + ,387 + ,389 + ,389 + ,389 + ,390 + ,392 + ,392 + ,394 + ,394 + ,396 + ,397 + ,398 + ,400 + ,400 + ,401 + ,401 + ,402 + ,403 + ,403 + ,404 + ,404 + ,406 + ,407 + ,408 + ,408 + ,410 + ,410 + ,411 + ,411 + ,414 + ,416 + ,416 + ,418 + ,418 + ,419 + ,419 + ,419 + ,421 + ,421 + ,422 + ,422 + ,425 + ,427 + ,429 + ,429 + ,429 + ,429 + ,430 + ,430 + ,432 + ,432 + ,433 + ,434 + ,434 + ,434 + ,435 + ,435 + ,435 + ,436 + ,436 + ,436 + ,436 + ,436 + ,437 + ,439 + ,439 + ,440 + ,440 + ,440 + ,442 + ,442 + ,443 + ,444 + ,446 + ,446 + ,446 + ,447 + ,448 + ,450 + ,451 + ,451 + ,452 + ,454 + ,455 + ,456 + ,457 + ,458 + ,459 + ,459 + ,466 + ,468 + ,468 + ,468 + ,469 + ,470 + ,470 + ,470 + ,471 + ,471 + ,472 + ,472 + ,472 + ,472 + ,474 + ,475 + ,475 + ,479 + ,481 + ,483 + ,484 + ,485 + ,488 + ,488 + ,488 + ,489 + ,490 + ,492 + ,494 + ,494 + ,499 + ,502 + ,503 + ,507 + ,514 + ,517 + ,523 + ,523 + ,525 + ,526 + ,529 + ,530 + ,531 + ,534 + ,549 + ,572 + ,588 + ,589 + ,594 + ,628 + ,694 + ,698) > par3 = '0.1' > par2 = '0.9' > par1 = '0.1' > ylab = 'Aantal kinderen' > 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) Attaching package: 'Hmisc' 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/1er8i1237758128.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] 9 > 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/2qnhl1237758128.tab") > > system("convert tmp/1er8i1237758128.ps tmp/1er8i1237758128.png") > > > proc.time() user system elapsed 0.578 0.181 0.682