Announcement

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

  • Factor variables in an ordered probit and binary logit

    Hi there,

    I was wondering if you could help me with something that may seem elementary. I am using an ordered probit and a binary logit with categoric variables. I am using stata 11 and was wondering whether it is necessary to specify factor variables in the following form:

    oprobit Y i.X1 i.X2 etc

    or whether it is still correct to specify:

    oprobit Y X1 X2

    Any help would be appreciated!

    Thank you!

  • #2
    Cambridge101,
    The former example treats the covariates (X1 and X2) as categorical while the latter treats them as continuous.
    Amir

    Comment


    • #3
      If X1 and X2 are 0/1 dichotomies, either will work. If they have more than two categories or the coding is not 0/1, you will get different results. The first coding is better if you want to use post-estimation commands like margins.
      -------------------------------------------
      Richard Williams, Notre Dame Dept of Sociology
      StataNow Version: 18.5 MP (2 processor)

      EMAIL: [email protected]
      WWW: https://www3.nd.edu/~rwilliam

      Comment

      Working...
      X