I am trying to use loop to run regression over different subsamples as defined by another variable. The variable I am using to subset regressions is a string variable. However, while running the loop the estimate store returns with a error saying "11 Invalid Name".
The 11 above is part of the first value of the string variable. The string contains values such as 11, 21, 22, 23, 31-33 and so on.
Below is the screenshot of the code.
The 11 above is part of the first value of the string variable. The string contains values such as 11, 21, 22, 23, 31-33 and so on.
Below is the screenshot of the code.

Comment