Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: using Stata's micombine command on a SAS-imputed dataset


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   Re: st: using Stata's micombine command on a SAS-imputed dataset
Date   Mon, 11 Oct 2004 05:21:55 -0500

At 03:53 AM 10/11/2004, you wrote:
Hi,
A colleague of mine imputed data using SAS's mi command. The dataset, containing m=5 imputations, I translated into a .dta format using StatTransfer. I wondered if Stata's micombine command might be able to get the regression coefficients. I created the two variables _i and _j that normally would be present had we used Stata's mvis command instead of SAS's mi command and ordered the dataset as mvis would have.

I still get the following error message after using micombine.

. micombine regress s_mh dum1grp dum2grp gesl lft cd4 vload, impid (_j)
no row-identifier variable found - data may have incorrect format
r(198);

What format does Stata expect? Any help to sort this out will be greatly appreciated.

Here is an example of the format from a data set of mine that worked without problem.

+---------------------+
| _i _j sex |
|---------------------|
1. | 1 1 Female |
2. | 1 2 Female |
3. | 1 3 Female |
4. | 1 4 Female |
5. | 1 5 Female |
|---------------------|
6. | 2 1 Female |
7. | 2 2 Female |
8. | 2 3 Female |
9. | 2 4 Female |
10. | 2 5 Female |
|---------------------|

In the final data set there are 5 combined data sets (_j) and (_j=1 to 5). Within each data set, _i is the observation number.


Fred Wolfe


Gerben ter Riet, MD PhD, Academic Medical Center
Dept. General Practice, Room J2-118, 1105 AZ Amsterdam

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761
[email protected]


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index