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

NaN results for covariance #39

Open
AlexandreSollaci opened this issue Dec 7, 2022 · 0 comments
Open

NaN results for covariance #39

AlexandreSollaci opened this issue Dec 7, 2022 · 0 comments

Comments

@AlexandreSollaci
Copy link

Hello,

I am finding a NaN result for the covariance between firm and person effect (likely due to the plug-in variance being = 0; see below). I'm not really sure what might be happening, as the program does run as expected with the test data, while the actual data has shown no problems in other programs (e.g., lfe in R, or reghdfe in Stata). Any guesses on what might be going wrong?

Plug-in Variance Components:
Plug-in Variance of firm Effects: 0.0
Plug-in Variance of person Effects: 0.0027085154074460043
Plug-in Covariance of person-firm Effects: 0.0
Correlation of person-firm Effects: NaN
Fraction of Variance explained by person-firm Effects: 0.0

Bias-Corrected Variance Components:
Bias-Corrected Variance of firm Effects: 0.0
Bias-Corrected Variance of person Effects: 0.001744772197125726
Bias-Corrected Covariance of person-firm Effects: 0.0
Bias-Corrected Correlation of person-firm Effects: NaN
Bias-Corrected Fraction of Variance explained by person-firm Effects: 0.12032312957523913

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

1 participant