Announcement

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

  • Conditionals

    Hello How I can replacement for the value of an observation where there is no data with a conditional
    I want to replace the value of X1 with a 1 (it is binary) if X1=="" and X3=="" (i.e. both have no data) and x4>2

  • #2
    Try
    Code:
    replace X1 =1 if missing(X1) & missing(X3) & x4>2

    Comment

    Working...
    X