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 Feb. 20, 2025, 6:05 a.m.