-in- always refers to absolute observation numbers. Why can't it refer
to relative observation numbers under -by:-?
Who knows? Bill Gould will know.
As for me, I don't know. I guess CRC thought that it would complicate
things and wasn't necessary anyway. I don't think it's often wanted
directly anyway. But even great programmers sometimes think "We might
implement that some day, but there are more important things to do now",
and "now" can then stretch over a few decades.
bysort foobar : <whatever> if inlist(_n, 3, 5)
does what
bysort foobar : <whatever> in 3/5
would do if the latter were allowed.
Nick
[email protected]
Martin Weiss
Statalisters: What is the reasoning behind the prohibition to use -by-
and -in- in the same statement?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/