FixedEffectModel icon indicating copy to clipboard operation
FixedEffectModel copied to clipboard

Fixed Effect Regression does not work

Open Muhammad-Kaleem-Ullah opened this issue 2 years ago • 3 comments

Here, I'm doing everything fine that seems to me, but unfortunately, the package does not work as it should. I'm using the right parameters, Please have a look at the code and the error message in the attached image. error_new

Thanks & regards Kaleem

Muhammad-Kaleem-Ullah avatar Mar 13 '23 13:03 Muhammad-Kaleem-Ullah

Same issue, I think maybe nobody will maintain and update it? All issue it the same problem

PeikaiLi avatar Mar 20 '23 06:03 PeikaiLi

It works on my windows computer now.

PeikaiLi avatar May 14 '23 14:05 PeikaiLi

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