R/orcor.r

Defines functions orcor

orcor <- function(object, type=c("default", "youden"), lambda=1) {

    type <- match.arg(type)

    rho <- object
    l <- 2*asin(rho)/pi
    
    or <- switch(type,
                 default=((1+rho)/(1-rho))^(1/lambda),
                 youden=((l+1)/(1-l))^2)
    or
}
 
ekstroem/MESS documentation built on July 28, 2023, 4:02 a.m.