class_docstr: Results class for OneWayMixed models
  
      
class_docstr_tok: ["Results","class","for","OneWayMixed","models"]
code: def mean_random(self, idx="lastexog"):
      if idx == "lastexog":
          meanr = self.params[-self.model.k_exog_re :]
      elif isinstance(idx, list):
          if not len(idx) == self.model.k_exog_re:
              raise ValueError("length of idx different from k_exog_re")
          else:
              meanr = self.params[idx]
      else:
          meanr = np.zeros(self.model.k_exog_re)
  
      return meanr
  
imports: import numpy
  import numpy.linalg
  from statsmodels.base.model import LikelihoodModelResults
  from statsmodels.tools.decorators import cache_readonly
label_desc: Use image node_id 5 for calling the OneWayMixedResults obj's underlying member method code with example usage: obj.mean_random(idx) and returns: meanr