I am trying to diagnose the problem I reported here . I've reproduced the error outside of the mi environment, so am creating this new topic to reflect that fact.
The error arises after:
This command completes successfully and returns full results to eprobit. Then
The error message is:
inconsistent estimation sample levels 0 and 1 of factor IVARNAME
Note that IVARNAME is one of the predictor variables in the entreat() clause to eprobit.
Note also that this doesn't happen in all the imputations; the above happened, for example, after using
, but does not happen with
.
Thanks for your insights!
The error arises after:
Code:
svy: eprobit DEPVAR IVAR1 IVAR..., entreat(TREATMENT = IVAR..., nointeract)
Code:
margins, dydx(*) predict(pr)
inconsistent estimation sample levels 0 and 1 of factor IVARNAME
Note that IVARNAME is one of the predictor variables in the entreat() clause to eprobit.
Note also that this doesn't happen in all the imputations; the above happened, for example, after using
Code:
mi extract 1
Code:
mi extract 0
Thanks for your insights!
Comment