bashtage / linearmodels

Additional linear models including instrumental variable and panel data models that are missing from statsmodels.

Home Page:https://bashtage.github.io/linearmodels/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Estimated Effects in random effect

KseniaNedorezova opened this issue · comments

Sorry, I think it is blank.

Hi @KseniaNedorezova Is there an issue to ask about? Could you post some code demonstrating the issue?

Hello everyone! I work with panel data
All estimated effects are equal 0.
Why estimated effects in random effect model equal 0? P-value of the model 0,0017.

Can you please post some demo code that reproduces the problem.

import pandas as pd
from linearmodels import PanelOLS, RandomEffects

data = pd.read_excel(r"...", sheet_name = "....").reset_index(drop = True)
data = data.set_index(['Name', 'Year'])
mod_re_prod = RandomEffects(data['Percent'], data[['value_1', "value_2"]]).fit()
mod_EF_re_prod = mod_re_prod.estimated_effects
print(mod_EF_re_prod )

Any chance you could use one of the demo datasets included with linearmodels to reproduce? That way I can run without needing any data, which might not be available to share.

Can you post some runnable code so I can see if I can help you? This doesn't usually happen and so seems to be specific to your setup.