python - How to get the coefficients from an MLE logit regression? -


i have statsmodels.discrete.discrete_model.binaryresultswrapper output of running statsmodels.api.logit(...).fit(). can call .summary() method prints table of results coefficients embedded in text, need store coefficients variable later use. how can this? documentation not clear on how basic operation (probably basic thing want results, besides print them)

when try fittedvalues() method, looked return coefficients, error:

'series' object not callable

since documentation poor, found solution through random experimentation.

the correct syntax is:

logit(...).fit().params.values 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -