R/REFSTD_6_SP.R

REFSTD_6_SP <-
function (refstd, N.refstd, A.Sp2, B.Sp2) 
{
    if (refstd == TRUE) {
        sp = 1
    }
    else {
        sp = rbeta(n = N.refstd, shape1 = A.Sp2, shape2 = B.Sp2)
    }
    results = list(sp)
    names(results) = list("SP")
    return(results)
}

Try the HSROC package in your browser

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

HSROC documentation built on Sept. 19, 2019, 9:05 a.m.