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: p-values corrected for multiple testing problem
  
  This uses the default p-value correction of the instance stored in
  ``self.multitest_method`` if method is None.
docstr_tok: ["p-values","corrected","for","multiple","testing","problem","This","uses","the","default","p-value","correction","of","the","instance","stored","in","``","self.multitest_method","``","if","method","is","None","."]
code: def pval_corrected(self, method=None):
      """p-values corrected for multiple testing problem
  
      This uses the default p-value correction of the instance stored in
      ``self.multitest_method`` if method is None.
  
      """
      import statsmodels.stats.multitest as smt
  
      if method is None:
          method = self.multitest_method
      # TODO: breaks with method=None
      return smt.multipletests(self.pvals_raw, method=method)[1]
  
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 2 for calling the AllPairsResults obj's underlying member method code with example usage: obj.pval_corrected(method) and returns: smt