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
Post a Comment