Announcement

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

  • error with -mi impute chained-

    I have been puzzling over this too long and feel like I must be misisng something. I am using -mi impute chained- the way I typically do, but it keeps giving me an error.


    Code:
        mi set mlong
        mi register imputed base  p_marital
        mi impute chained (regress) base = p_age i.p_marital  i.s_type (mlogit) p_marital= p_age, add(10)
    I get this error:

    Code:
    variable mlogit not found
     -- above applies to specification = p_age i.p_marital i.s_type (mlogit) p_marital= p_age
    What am I missing?

  • #2
    Based on the syntax diagram, I think your indepvars need to be common for all your custom lhs specifications.
    Code:
    mi impute chained (regress) base (mlogit) p_marital = p_age i.p_marital i.s_type, add(10)

    Comment


    • #3
      Never mind, I figured it out.

      Comment


      • #4
        Yep

        Based on the syntax diagram, I think your indepvars need to be common for all your custom lhs specifications.
        Code:
        mi impute chained (regress) base (mlogit) p_marital = p_age i.p_marital i.s_type, add(10)

        Comment

        Working...
        X