GLM function not returning weights
Author: pinxterenmCreated Feb 23, 2018Updated Sep 28, 2026
Labelstype-possible-bug
I have run into a problem using the GLM function with Binomial family. I used the code below to create an instance of the glm:
logit_instance = sm.GLM(default_array, predictors_matrix, family=sm.families.Binomial()) result = logit_instance.fit()
From this result I would like to get the weights of the final iteration. According to documentation, this should be accessible using result.weights, but this does not work. Also the dir(results) does not show 'weights' or anything similar as an attribute of result.
Is there some way to resolve this issue?
Source: statsmodels/statsmodels