Re: [R] Computing a CDF or many quantiles

2003-09-10 Thread Kevin S. Van Horn
Your method looks like a naive reimplementation of integration, and won't work so well for distributions that have the great majority of the probability mass concentrated in a small fraction of the sample space. I was hoping for something that would retain the adaptability of integrate().

Re: [R] Computing a CDF or many quantiles

2003-09-10 Thread Jerome Asselin
On September 10, 2003 04:03 pm, Kevin S. Van Horn wrote: Your method looks like a naive reimplementation of integration, and won't work so well for distributions that have the great majority of the probability mass concentrated in a small fraction of the sample space. I was hoping for

Re: [R] Computing a CDF or many quantiles

2003-09-10 Thread Jerome Asselin
Also look at ecdf() from package stepfun. HTH, Jerome Asselin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Computing a CDF or many quantiles

2003-09-09 Thread Kevin S. Van Horn
Given f, a pdf over a finite interval, is there any existing R function that can efficiently tabulate the cumulative distribution function for f, or produce all N+1 quantiles of the form i/N? Efficiently here means better than doing repeated integrations for each point.