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
Replace value from different row condtionsHello everyone I have a dataset with observations that have been matched, and I have a sample weight…
Average Real Variability (ARV) and Variability Independent of Mean Blood PressureHi everyone, I'm Med Student and new using STATA. Currently, For a systolic blood pressure visit to…
Phi coefficient and Point Bi-Serial*How to calculate the Phi coefficient and Point Bi-Serial for a complex sample after creating a surve…
Listing and retrieving data from SQL views when using odbcHi, I have data stored in a view in MS SQL Server and I am using ODBC to connect to this database f…
Parallel lines assumption of ordered logit regressions with multiply imputed dataDear all, I am working with an imputed data set (M=50, N=1359) and use an ordered logisitc regressi…
Subscribe to:
Post Comments (Atom)
0 Response to Local macro list and tuples
Post a Comment