I am in need of two different tuples lists, so I would like to store one set as a local and call the other in a different loop.
Below is the command i am trying to store. I do not think it is storing the list because when I call the new local list in the second loop it does not recognize the local macro sp`i'. I am trying the following command to store the tuples (tuple1, tuple2, tuple3,...) to sp`i' (eg. sp1, sp2, sp3...) .
tuples x y z w
forval i =1/15 {
local sp`i' `tuple`i''
}
As a bonus question is there a command to count the number of tuples created so I can make the indexing more flexible? So instead of 15 it would be max(tuples), or something similar.
Thanks!
[Tuples is a really cool command. Thanks whoever created it!!!]
Related Posts with Local macro list and tuples
Controling for fixed effecttHi all, I am running a form of OLS regression, where I am trying to determine the effect of nationa…
dropping observations with specific values in two different variablesDear Statalisters, I am currently analysing an employer survey where each observation is an employi…
Controling for fixed effects (time, industry, law)Hi all, I am running a form of OLS regression, where I am trying to determine the effect of nationa…
code test Code: 𝐿𝑒𝑣𝑒𝑟𝑎𝑔𝑒 𝑟𝑎𝑡𝑖𝑜𝑖,𝑘,𝑡 = α + β ∗ Hofstede′s Cultural dimensions𝑘 + γ1 ∗ Firm l…
Time-varying betaDear all, I am currently studying mutual equity fund returns in regard to the four-factor model of …
Subscribe to:
Post Comments (Atom)
0 Response to Local macro list and tuples
Post a Comment