Loop doesn't work with $ which is a recall from global?? Thank you.
foreach i of num 1/17 {
global Pi2016_`i'=$Ng`i'/$NgT
}
Related Posts with In the loop
Generalized propensity score matching for multilevel treatmentHi, I am a first-time user of the generalized propensity score. I have 3 treatment levels that are …
Generate two new variables in Stata representing the change in net-pay and the change in well-being between june and octoberHi, I'm new to Stata how can I show the above statement in Stata? I would really appreciate any advi…
Create variable using expansion factorDear all, I would like to ask you a question. In a database I have identified a group of people, who…
error: depvar may not be a factor variableHey everybody, I want to run a regression with binary variables but I am getting this error: depvar…
Converting Date-Month-Year (string) to yearDear Stata Members I have an issue which I know is the most answered questions in this form, I tried…
Subscribe to:
Post Comments (Atom)
0 Response to In the loop
Post a Comment