hi,
suppose i have a variables named x1 x2 x3 ....x2000 and had set the following local macro and forv loop (that obviously didnt work):
local j 365
forv i=366(365)2557{
use x(`i'-`j') using abcd.dta
}
is it possible to specify the above -use- command by "subracting" macros to specify an x variable ? i tried a few formats but none worked.
i m doing this to ultimately spit a data set "horizontally"
thx
Related Posts with macros in variable names
Need help with creating a new variable based on several conditions pleaseHi all, I'm recently compling a data set that captures data about how car plants affect its surround…
Use variable labels in putdocx textI am trying to create a word document with a number of histograms. I would like to describe each his…
creating a new var: Type mismatchHi I am going to classify firms into regions. I have a variable that specifies the firm's locations…
Need help to check out my syntax [Fixed-effect model]I am not familier with STATA, so I need your help checking out my syntax. I would like to examine t…
Issue with creating STATA bar graphI have problem to create bar graph with my data. 1st image is my desired graph. 2nd table is my data…
Subscribe to:
Post Comments (Atom)
0 Response to macros in variable names
Post a Comment