statsmodels.genmod.families.varfuncs.VarianceFunction

class statsmodels.genmod.families.varfuncs.VarianceFunction[source]

Relates the variance of a random variable to its mean. Defaults to 1.

Notes

After a variance function is initialized, its call method can be used.

Alias for VarianceFunction: constant = VarianceFunction()

Methods

call

Returns an array of ones that is the same shape as mu

Methods

deriv(mu)

Derivative of the variance function v'(mu)