R/testfunc.wilcox.R

Defines functions `testfunc.wilcox`

`testfunc.wilcox` <-
function(ZM,n1,n0,RM){
    a<-n0- length(ZM[ZM==0])
    b<-n1-length(ZM[ZM==1])
    r0<- (a+b)-(a+b-1)/2
    RM<-RM+a+b
    out <- sum(RM[ZM==0])+a*r0 
    return(out) 
}

Try the choplump package in your browser

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

choplump documentation built on May 9, 2022, 5:08 p.m.