Announcement

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

  • Combining/Collapsing Observations with the Same ID

    For observations with same ID, does Period_Begin of one observation equal to Period_End of another observation? If yes, aggregate revenue of the observations to make into one period. Mark period as complete, the revenue is of a complete year.

    Tried tagging dups. Stuck with how to make stata detect whether variable A of observation 1 equals to variable B of observation 2.
    Click image for larger version

Name:	Screenshot 2023-10-01 190157.png
Views:	1
Size:	11.2 KB
ID:	1728730

  • #2
    Hello David. It would be easier for other members to help if you followed the advice in the FAQ about using -dataex-. See section 12.2. Also...

    Code:
    help dataex
    --
    Bruce Weaver
    Email: [email protected]
    Version: Stata/MP 19.5 (Windows)

    Comment


    • #3
      Cross-posted at https://stackoverflow.com/questions/...th-the-same-id

      Comment

      Working...
      X