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
Npregress slow with large data-sets, small samplesHi there, Stata brethren. Recently I have been trying to use the new nonparametric regression featu…
loop for dummy variableI have many data sets in the format such as this one, however most are much longer. origin is just t…
Getting the current and future 1, 3, 6 month returnsHello. I am working on a finance thesis. I want to create current month returns from daily stock pri…
bar chart comparing mean to a constant variableDear Stata Community, I am looking to create a bar graph similar to that below. For simplicity, I w…
change in sign and significance of linear term after adding quadratic and cubic termsHi all, I need your comments on change in sign and significance of linear term after adding quadrat…
Subscribe to:
Post Comments (Atom)
0 Response to macros in variable names
Post a Comment