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   "Rodrigo Alfaro A." <ralfaro@bcentral.cl>, "statalist@hsphsun2.harvard.edu"<statalist@hsphsun2.harvard.edu>
Subject   RE: st: ice and random-number seed
Date   Fri, 22 Aug 2008 15:35:22 -0400

Thank you. Your point about "order matters" made me remember the -orderasis- option. The fix I suggested earlier (setting the seed manually prior to both -ice- and -mim-) doesn't seem to work if you are using weights...but using both the -orderasis- and the -seed- options of -ice- seems to fix the problem.



-----Original Message-----
From: Rodrigo Alfaro A. [mailto:ralfaro@bcentral.cl]
Sent: Friday, August 22, 2008 10:16 AM
To: statalist@hsphsun2.harvard.edu
Cc: Medina, Tait Runnfeldt
Subject: RE: st: ice and random-number seed


///

Tait,

I think that your case is more complicated than Maarten's example.

(1) You are using weights. If I recall correctly ICE produces results
using iterations => order matters. My suggestion is to try your problem
without weights.

(2) Sorting could make some differences here. You could try imputing
one dataset each time using a specific seed. It is expected the
correlations between imputed variables (original y replication) should
be one.

Under (1) you have no solution. Under (2) you could control the problem
imputing 1 dataset at the time with specific seeds. We had problem (2)
with user-written routine hotdeck.

Rodrigo.




-----Mensaje original-----
De: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] En nombre de Medina, Tait
Runnfeldt
Enviado el: Viernes, 22 de Agosto de 2008 08:15 a.m.
Para: statalist@hsphsun2.harvard.edu
Asunto: RE: st: ice and random-number seed

Dear Richard:

Thank you for your reply.

I tried using -mim- and version 1.4.6 PR 25apr2008 of -ice-, but I am
still unable to reproduce results.

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?

Tait

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Richard
Williams
Sent: Friday, August 22, 2008 12:36 AM
To: statalist@hsphsun2.harvard.edu; statalist@hsphsun2.harvard.edu
Subject: Re: st: ice and random-number seed

At 09:43 PM 8/21/2008, Medina, Tait Runnfeldt wrote:
>I am unable to reproduce regression results using imputed data
>generated via Royston's -ice- command, although I am using the
>-seed- option. A comparison of a mock original and an attempted
>replication, illustrating this problem, can be found in step #4 below.
>
>I am using Stata version 10.1. The version of -ice- and -micombine-
>being used can be found in step #5 below.

You might also try -mim- instead of -micombine-.  I'm not sure why both
exist since Royston is an author of both, but my impression is that
-mim- is better.  You may need to rename some of the vars created by
-ice-. -mim- is available on SSC.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

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

********************************************************************************
ADVERTENCIA: La  información  contenida  en  esta  transmisión, y  en  cualquier archivo  adjunto, está  sujeta a reserva legal conforme a la normativa aplicable  al  Banco  Central  de  Chile, y  no  puede  ser usada o difundida  por personas distintas  de  su o sus destinatarios. Si usted ha recibido esta transmisión por error,  por  favor  notifique  inmediatamente al remitente respondiendo por este mismo medio y elimínela de su sistema.
El  Banco Central de Chile no se hará responsable de la exactitud y veracidad de la información contenida en este mensaje, así  como  de su  modificación, copia, divulgación  o  reenvío,  total  o  parcial.   Su  uso  no  autorizado puede ser sancionado de conformidad con las leyes chilenas.
El  Banco  Central  de  Chile  transmite  sus decisiones a través de comunicados oficiales, los  que  pone  a  disposición  del público en su página de Internet: www.bcentral.cl


DISCLAIMER: The information  contained  in  this  email or any attached file, is subject to legal  privilege  pursuant  to the laws and regulations applicable to the Central  Bank  of  Chile , and may not be used or disseminated by any person other  than  its  intended recipients. If you have received this transmission in error, please  notify  the sender immediately by reply to this email address and delete it from your system.
The Central Bank  of  Chile shall not be liable for the accuracy or authenticity of the contents of this message, whether amended, copied, forwarded or disclosed in  any  form, in  whole  or  in part.  Please note that unauthorized use may be penalized  in  conformity  with  the  Chilean law.
The Central  Bank of Chile communicates its decisions by  official releases, and
makes them available to the public in its WebPages: www.bcentral.cl

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