src/ratfor/kuantiles.r

# Wrapper to compute several quantiles of a sample of n observations
# Calls  K.C. Kiwiel's version of Floyd and Rivest's select algorithm
# Caveat Emptor!!  The ks need to  be sorted.
subroutine kuantiles(k,m,n,x)
integer i,j,k(m),m,n
double precision  x(n)

j = 0
do i = 1,m{
	call dsel05(k(i)-j,n-j,x(j+1))
	j = k(i)
	}
return
end

Try the quantreg package in your browser

Any scripts or data that you put into this service are public.

quantreg documentation built on Aug. 19, 2023, 5:09 p.m.