say that i want to create new variables using a numlist as follows:
Code:
forvalues i=5(5)15 { *Im using normal just as a simple example gen g`i'=rnormal() }
Is there anyway i can modify the above code, so that i can creates variables as: g05 g10 g15 ?
Specifically, i need to add the zero whenever the value of i is between 1 and 9.
Thank you.
Fernando
0 Response to locals and varnames
Post a Comment