Hi Statalist,
I have the panel data (state-year) and run a correlations analysis between my y and x (pwcorr y x), which shows that they are negatively correlated (significant at 1% level). However, when I run the univariate fixed effect regression (xtreg y x or xtreg y x, fe), the coefficient is significantly positive. I find it confusing because I expect them to have at least the same direction.
Besides, I get the significantly negative coefficient when I run the pooled regression (reg y x, r). Does that mean I should choose the pooled regression instead of the xtreg? Many thanks!
Best regards,
Suyi Liu
Related Posts with Inconsistency between correlation analysis and regression results
Multiple Imputation MIHi all , Background: I have a dataset with 698 participants. I'm interested in doing multivariate …
Rename variablesHello everyone, I would like to know renaming var as ascending order. I'd like to rename var_1, var_…
Dropping a huge chunk of observation after making R read the data created from Stata 17I've been using Stata 17 for my research and after analyzing and cleaning I need to use R for a spec…
Dependent Double-Sorting 25 Portfolios Code: * Example generated by -dataex-. To install: ssc install dataex clear input float s_id str52 …
How to optimize stata code that it can run faster?I have the code below to deal with panel data (there are quite a bit missing variables in my dataset…
Subscribe to:
Post Comments (Atom)
0 Response to Inconsistency between correlation analysis and regression results
Post a Comment