Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

Re: st: a dataset appears to be stuck in memory

From (Wesley D. Eddings, StataCorp)
Subject   Re: st: a dataset appears to be stuck in memory
Date   Wed, 28 Dec 2011 16:09:49 -0600

Mosi Ifatunji ( used -mi ice- to create imputations in
Stata 12.  To use the created -mi- data in SAS, Mosi converted it to the
-flongsep- style and re-saved the original dataset and each imputed dataset in
the old Stata format using -saveold-:

> In order to save the new datasets in the old Stata file format, after imputing
> 20 datasets, I ran the following series of commands:
>       . mi convert flongsep selectivity_mi, replace
>	. saveold selectivity_mi, replace
>	. use _1_selectivity_mi, clear
>	. saveold _1_selectivity_mi, replace 				
>       . use _20_selectivity_mi, clear
>	. saveold _20_selectivity_mi, replace 

He then wanted to convert data back to the -flong- style but received an

>       . use selectivity_mi, clear (which works fine)
>       . mi convert flong
> no; you have _1_selectivity_mi.dta in memory
>   you need to use selectivity_mi first
> r(198);

We have not been able to reproduce the error and have asked Mosi off the list
to send us the data and do-file.  Mosi could not send us the data but was able
to work around the problem by redoing the multiple imputation.

Most likely the observed data were accidentally overwritten with the data from
the first imputation.  To prevent such an overwrite, we recommend making a
copy of the imputed data before modifying it.  To create a copy of the
-flongsep- data, you can use the -mi copy- command.

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index