Taken from https://www.nature.com/articles/nprot.2014.071

effective_n(ncase, ncontrol)

Arguments

ncase

Vector of number of cases

ncontrol

Vector of number of controls

Value

Vector of effective sample size