Within a by-able program, I'd like to use the current value of the by-group variable, assuming the simplest situation of a byable program with just one by-variable. I would have thought this would be stored in some macro, but I didn't find that in the documentation. The best I can come up with is the following, which seems clumsy:
Code:
program test, byable marksample touse levelsof `_byvars' if `touse', local(byval) ... now do whatever with `byval' end
Comment