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: MI reshape


From   Laura Gibbons <[email protected]>
To   [email protected]
Subject   st: MI reshape
Date   Thu, 2 Feb 2012 12:54:23 -0800 (PST)

I'm having problems with MI reshape which I've been unable to replicate in a public data set. My data has 20 sets of imputations.

My reshape command dies at the "assembling results" stage:

. mi reshape long adas12_m, i(studyid) j(month)

reshaping m=0 data ...
(note: j = 0 6 12 18)

Data                               wide   ->   long
-----------------------------------------------------------------------------
Number of obs.                       87   ->     348
Number of variables                  55   ->      53
j variable (4 values)                     ->   month
xij variables:
     adas12_m0 adas12_m6 ... adas12_m18   ->   adas12_m
-----------------------------------------------------------------------------

reshaping m=1 data ...

reshaping m=2 data ...

(snip)
reshaping m=20 data ...

assembling results ...
variable adas12_m not found
r(111);

I tried "noupdate" and also got an error message:

. mi reshape long adas12_m, i(studyid) j(month) noupdate

reshaping m=0 data ...
option noupdate not allowed
r(198);

Does anyone have any suggestions?  I may have to go directly to Stata.

thanks,

Laura


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