Binomial.initialize()

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. :

doc_statsmodels
2017-01-18 16:07:29
Comments
Leave a Comment

Please login to continue.