Announcement

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

  • Error "initial values not feasible" for multiple imputation.

    Dear experts,

    I'd like to ask for your help with syntax.
    I am doing a multiple imputation as below, but I get an error "initial values not feasible error occurred during imputation of choice on m = 1"
    Would you let me know how to fix this?

    Thank you
    Sandy


    mi set flong

    mi register imputed choice

    mi register regular term mexempt rexempt wexempt alast hlast ///
    casphase cascaa sat_total sat_math sat_verb sat_write ///
    cjmajor gender

    mi set M=10

    mi impute truncreg choice = term mexempt rexempt wexempt alast hlast ///
    casphase sat_total cascaa sat_verb sat_math sat_write ///
    gender cjmajor, replace ll(1) ul(3)






  • #2
    Hello,

    While waiting to get some help here, I continued checking this and that, and narrowed the source of the problem.

    The syntax below worked fine.

    However, when I registered the 'race' variable as imputed and put it as DV in the impute syntax after (mlogit) choice,
    it showed the error, "initial values not feasible".
    But, if I remove ll(200) ul(800) from the syntax below, then it worked fine with the 'race' variable as imputed and as DV in the impute syntax.

    Also, when I only registered choice and race as imputed and put the two variables as DV after (mlogit) in the impute syntax, it worked fine as well.

    The race variable was coded 1=asian, 2=black, 3=hispanic, 4=white, 5=indian, and missing values.

    Before finding this, I thought the problem was with somewhat lower or upper limits of the sat scores, but turns out that it's not true.

    Can anybody help me with this?



    mi set flong

    . mi set M=5
    (5 imputations added; M = 5)

    . mi register imputed sat_math sat_verb sat_write sat_total choice
    (7531 m=0 obs. now marked as incomplete)

    .
    . mi register regular race id term mexempt rexempt wexempt alast hlast ///
    > casphase cascaa

    .
    . mi impute chained (truncreg, ll(200) ul(800)) sat_verb sat_math sat_write ///
    > (truncreg, ll(400) ul(1600)) sat_total ///
    > (mlogit) choice = race id term mexempt rexempt wexempt alast hlast ///
    > casphase cascaa, replace force



    Last edited by Sandy Tak; 01 Feb 2019, 09:35.

    Comment

    Working...
    X