def proportion_effectsize(prop1, prop2, method='normal'):
 if (method != 'normal'):
  raise ValueError('only "normal" is implemented')
 es = (2 * (np.arcsin(np.sqrt(prop1)) - np.arcsin(np.sqrt(prop2))))
 return es

def proportion_effectsize ( prop1 , prop2 , method = 'normal' ) : if ( method != 'normal' ) : raise ValueError ( 'only "normal" is implemented' ) es = ( 2 * ( np . arcsin ( np . sqrt ( prop1 ) ) - np . arcsin ( np . sqrt ( prop2 ) ) ) ) return es
effect size for a test comparing two proportions for use in power function parameters prop1 .