I am trying to use -mi-. I run the following with a data set that has
not been declared as panel:
qui mi set mlong
qui mi register imputed rule mal94p
qui set seed 29390
mi impute mvn rule mal94p = lat loggdp2 pop100km rel_frac, add(10)
I get the following error:
. mi impute mvn rule mal94p = lat loggdp2 pop100km rel_frac, add(10)
variable year not found
r(111);
I don't have a variable named in the dataset.
Note, when I run the following basic code (e.g,. provided in the
manual), Stata performs correctly:
qui use http://www.stata-press.com/data/r11/mheart5
qui mi set mlong
qui mi register imputed age bmi
qui set seed 29390
mi impute mvn age bmi = attack smokes hsgrad female, add(10)
Performing EM optimization:
note: 12 observations omitted from EM estimation because of all
imputation variables missing
observed log likelihood = -651.75868 at iteration 7
Performing MCMC data augmentation ...
Multivariate imputation Imputations = 10
Multivariate normal regression added = 10
Imputed: m=1 through m=10 updated = 0
Prior: uniform Iterations = 1000
burn-in = 100
between = 100
| Observations per m
|----------------------------------------------
Variable | complete incomplete imputed | total
---------------+-----------------------------------+----------
age | 142 12 12 | 154
bmi | 126 28 28 | 154
--------------------------------------------------------------
(complete + incomplete = total; imputed is the minimum across m
of the number of filled in observations.)
Also, my Stata is up to date:
. update query
(contacting http://www.stata.com)
Stata executable
folder: D:\Program Files\Stata11\
name of file: StataSE.exe
currently installed: 21 Oct 2009
latest available: 21 Oct 2009
Ado-file updates
folder: D:\Program Files\Stata11\ado\updates\
names of files: (various)
currently installed: 08 Dec 2009
latest available: 08 Dec 2009
Utilities updates
folder: D:\Program Files\Stata11\utilities
names of files: (various)
currently installed: 21 Oct 2009
latest available: 21 Oct 2009
Recommendation
Do nothing; all files up to date.
Any ideas?
Best,
John
--
____________________________________________________
Prof. John Antonakis, Associate Dean
Faculty of Business and Economics
Department of Organizational Behavior
University of Lausanne
Internef #618
CH-1015 Lausanne-Dorigny
Switzerland
Tel ++41 (0)21 692-3438
Fax ++41 (0)21 692-3305
Faculty page:
http://www.hec.unil.ch/people/jantonakis
Personal page:
http://www.hec.unil.ch/jantonakis
____________________________________________________
*
* 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/