Announcement

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

  • Commands


    HI all

    Could someone please explain what these commands are doing?

    egen momid = group(v001 v002 v003)

    egen maxbord = max(bord), by(momid)

    Thanks

  • #2
    The first command creates a new variable, momid. This new variable identifies groups of observations that all agree on the values of variables v001, v002, and v003. The second command then creates a new variable maxbord which contains the largest value of variable bord found among all observations in the group of observations defined by the value of momid.

    Comment

    Working...
    X