class_docstr: Results class for pairwise comparisons, based on p-values
  
  Parameters
  ----------
  pvals_raw : array_like, 1-D
      p-values from a pairwise comparison test
  all_pairs : list of tuples
      list of indices, one pair for each comparison
  multitest_method : str
      method that is used by default for p-value correction. This is used
      as default by the methods like if the multiple-testing method is not
      specified as argument.
  levels : {list[str], None}
      optional names of the levels or groups
  n_levels : None or int
      If None, then the number of levels or groups is inferred from the
      other arguments. It can be explicitly specified, if the inferred
      number is incorrect.
  
  Notes
  -----
  This class can also be used for other pairwise comparisons, for example
  comparing several treatments to a control (as in Dunnet's test).
docstr: returns text summarizing the results
  
  uses the default pvalue correction of the instance stored in
  ``self.multitest_method``
docstr_tok: ["returns","text","summarizing","the","results","uses","the","default","pvalue","correction","of","the","instance","stored","in","``","self.multitest_method","``"]
code: def summary(self):
      """returns text summarizing the results
  
      uses the default pvalue correction of the instance stored in
      ``self.multitest_method``
      """
      import statsmodels.stats.multitest as smt
  
      maxlevel = max(len(ss) for ss in self.all_pairs_names)
  
      text = (
          "Corrected p-values using %s p-value correction\n\n"
          % smt.multitest_methods_names[self.multitest_method]
      )
      text += "Pairs" + (" " * (maxlevel - 5 + 1)) + "p-values\n"
      text += "\n".join(
          "{}  {:6.4g}".format(pairs, pv)
          for (pairs, pv) in zip(
              self.all_pairs_names, self.pval_corrected()
          )
      )
      return text
  
file_path: statsmodels/statsmodels/stats/base.py
imports: from statsmodels.compat.python import lzip
  import numpy
  from statsmodels.tools.testing import Holder
label_desc: Use image node_id 5 for calling the AllPairsResults obj's underlying member method code with example usage: obj.summary() and returns: text