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
Iteratively export and reshapeHi all, I have a database made as follows, where there are basically Molecules observed for a set o…
Aggregate data based on two variablesHello Stata Community, I am new to Stata and have a question regarding the aggregation of a dataset…
Multiple comparisonsHi everyone, I am working on minor revision of a manuscript and I have been asked to correct for mu…
ROC curves after cox models ideal cut offHi! Does anyone know how to create ROC curves after Cox models? Basically, here is what I am workin…
Help on ICC / dice scoreDear Stata community, I have some data for which I want to calculate intraclass correlation coeffic…
Subscribe to:
Post Comments (Atom)
0 Response to Parallel loop with numlist and varlist
Post a Comment