Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Obtaining current value of by-group variable

    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. Is there something less clumsy than this?
    Code:
    program test, byable
    marksample touse
    levelsof `_byvars' if `touse', local(byval)
    ... now do whatever with `byval'
    end

  • #2
    Discussed here

    Comment

    Working...
    X