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
Destringing vars and changing commas to dotsHi all I have some datasets in which Italian notation has been used - this means that commas have …
Curious error when listing longI'm working with latitude and longitude variables but I ran into a curious error: Code: clear input…
Descompositioncan someone explain to me about the gap descomposition methods and which are commands in Stata? I wa…
Unable to cd and use the file in DropboxHi Everyone, I have difficulty to cd the file to Dropbox and use the file in Dropbox. Here are my s…
Find the most recent observationHi, I have a year-firm panel data. How should I write the code to find the most recent observation …
Subscribe to:
Post Comments (Atom)
0 Response to Parallel loop with numlist and varlist
Post a Comment