Announcement

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

  • generating positive and negative components of a variable

    Dear members, I want to generate positive and negative components of a variable on stata for non-linear panel ARDL.

    I am just stuck on this stage. I need stata command or code. please help.

    Regards,
    Rabiya gill


  • #2
    Code:
    gen pos = max(x, 0)
    gen neg = abs(min(x, 0))
    to satisfy an identity

    x = pos - neg

    Comment

    Working...
    X