Hi all, I assume this is a very simple question (to which the answer might be 'no'), but is there an easy way for referring to a sequence of variables in my scenario...my code would be something like
Is there a way to specify that range of just the number in the middle of the variable name, without reordering the variables? There are currently other variables in between them. If the solution is just to reorder the variables, it's probably easier for me to just list them all out instead of adding additional lines of code.
Code:
egen newvar = rowmax(df9d_w1 df10d_w1 df11d_w1 df12d_w1)

Comment