How to get coefficients from relay logic MLE?

I have statsmodels.discrete.discrete_model.BinaryResultsWrapper, which was the result of work statsmodels.api.Logit(...).fit(). I can call a method .summary()that prints a result table with coefficients embedded in the text, but I really need to save these coefficients into a variable for later use. How can i do this? The documentation is not entirely clear how to do this very basic operation (perhaps the most basic thing that someone would like to do with results other than printing)

When I try the specialvalues ​​() method, which looked like it was returning coefficients, I just get the error:

'Series' object cannot be called

+4
source share
1 answer

Since the documentation is poor, I found a solution through random experiments.

The correct syntax is:

Logit(...).fit().params.values
+2
source

Source: https://habr.com/ru/post/1584660/


All Articles