FixedEffectModel icon indicating copy to clipboard operation
FixedEffectModel copied to clipboard

'result.summary()' does not work

Open Simonlisw opened this issue 3 years ago • 2 comments

I have made some exercises of the examples, but I found that the code 'result.summary()' in each example gives some warnings. Please help me. thx

Simonlisw avatar Oct 28 '22 13:10 Simonlisw

Ok guys the problem is very simple. Go to OLSFixed.py at "...\site-packages\fixedeffect\utils\OLSFixed.py" directory. In my case, using python 3.10, is: "C:\Users\Iohan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\fixedeffect\utils\OLSFixed.py"

Once there, you go to line 212 where there is "params_data = ...." and replace by " params_data = lzip([params[i] for i in exog_len], [std_err[i] for i in exog_len], [tstat[i] for i in exog_len], [prob_stat[i]], [conf_int[0][i]], [conf_int[1][i]]) "

It will work out

LacanJr avatar Jul 25 '23 06:07 LacanJr

I tried this, and the output table only shows the constant, and omits the exogenous variable

tankahoy avatar Nov 06 '23 12:11 tankahoy