Hello all,
I have searched on the web about something that I still can't understand and that's why I'm posting here.
I want to collapse more than 300 variables, and I'd not like to write them all (they are just 5 generic variables). The variables that I'm collapsing are like house1940, house1941... (with a previous forval house`i'). How could I just write inside the collapse: house`i' (instead of writing house1940, house1941, etc.)? Maybe I could create a varlist, but I don't understand how to do it and also I don't know how to put it into the collapse command.
Thank you.
I have searched on the web about something that I still can't understand and that's why I'm posting here.
I want to collapse more than 300 variables, and I'd not like to write them all (they are just 5 generic variables). The variables that I'm collapsing are like house1940, house1941... (with a previous forval house`i'). How could I just write inside the collapse: house`i' (instead of writing house1940, house1941, etc.)? Maybe I could create a varlist, but I don't understand how to do it and also I don't know how to put it into the collapse command.
Thank you.
Comment