Some of the things I do with Stata are so rare that I always forget how I'd done them before. So, they turn into questions and they're infrequent. 1. Turn a string variable into more variables, one for each word of the longest string: split mystringvar, gen(stub) 2. Collect the levels of a categorical [...]