Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: table & chi-square from multiply imputed survey data (-ice-, -mim-) [repost]


From   "Michael I. Lichter" <mlichter@buffalo.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: table & chi-square from multiply imputed survey data (-ice-, -mim-) [repost]
Date   Thu, 05 Feb 2009 15:44:37 -0500

Steven Samuels wrote:
Michael: what happens if your command begins "mim: xi:"? Also, what if you define your own indicators and skip -xi-?
The former isn't supported, and the latter gets the same error.


.         // load data
. use q1imp, clear
(Survey Data with Contextual Variables Added)

.         // variables of interest in original data
. tab q1opda stratanu if _mj==0, miss

PDA/Palm/Handheld |
  Device (Office |              Sampling Stratum
     Management) |     Urban  Large Rur  Small Rur   Isolated |     Total
------------------+--------------------------------------------+----------
  No plan to use |        95        142        141        151 |       529
Plan to use later |        11         25         22         26 |        84
Plan to use soon |        11         13         14         11 |        49
Some of the time |        22         24         30         35 |       111
Most of the time |        20         28         26         34 |       108
               . |        25         34         29         32 |       120
------------------+--------------------------------------------+----------
           Total |       184        266        262        289 |     1,001


.         // generate indicators
. qui tab stratanu, gen(strat)

.         // mim with xi second
. mim: xi: mlogit q1opda i.stratanu
xi not supported after mim; run xi: mim: ... instead"
r(198);

.         // mim with xi first
. xi: mim: mlogit q1opda i.stratanu
i.stratanu _Istratanu_1-4 (naturally coded; _Istratanu_1 omitted)
conformability error
r(503);

.         // mim with indicators, without xi
. mim: mlogit q1opda strat2 strat3 strat4
conformability error
r(503);


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index