def proportions_chisquare_pairscontrol(count, nobs, value=None, multitest_method='hs', alternative='two-sided'):
 if ((value is not None) or (not (alternative in ['two-sided', '2s']))):
  raise NotImplementedError
 all_pairs = [(0, k) for k in range(1, len(count))]
 pvals = [proportions_chisquare(count[list(pair)], nobs[list(pair)])[1] for pair in all_pairs]
 return AllPairsResults(pvals, all_pairs, multitest_method=multitest_method)

def proportions_chisquare_pairscontrol ( count , nobs , value = None , multitest_method = 'hs' , alternative = 'two-sided' ) : if ( ( value is not None ) or ( not ( alternative in [ 'two-sided' , '2s' ] ) ) ) : raise NotImplementedError all_pairs = [ ( 0 , k ) for k in range ( 1 , len ( count ) ) ] pvals = [ proportions_chisquare ( count [ list ( pair ) ] , nobs [ list ( pair ) ] ) [ 1 ] for pair in all_pairs ] return AllPairsResults ( pvals , all_pairs , multitest_method = multitest_method )
chisquare test of proportions for pairs of k samples compared to control performs a chisquare test for proportions for pairwise comparisons with a control .