I built a for loop with locals in it so that I can have parallel loops of a varlist and a numlist. I want to generate a new variable in each loop that equals to the product of the variable from the varlist and the number from the numlist, but I ended up getting a repeating string (see the graph below) I also attached my codes below. How can I get the product I want -- 136*7 instead of seven 136 connected together for example? Thanks!
Array
Array
Related Posts with Parallel loop with numlist and varlist
How to transforming data using loopsI have two or three ideas of using loops to achieve data transformation for data manipulation, but I…
Event study graph using command eventddHi, I am doing a event study in stata using the eventdd command. Is it possible to move the solid v…
BGV (Between Group Variance)Dear Statalist, I would like to measure inequity through BGV (Between Group Variance) for non-order…
Clustered bar graph with multiple categorical variablesHello, I am hoping to create a clustered bar graph to compare satisfaction with information receive…
table and tables builder - mlogitHi y'all. I am running mlogit models using the rrr option. When I use table to run the command (belo…
Subscribe to:
Post Comments (Atom)
0 Response to Parallel loop with numlist and varlist
Post a Comment