Statalist


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

RE: st: ice and random-number seed


From   "Medina, Tait Runnfeldt" <tmedina@indiana.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: ice and random-number seed
Date   Fri, 22 Aug 2008 13:52:18 -0400

Hello Maarten.

Thank you for the reply.

The problem seems to arise when cycling is needed (more than one variable needs imputing). Here is a mocked-up example using the auto data that should reproduce the problem I am having.

Thank you.

*---------------------------begin example----------------------
sysuse auto, clear
recode rep78 1/2=3
recode foreign (0/1=.) if trunk==10
ice rep78 foreign mpg, clear m(5) seed(1234) saving(impauto) replace
mim, storebv: reg mpg rep78 foreign
eststo original
sysuse auto, clear
recode rep78 1/2=3
recode foreign (0/1=.) if trunk==10
ice rep78 foreign mpg, clear m(5) seed(1234) saving(impauto) replace
mim, storebv: reg mpg rep78 foreign
eststo replication
esttab original replication , mtitles(original replication)
*---------------------------end example------------------------

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Maarten buis
Sent: Friday, August 22, 2008 9:00 AM
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: ice and random-number seed

--- "Medina, Tait Runnfeldt" <tmedina@indiana.edu> wrote:
> I tried using -mim- and version 1.4.6 PR 25apr2008 of -ice-, but I am
> still unable to reproduce results.

I am not able to reproduce your problem (no pun intended):

*------------------- begin example -----------------------
sysuse auto, clear
recode rep78 1/2=3
ice rep78 foreign mpg, clear m(5) seed(1234)
mim, storebv: reg mpg rep78 foreign
eststo original
sysuse auto, clear
recode rep78 1/2=3
ice rep78 foreign mpg, clear m(5) seed(1234)
mim, storebv: reg mpg rep78 foreign
eststo replication
esttab original replication , mtitles(original replication)
*-------------------- end example ------------------------
(For more on how to use examples I sent to the Statalist, see
http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )

The fact that I cannot reproduce your problem makes it hard to give a
concrete suggestion on how to solve it, but maybe comparing the example
above with your data and analysis can help you in pin-pointing the
problem and finding a solution.

> On a side note, I was under the impression that the command
> -adoupdate- would update user-written packages, but the command
> failed to update my installed -ice- package. Am I mistaken in my
> understanding of this coomand?

If you originally installed -ice- from the Stata Journal and a later
update is available from SSC, than -adoupdate- is not able to detect
that update.

Hope this helps at least a bit,
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/
-----------------------------------------

Send instant messages to your online friends http://uk.messenger.yahoo.com
*
*   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/

*
*   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