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
Nonlinear decomposition with interaction effectHi all, I am studying the effect of child health on educational outcomes. My IV is the likelihood of…
Multiple missing characteristics - Using egen to count number of members in householdI wish to count the number of members in a household for the given survey data. hh_id memgndr_1 m…
Multiple imputation and multi-level data questionHello, I am looking for help with multiple imputation and multi-level data. At level 2 I only have …
Past Stata "platform names" for "package files" (help usersite)In Stata 16, the output of help usersite tells us about the "g" lines in the package file. g sp…
Predict commanddear all, I use stata 13. When I do "predict r, rstudent", "predict c, cooksd", etc, I have the foll…
Subscribe to:
Post Comments (Atom)
0 Response to Inconsistency between correlation analysis and regression results
Post a Comment