R/effective.sample.size.R

Defines functions effective.sample.size

# effective sample size for case-control data
# harmonic mean of (n0, n1)
effective.sample.size <- function(n0, n1){
  
  2/(1/n0 + 1/n1)
  
}

Try the gim package in your browser

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

gim documentation built on July 1, 2020, 6:29 p.m.