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
PCA Rotation confusionHello, I'm rather new to PCA, and I'm struggling to interpret and move forward with my output. The …
Panel unit root test for dummy variables and use of log on Index variableHello Altruists, My panel data consists of n=30 and t=27 where I am using two dummy variables. In m…
logistic regressions - interpreting odds ratios and marginsDear Statalist I have run a simple logistic regression using a child labour survey in an East Afric…
rngstate not foundHi all, I am trying to figure out the best way to set a seed and have reproducible results. Now, I …
IVLASSO Weak identification F statsHello, I am using high-dimensional ML techniques to find optimal instruments. After using IVLASSO c…
Subscribe to:
Post Comments (Atom)
0 Response to Loop
Post a Comment