R/qval.R

qval <-
function (Q, psi2) 
{
    n <- length(Q)
    q <- rep("NC", n)
    o <- order(abs(psi2))
    q <- rep(1, n)
    q[o[1]] <- Q[1]
    for (i in 2:n) {
        q[o[i]] <- min(Q[i], q[o[i - 1]])
    }
    q
}

Try the acde package in your browser

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

acde documentation built on Nov. 8, 2020, 11:10 p.m.