Announcement

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

  • How to merge two categories in logistic regression

    Previously I calculated two categories (EPDS_severity==2 and EPDS_severity==3) separately which I have written following.

    mi estimate, or: logistic EPDS_severity ib0.part_agree if study_sample ==2 & EPDS_severity==0 | EPDS_severity==2, vce(robust)

    mi estimate, or: logistic EPDS_severity ib0.part_agree if study_sample ==2 & EPDS_severity==0 | EPDS_severity==3, vce(robust)


    Now I want to merge these two groups together. what command should I use for that? Can anyone please help?

  • #2
    Code:
    | inlist(EPDS_severity, 2, 3)
    is one of several ways to do it.

    Comment


    • #3
      I got my desired result.. Thanks a million for this help

      Comment

      Working...
      X