Announcement

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

  • Stata command

    Dear all, I have an issue about which command test I may use when testing the difference between (Gender) Male and Female and another categorical variable(with 5 categories)

  • #2
    Delphine:
    welcome to this forum.
    1) if your categorical variable is the regressand (y) and it is not ordered (say; white,black,orange,blue,indigo), you may want to consider:
    Code:
    mlogit <depvar> i.gender
    2) if your categorical variable is the regressand (y) and it is ordered (say; worse,bad,neutral,good,better), you may want to consider:
    Code:
    ologit <depvar> i.gender
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Apart from the useful advice Carlo gives, OP should try to rephrase the question, because as it stands now the question does not make sense.

      What sense there is to test the difference between a binary variable and a categorical variable? They are clearly different, one is binary, the other is categorical.

      Comment

      Working...
      X