The Ecdf function in the Hmisc package already has a weights argument. -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University