Announcement

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

  • femlogit with factor variables

    I want to run a multinomial logit for panel data with fixed effects. The user written command femlogit by Dr. Knorr seems to be the best option. After trying it, I realized it does not allow factor variables as independent variable. Is there any way around this if my models need to include factor variables?

    Example:

    femlogit y i.x1 x2 x3, baseoutcome(0)

    - factor variables and time series operators not allowed.


    Thanks
    Ken
    ​​​​​​​

  • #2
    You can try
    Code:
    tab x1, gen(dx)
    femlogit y dx* x2 x3, baseoutcome(0)
    Ho-Chuan (River) Huang
    Stata 17.0, MP(4)

    Comment

    Working...
    X