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
50th Percentile Matrix not storing valuesLooking to store my 50th percentile values in a matrix that loops for n= 10, 100, 1000, 10000 observ…
rangestat commandHello all, I need your help regarding rangestat command. I have a panel dataset with the panel dime…
Theoretical Standard Normal Cumulative Distribution in StataHello everyone, I am looking to compare an empirical standard normal cumulative distribution that I …
Minimum number of observations required to estimate Panel data?Dear all, I have a panel data with both N and T small, 25 cities and 10 years respectively. Is the p…
Strange behavior of factor interactions using the 'o().variable' notationHello everyone, I ran some regressions with factorized interaction variables using the o().`varname…
Subscribe to:
Post Comments (Atom)
0 Response to macros in variable names
Post a Comment