Announcement

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

  • Mi estimate: using if command with proportion error

    Hello,

    I’ve imputed a number of variables using mi impute chained. It is successful and no convergence etc.

    I’m trying to extract proportion (n) to collate a table1 equivalent.
    I have a number of variables var1 var2 etc. I have a two grouped variable var_group. I normally run:
    mi estimate: proportion var1 if var_group==1
    mi estimate: proportion var1 if var_group==2

    I’m getting an error when I use above stating the number of observations vary across m=1 and m=2.

    I’ve run mi varying to identify the problem variable and all appear in order.

    I have use multiple imputation another times and have re read the mi manual. Is there something obvious I can do to sort this problem out?

    Thanks,

    David
Working...
X