Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: RE: RE: Imputing error: Obs. nos. out of range


From   "Ploutz-Snyder, Robert (JSC-SK)[USRA]" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: RE: Imputing error: Obs. nos. out of range
Date   Tue, 13 Apr 2010 08:39:44 -0500

I've returned to this error problem--unsuccessful attempt to use ice to impute missing values in a dataset.

Per Martin's suggestion I used the trace option, with m=1 and cycles=100.  Here the code that I used:


ice x1 x2 x1x2 x4 z_x5 x6 x7 x8 x7x8 x10 x11 x12 x13 z_x14 y1-y6 z_y7 z_y8 y9-y22, m(1)   passive(x7x8:x7*x8) saving(mrid_imputed, replace) seed(112233) trace(mridtrace) cycles(100)

And I received the same error as before:

Imputing Obs. nos. out of range
r(198)


...  but  NO TRACE FILE was generated, so I've nothing to use for troubleshooting.  


Any other thoughts on how to peel this apart?




-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Friday, April 09, 2010 4:21 PM
To: [email protected]
Subject: st: RE: Imputing error: Obs. nos. out of range


<>

Have you -set tr on- yet? See which command throws up this error, and report
the area around it to the list.


HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ploutz-Snyder,
Robert (JSC-SK)[USRA]
Sent: Freitag, 9. April 2010 22:50
To: [email protected]
Subject: st: Imputing error: Obs. nos. out of range

I'm trying to run ice imputation on a dataset and running into an error that
I need some help with. I can successfully run a "dry run" ice command, but
when trying to run even 1 imputation I get the error.  

Here's my command:
ice x1 x2 x1x2 x4 z_x5 x6 x7 x8 x7x8 x10 x11 x12 x13 z_x14 y1-y6 z_y7 z_y8
y9-y22, m(1)   passive(x7x8:x7*x8) saving(mrid_imputed, replace)
seed(112233)

and here's the error that I get:

Imputing Obs. nos. out of range
r(198);


Advice??

p.s. fyi.. there are a lot of vars here but not all have missing values to
be imputed--included to inform the imputations of the others.  Also, x7x8 is
an interaction term that is passive, as specified.  Similarly x1x2 is also
an interaction term from x1*x2, however x1, x2 and x1x2 have no missing
values so x1x2 does not need to be specified as passive.  In fact, if it is
specified as passive, ice returns an error " passive definition x1x2 =
(x1*x2) redundant: x1 x2 has no missing data.
1 error(s) found in option passive(x1x2: x1*x2\x7x8:x7*x8)"   


Robert J. Ploutz-Snyder, PhD 

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

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index