Announcement

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

  • For loop

    I have a dataset with 30 variables containing one ICD-code each. I need to identify certain specific codes among these in order to create a new variable indicating whether certain specific codes are present or not (coded as 0 or 1). I've been told that perhaps a "for loop" could work, but I'm not sure how to do this. Any pointers?

  • #2
    Please take a look at https://www.statalist.org/forums/help#realnames.
    See the FAQ again on how to post more effectively. Thanks.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment

    Working...
    X