code: def loglike(self, params):
      exog = self.exog
      endog = self.endog
      q = 2 * endog - 1
      return stats.norm.logcdf(q * np.dot(exog, params)).sum()
  
file_path: statsmodels/examples/python/generic_mle.py
imports: import numpy
  from scipy import stats
  import statsmodels.api
  from statsmodels.base.model import GenericLikelihoodModel
  import numpy
  from scipy.stats import nbinom
  from statsmodels.base.model import GenericLikelihoodModel
  import statsmodels.api
label_desc: Use image node_id 1 for calling the MyProbit obj's underlying member method code with example usage: obj.loglike(params) and returns: stats