Statalist The Stata Listserver


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

st: multiple imputation with if statement


From   Stijn Ruiter <[email protected]>
To   [email protected]
Subject   st: multiple imputation with if statement
Date   Tue, 23 Jan 2007 13:20:26 +0100

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/



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