R/pp.f.R

"pp.f" <-
function(f, x) {
   if(f > 1 | f < 0) {
       warning("Error with probability argument not in [0,1]");
       return(NA);
   }
   r <- rank(x, ties.method="first");
   return(qbeta(f,r,length(r)+1-r));
}

"pp.median" <-
function(x) {
   return(pp.f(0.5,x));
}

Try the lmomco package in your browser

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

lmomco documentation built on Aug. 30, 2023, 5:10 p.m.