MCPcopy Index your code
hub / github.com/statsmodels/statsmodels / MyProbit

Class MyProbit

examples/python/generic_mle.py:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49class MyProbit(GenericLikelihoodModel):
50
51 def loglike(self, params):
52 exog = self.exog
53 endog = self.endog
54 q = 2 * endog - 1
55 return stats.norm.logcdf(q * np.dot(exog, params)).sum()
56
57
58# Estimate the model and print a summary:

Callers 1

generic_mle.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…