class_docstr: Results class for OrderedModel
  
  This class inherits from GenericLikelihoodModelResults and not all
  inherited methods might be appropriate in this case.
docstr: prediction table
  
  returns pandas DataFrame
code: def pred_table(self):
      """prediction table
  
      returns pandas DataFrame
  
      """
      # todo: add category labels
      categories = np.arange(self.model.k_levels)
      observed = pd.Categorical(
          self.model.endog, categories=categories, ordered=True
      )
      predicted = pd.Categorical(
          self.predict().argmax(1), categories=categories, ordered=True
      )
      table = pd.crosstab(
          predicted, observed.astype(int), margins=True, dropna=False
      ).T.fillna(0)
      return table
  
imports: import warnings
  from statsmodels.compat.pandas import Appender
  import numpy
  import pandas
  from pandas.api.types import CategoricalDtype
  from scipy import stats
  from statsmodels.base.model import Model, LikelihoodModel, GenericLikelihoodModel, GenericLikelihoodModelResults
  import statsmodels.base.wrapper
  import statsmodels.regression.linear_model
  from statsmodels.tools.decorators import cache_readonly
label_desc: Use image node_id 1 for calling the OrderedResults obj's underlying member method code with example usage: obj.pred_table() and returns: table