Announcement

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

  • Spliting samples

    Hello,

    I would like to split one of my research variable which is an outcome of the difference between two variables(GAP = external - internal) and I want to focus only on those that produce a positive gap one time and another time those produce a negative gap. I have tried generating a new dummy variable that gives this variable 1 if it is>0 and 0 otherwise but I want to use the raw data not dummy variables.

  • #2
    Code:
    gen negative = gap if gap<0
    gen positive = gap if gap>0

    Comment


    • #3
      Ok thank you

      Comment

      Working...
      X