Skip to content
Prev 315821 / 398503 Next

Approximating discrete distribution by continuous distribution

On 22/01/2013 11:49, Michael Haenlein wrote:
This is not really an R question, but a statistics one.  It is almost 
guesswork: if for example these were drivers in the UK, the answer is 0. 
  So you need to supply some information about the shape of the 
distribution of <18 year olds.

You have estimates of the cumulative distribution function at c(0, 18, 
35, 65, Inf) (or some better upper limit).  You want to interpolate it. 
  You could use linear interpolation (approx[fun]) or a monotone spline 
interpolation (spline[fun]) or any other interpolation method which 
meets your needs.  But whatever you use, you will supplying a lot of 
information not actually in your data.