code: def probitloglike(params, endog, exog):
      """
      Log likelihood for the probit
      """
      q = 2 * endog - 1
      X = exog
      return np.add.reduce(stats.norm.logcdf(q * np.dot(X, params)))
  
file_path: statsmodels/statsmodels/examples/ex_generic_mle.py
imports: from functools import partial
  import numpy
  from scipy import stats
  import statsmodels.api
  from statsmodels.base.model import GenericLikelihoodModel
  from statsmodels.tools.numdiff import approx_fprime, approx_hess
label_desc: Use image node_id 1 for calling a global function with example usage: probitloglike(params, endog, exog) and returns: np