Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: ICE with if statement


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: ICE with if statement
Date   Tue, 23 Jan 2007 13:36:35 +0100

I have done something similar, and it required quite a bit of work: The way I have done this is to:
1) create separate dataset for each survey, 
2) run -ice- on each dataset,  
3) append the resulting datasets into one new dataset,
4) use the appropriate formulas (http://www.stat.psu.edu/~jls/mifaq.html) to get parameter estimates and standard errors.

There are tools available to make step 4 easier (see: -findit mifit-) but in my case the dataset got too big too use them.
Hope this helps,
Maarten 

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Stijn Ruiter
Sent: dinsdag 23 januari 2007 11:41
To: [email protected]
Subject: st: ICE with if statement

Hi all,
I am trying to multiply impute data per survey using ICE. However, I do
not understand how the IF statement should be used to do this. When I
use the following command, test1.dta still contains all surveys:

ice x1 x2 x3 using "G:\test1.dta" if survey==1, m(5)

Subsequently, I run:

ice x1 x2 x3 using "G:\test2.dta" if survey==2, m(5)

which results in test2.dta containing all surveys too.

As I understand it, there is no BY statement as in SAS PROC MI.
Can anyone tell me how to run imputations per survey?
Thanks in advance,
Stijn

--
Stijn Ruiter
Department of Sociology / ICS
Radboud University Nijmegen
P.O. Box 9104
6500 HE Nijmegen
Netherlands

Phone: + 31 24 361 2272
Fax:   + 31 24 361 2399

Visiting address:
Thomas van Aquinostraat 4.01.74
Nijmegen

website: http://oase.uci.ru.nl/~sruiter

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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