class_docstr: A two-way contingency table.
  
  Parameters
  ----------
  table : array_like
      A contingency table.
  shift_zeros : bool
      If True and any cell count is zero, add 0.5 to all values
      in the table.
  
  Attributes
  ----------
  table_orig : array_like
      The original table is cached as `table_orig`.
  
  See Also
  --------
  statsmodels.graphics.mosaicplot.mosaic
  scipy.stats.chi2_contingency
  
  Notes
  -----
  The inference procedures used here are all based on a sampling
  model in which the units are independent and identically
  distributed, with each unit being classified with respect to two
  categorical variables.
  
  References
  ----------
  Definitions of residuals:
      https://onlinecourses.science.psu.edu/stat504/node/86
class_docstr_tok: ["A","two-way","contingency","table",".","Parameters","--","--","--","--","--","table",":","array_like","A","contingency","table",".","shift_zeros",":","bool","If","True","and","any","cell","count","is","zero",",","add","0.5","to","all","values","in","the","table",".","Attributes","--","--","--","--","--","table_orig",":","array_like","The","original","table","is","cached","as","`","table_orig","`",".","See","Also","--","--","--","--","statsmodels.graphics.mosaicplot.mosaic","scipy.stats.chi2_contingency","Notes","--","--","-","The","inference","procedures","used","here","are","all","based","on","a","sampling","model","in","which","the","units","are","independent","and","identically","distributed",",","with","each","unit","being","classified","with","respect","to","two","categorical","variables",".","References","--","--","--","--","--","Definitions","of","residuals",":","https",":","\/\/onlinecourses.science.psu.edu\/stat504\/node\/86"]
docstr: Returns local log odds ratios.
  
  The local log odds ratios are the log odds ratios
  calculated for contiguous 2x2 sub-tables.
docstr_tok: ["Returns","local","log","odds","ratios",".","The","local","log","odds","ratios","are","the","log","odds","ratios","calculated","for","contiguous","2x2","sub-tables","."]
code: def local_log_oddsratios(self):
      """
      Returns local log odds ratios.
  
      The local log odds ratios are the log odds ratios
      calculated for contiguous 2x2 sub-tables.
      """
  
      ta = self.table.copy()
      a = ta[0:-1, 0:-1]
      b = ta[0:-1, 1:]
      c = ta[1:, 0:-1]
      d = ta[1:, 1:]
      tab = np.log(a) + np.log(d) - np.log(b) - np.log(c)
      rslt = np.empty(self.table.shape, np.float64)
      rslt *= np.nan
      rslt[0:-1, 0:-1] = tab
  
      if isinstance(self.table_orig, pd.DataFrame):
          rslt = pd.DataFrame(
              rslt,
              index=self.table_orig.index,
              columns=self.table_orig.columns,
          )
  
      return rslt
  
imports: import warnings
  import numpy
  import pandas
  from scipy import stats
  from statsmodels import iolib
  from statsmodels.tools import sm_exceptions
  from statsmodels.tools.decorators import cache_readonly
label_desc: Use image node_id 12 for calling the Table obj's underlying member method code with example usage: obj.local_log_oddsratios() and returns: rslt