Hey,
I want to loop over numbers of a list (in a local). The code looks like the following:
The code creates the (wrong) variables:
test_b_local
test_t_local
test_b_lambdas
test_t_lambdas
Where is my mistake? In a similar situation I use --levelsof-- in order to get the levels of a specific variable and safe them in a local. I also want to loop over them. Same problem.
Thanks in advance!
I want to loop over numbers of a list (in a local). The code looks like the following:
local lambdas 400000 100000 25000 1600
foreach lambda in local lambdas {
foreach lambda in local lambdas {
foreach x in b t {[INDENT=2]gen test_`x'_`lambda' = .[/INDENT]
}}
test_b_local
test_t_local
test_b_lambdas
test_t_lambdas
Where is my mistake? In a similar situation I use --levelsof-- in order to get the levels of a specific variable and safe them in a local. I also want to loop over them. Same problem.
Thanks in advance!
Comment