Announcement

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

  • Calling dataset back after using "Collapse"

    Dear all,

    I want to ask a very simple question. How do we return the previous dataset after using the collapse function?

    Code:
    collapse (mean) bilateral, by(recipient), if year>2017 & year<2020
    The code below provides me with the information I need. But, I open another STATA file to bring my previous dataset back. How can I do that for the same STATA interface?

    Best,

  • #2
    Code:
    preserve
    collapse (mean) bilateral, by(recipient), if year>2017 & year<2020
    restore
    Also see

    Code:
    help frames

    Comment


    • #3
      Dear Andrew Musau,

      Thank you so much for this touch, it worked well.

      Best,

      Comment

      Working...
      X