Logo

statsmodels.genmod.families.family.Binomial.initialize

Binomial.initialize(endog)[source]

Initialize the response variable.

Parameters:

endog : array

Endogenous response variable

Returns:

If `endog` is binary, returns `endog` :

If `endog` is a 2d array, then the input is assumed to be in the format :

(successes, failures) and :

successes/(success + failures) is returned. And n is set to :

successes + failures. :

Previous topic

statsmodels.genmod.families.family.Binomial.fitted

Next topic

statsmodels.genmod.families.family.Binomial.loglike

This Page