Statalist


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

st: error using mim


From   Woolton Lee <finished07@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: error using mim
Date   Fri, 4 Sep 2009 19:29:22 -0400

I am running a SUR model using mysureg (user written version of sureg
that implements it via ML by Jeff Pitblado and Will Gould) estimated
on multiply imputed data and I am using MIM to combine the parameter
estimates of the different models and I am getting a strange error
message.  My program is as follows,

local tlq1	lncmm lnmcmm lnmdmm lncq1 lnmcq1 lnmdq1 lnip lnap lnlp lnoth
		lncmmlncmm lnmcmmlnmcmm lnmdmmlnmdmm lnmcmmlncmm lnmdmmlncmm lnmdmmlnmcmm
 		lncq1lncq1 lnmcq1lnmcq1 lnmdq1lnmdq1 lnmcq1lncq1 lnmdq1lncq1 lnmdq1lnmcq1 	
	lncq1lncmm lnmcq1lnmcmm lnmdq1lnmdmm
		lniplncmm lnaplncmm lnlplncmm lnothlncmm 	
		lniplnmcmm lnaplnmcmm lnlplnmcmm lnothlnmcmm
		lniplnmdmm lnaplnmdmm lnlplnmdmm lnothlnmdmm
		lncq1lnmcmm lnmcq1lnmcmm lnmdq1lnmcmm
		lniplncq1 lnaplncq1 lnlplncq1 lnothlncq1  /* quality - input price
interactions */
		lniplnmdq1 lnaplnmdq1 lnlplnmdq1 lnothlnmdq1
		lniplnmcq1 lnaplnmcq1 lnlplnmcq1 lnothlnmcq1
		lniplnip lnaplnap lnlplnlp lnothlnoth   /* input price interactions */
		lnaplnip lnlplnip lnothlnip lnlplnap lnothlnap lnlplnoth ;

local tlcsaq1 lncmm lnmcmm lnmdmm lncq1 lnmcq1 lnmdq1 lnip lnap lnlp lnoth;
local tlcsiq1 lncmm lnmcmm lnmdmm lncq1 lnmcq1 lnmdq1 lnip lnap lnlp lnoth;

mim, category(fit): mysureg  (lntvc `tlq1' `cntrlvars')
			(cs_amb `tlcsaq1')
			(cs_inp `tlcsiq1')
		if numrepyrs >= 1 & _mj == `x', cluster(cocode);

When I run this I get the following error,

covariates in analysis of imputed dataset 2 do not match those of
imputed dataset 1
r(498);

I am confused by this error because the variables I have called in the
regression are the same (indicated by the local macros `tlq1',
`cntrlvars', `tlcsaq1', and `tlcsiq1' ).  How should I approach
addressing this error?

Thank you for your help

W
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index