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
}
 

Try the MESS package in your browser

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

MESS documentation built on Aug. 21, 2023, 1:05 a.m.