R/methodRuleIC1.R

Defines functions `methodRuleIC1`

`methodRuleIC1` <-
function(x,group,exact, Nbound=c(20)){
    n<-length(x)

    if (is.null(exact)){
        if (n<=Nbound) method<-"exact.network"
        else method<-"pclt"
    } else { 
        if (exact==FALSE){ method<-"pclt"
        } else if (n<=Nbound){  method<-"exact.network"
        } else { method<-"exact.mc" }
    }

    if (length(unique(group))!=2 && method=="exact.network") method<-"exact.mc"
 
    return(method)
}

Try the interval package in your browser

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

interval documentation built on Aug. 25, 2023, 1:08 a.m.