[R] Adding mean and SEM in Hmisc ecdf
Frank E Harrell Jr
f.harrell at vanderbilt.edu
Tue Nov 16 14:11:25 CET 2004
Jean-Louis Abitbol wrote:
> Dear R Gurus,
> Sorry if this has been asked before but I did not find it in the
> I would like to add a horizontal display of mean and SEM on Hmisc ecdf
> plots done by group (ie variate~treatment).
> Has anyone written some code to do that ?
> Thanks and kind regards,
It is customary to show quantiles on ecdfs, and the functions make that
easy. You can add other points or reference lines to an existing plot
easily if using the non-lattice ecdf. To do it with the lattice version
ecdf.formula you will have to change its default panel function.
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help