Hi everyone. I have a problem. There are two dummy. The first one is e6_m_c1 and it's equal to 1 if firms have financial constraints and zero otherwise. The second one is e6_m_c7 and it's equal to 1 if firms don't have factors preventing growth and zero otherwise. So, I have to replace missing values of e6_m_c1 with the values of e6_m_c7. The command that I use is: replace e6_m_c1=0 if e6_m_c7==1 & missing (e6_m_c1), but there aren't changes in observations. How can I resolve?
Related Posts with Problem with replace in a dummy
HelpDear Statalists, I am doing a model with fixed-effects and need some help. Would maybe any of you b…
Running xtreg for a data subset (subset defined by a floating variable)Hi, I have panel data for 850 companies for years 2001-2019. I have created a floating variable to …
Creating a dummmy variableI have panel data for 850 companies between 2001 and 2019. In case a company had revenue < USD 10…
Testing for serial correlation.Hey guys! I am running a fixed effects regression and wanted to test for serial correlation. I used …
Panel Data - Basic linear regression using large accounting datasetHi all, I am a beginner to Stata and from watching videos can get a grasp of basic OLS, probit mode…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with replace in a dummy
Post a Comment