def deriv(self, p):
    "\n        Derivative of the negative binomial transform\n\n        Parameters\n        ----------\n        p : array_like\n            Mean parameters\n\n        Returns\n        -------\n        g'(p) : ndarray\n            The derivative of the negative binomial transform link function\n\n        Notes\n        -----\n        g'(x) = 1/(x+alpha*x^2)\n        "
    return (1 / (p + (self.alpha * (p ** 2))))
Derivative of the negative binomial transform

Parameters
----------
p : array_like
    Mean parameters

Returns
-------
g'(p) : ndarray
    The derivative of the negative binomial transform link function

Notes
-----
g'(x) = 1/(x+alpha*x^2)
def deriv(self, p):
    "\n        Derivative of the negative binomial transform\n\n        Parameters\n        ----------\n        p : array_like\n            Mean parameters\n\n        Returns\n        -------\n        g'(p) : ndarray\n            The derivative of the negative binomial transform link function\n\n        Notes\n        -----\n        g'(x) = 1/(x+alpha*x^2)\n        "
    return (1 / (p + (self.alpha * (p ** 2))))