Please advise how I can create a loop for the following 3 similar syntax
gen ethos_1rough90=0
replace ethos_1rough90=1 if ethos_1rough==1 & episode90==1
gen ethos_2emerg90=0
replace ethos_2emerg90=1 if ethos_2emerg==1 & episode90==1
gen ethos_3temp90=0
replace ethos_3temp90=1 if ethos_3temp==1 & episode90==1
Related Posts with Loop
R-square ChallengesI am currently studying the impact of BRI on economic growth of countries using Difference In Differ…
Create a table from value labelsHi, i am trying to save the value labels of a variable to write them into a file together with thei…
Bootstrapping with lots of dummies! Help!Reviewer asked me to bootstrap standard errors, but I have 116 firm dummies plus 15 time dummies in …
Number of unique firms/ industriesHi I have a panel data. Gvkey is an identifier for firms and Fyear is an identifier for year. Sic is…
Help with asdoc - regression tablesDisclaimer: asdoc is a user written command by Dr. Ataullah Shah I am regressing with a categorical…
Subscribe to:
Post Comments (Atom)
0 Response to Loop
Post a Comment