R/hl.loc.R

Defines functions hl.loc

Documented in hl.loc

hl.loc <- function(x, na.action=na.fail)
    {
    if (!is.vector(x)) stop("'x' must be a numeric vector")
    x<-na.action(x)
    if (!is.numeric(x)) stop("'x' must be a numeric vector")
    sums<-pair.sum(as.matrix(x))
    y.all<-c(x,sums/2)
    res <- median(y.all)
    return(res)
    }

Try the ICSNP package in your browser

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

ICSNP documentation built on Sept. 18, 2023, 5:16 p.m.