class_docstr: A class for holding the results of a mediation analysis.
  
  The following terms are used in the summary output:
  
  ACME : average causal mediated effect
  ADE : average direct effect
docstr: Provide a summary of a mediation analysis.
docstr_tok: ["Provide","a","summary","of","a","mediation","analysis","."]
code: def summary(self, alpha=0.05):
      """
      Provide a summary of a mediation analysis.
      """
  
      columns = [
          "Estimate",
          "Lower CI bound",
          "Upper CI bound",
          "P-value",
      ]
      index = [
          "ACME (control)",
          "ACME (treated)",
          "ADE (control)",
          "ADE (treated)",
          "Total effect",
          "Prop. mediated (control)",
          "Prop. mediated (treated)",
          "ACME (average)",
          "ADE (average)",
          "Prop. mediated (average)",
      ]
      smry = pd.DataFrame(columns=columns, index=index)
  
      for i, vec in enumerate(
          [
              self.ACME_ctrl,
              self.ACME_tx,
              self.ADE_ctrl,
              self.ADE_tx,
              self.total_effect,
              self.prop_med_ctrl,
              self.prop_med_tx,
              self.ACME_avg,
              self.ADE_avg,
              self.prop_med_avg,
          ]
      ):
          if (
              (vec is self.prop_med_ctrl)
              or (vec is self.prop_med_tx)
              or (vec is self.prop_med_avg)
          ):
              smry.iloc[i, 0] = np.median(vec)
          else:
              smry.iloc[i, 0] = vec.mean()
          smry.iloc[i, 1] = np.percentile(vec, 100 * alpha / 2)
          smry.iloc[i, 2] = np.percentile(vec, 100 * (1 - alpha / 2))
          smry.iloc[i, 3] = _pvalue(vec)
  
      smry = smry.apply(pd.to_numeric, errors="coerce")
  
      return smry
  
file_path: statsmodels/statsmodels/stats/mediation.py
imports: import numpy
  import pandas
  from statsmodels.graphics.utils import maybe_name_or_idx
label_desc: Use image node_id 2 for calling the MediationResults obj's underlying member method code with example usage: obj.summary(alpha) and returns: smry