Bookmark and Share

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

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

st: incomplete mi set

From   Laura Gibbons <>
Subject   st: incomplete mi set
Date   Fri, 10 Dec 2010 16:20:15 -0800 (PST)

I am having what to me is a strange problem with mi set, which I have replicated below:

sysuse auto, clear
* just so I don't mess with the original auto data below:
tempfile temp
save `temp'
* this one works:
mi set mlong
mi register imputed rep78
mi impute mvn rep78=price mpg, add(20) rseed(29390)
keep if _mi_miss==.
collapse (mean) rep78, by(make)
tempfile temp2
save `temp2'
use `temp', clear
merge 1:1 make using `temp2', update replace
* this one gives no error message, but the _mi variables are not created:
mi set mlong

If, just to test, I try:
mi set wide

I'm informed the data are already mi set mlong.

(why I would want to do this is unclear in this example, but in my data I have a reason)

my Stata 11.1 64-bit for Windows is up to date.

Thank you!


Laura E. Gibbons, PhD
General Internal Medicine, University of Washington
Box 359780, Harborview Medical Center, 325 Ninth Ave, Seattle, WA 98104
phone: 206-744-1842, fax: 206-744-9917,
Office address: 401 Broadway, Suite 5076-V125
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index