R/hudr.R

Defines functions hudr

Documented in hudr

hudr <-
function(x)
   {
    n<-length(x)
    a <- median(x)
    y <- rep(0, n)
    for (i in 1: n)
    {
       if( x[i] <= (a))
       {
        y[i] <-1
        }
        else
        y[i] <- a/x[i]
    }
  return(y)
 }

Try the RKUM package in your browser

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

RKUM documentation built on June 22, 2022, 9:06 a.m.