Announcement

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

  • If statement is not working

    I am new to stata and only use it for metanalaysis , I have imported the data from excel, the 3d column name is Group which has AC and AT groups , I used the metan code: metan p LCI UCI if Group==AC , label (namevar=Author, yearvar=year)
    I got error r(111): AC not found
    I ran the metan code without the if statement and it ran smoothly , This is my first time to use if statement in stata , what do I need to do?
    thank you

  • #2
    If AC is a string value you need to write

    Code:
    … if Group ==  “AC”

    Comment


    • #3
      And that is perfectly solved the Problem. Thanks a lot Nick

      Comment

      Working...
      X