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

Class vf

examples/python/quasibinomial.py:78–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77
78class vf(sm.families.varfuncs.VarianceFunction):
79 def __call__(self, mu):
80 return mu**2 * (1 - mu)**2
81
82 def deriv(self, mu):
83 return 2 * mu - 6 * mu**2 + 4 * mu**3
84
85
86# Fit the quasi-binomial regression with the alternative variance

Callers 1

quasibinomial.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected