Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Estimated Effects in random effect #553

Open
KseniaNedorezova opened this issue Sep 21, 2023 · 7 comments
Open

Estimated Effects in random effect #553

KseniaNedorezova opened this issue Sep 21, 2023 · 7 comments

Comments

@KseniaNedorezova
Copy link

No description provided.

@bashtage
Copy link
Owner

Sorry, I think it is blank.

@bashtage
Copy link
Owner

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

@KseniaNedorezova
Copy link
Author

KseniaNedorezova commented Sep 21, 2023

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.

@bashtage
Copy link
Owner

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

@KseniaNedorezova
Copy link
Author

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 )

@bashtage
Copy link
Owner

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.

@bashtage
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants