Announcement

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

  • How can I correctly remove the missing values within group in Stata?

    I have a small data set laid out in longitudinal format,
    * Example generated by -dataex-.
    clear
    input byte (id success)
    1 0
    1 .
    1 .
    1 .
    2 1
    2 0
    2 0
    2 0
    3 .
    3 .
    3 .
    3 .
    4 .
    4 .
    4 .
    end
    I want to drop all missing values in the dataset. How can I use Stata code to do this?
    Thank you!

  • #2
    Code:
    drop if missing(success)

    Comment


    • #3
      Thank you!

      Comment

      Working...
      X