FixedEffectModel
FixedEffectModel copied to clipboard
Error prevents code to run properly
The code seems to be broken when transforming estimates to strings for visualization into table. OLSFixed.py line 213:
params_data = lzip(["%#6.5f" % float(params[i]) for i in exog_len],
["%#6.5f" % float(std_err[i]) for i in exog_len],
["%#6.4f" % float(tstat[i]) for i in exog_len],
["%#6.4f" % float(prob_stat[i]) for i in exog_len],
["%#6.4f" % float(conf_int[0][i]) for i in exog_len],
["%#6.4f" % float(conf_int[1][i]) for i in exog_len])
I needed to cast the various parameters to float for the code to work again. I am using Python 3.9.6 on MacOS