Lately I have been writing a lot of modular Stata code, where bits and pieces of the job are done by separate programs, sometimes declared in different do-files (called in with do). You get programs to pass on things to each other by making them rclass. Now, r() results can be scalars as in this [...]