Skip to content
Prev 361284 / 398506 Next

Fitting quantile (or cdf?) function to data with specified percentiles

Use approxfun:

myapprox <- approxfun( x=score, y=percentile)
[1] 0.29
[1] 0.29
[1] 0.99
[1] NA

You can change how values outside the max and min limits are handles with furhter arguments to approxfun.

? 
David.