R/deffK.R

Defines functions deffK

Documented in deffK

deffK <- function(w){
    if (any(w <= 0))
        warning("Some weights are less than or equal to 0.\n")
    n <- length(w)
    1 + sum((w - mean(w))^2)/n/mean(w)^2
}

Try the PracTools package in your browser

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

PracTools documentation built on Nov. 9, 2023, 9:06 a.m.