RUNNING MICROECONOMETRICS
USING STATA (Revised Edition) PROGRAMS IN STATA 12
The Revised Edition programs (downloadable from http://www.stata-press.com/data/musr.html were written for Stata Version 11.
All of these programs run in Stata 12 with no change, with
the following exception:
- in mus09p1panlin2.do the command xtrc lwage exp wks, i(id) does not run
and needs to be commented out (this is in section 9.5.6).
The output is exactly the same as in the Revised Edition
except
- Slightly different numbers in the section 11.5.4 high collinearity
example
- Very slightly different numbers in the section 15.6 nested logit example
Note that when the programs are run with no change these programs are actually running under version 11 control, since each program has at its start the command version 11.
*******
To instead run the programs in Stata 12 under version 12 control, change in
each file any statement version 11 to version 12.
This occurs at the start of each program.
Additionally it occurs
- a second time in mus01p1stata.do (in section 1.8)
- in around eight extra places in mus04p1sim.do
- in eight extra places in mus11p1opt.do
- a second time in mus12p1tests.do (near end of program)
- eight extra times in mus13p1bootstrap.do
- a second time in mus01p1stata.do (in section 15.3)
- a second time in mus01p1stata.do (in section 17.5)
- in two extra places in musappxap1.do
Running programs in Stata 12 under version 12 control should
give the same results in the book, except for
- simulations that use the rnormal() command
- simulations that use drawnorm() command.
The difference arises because beginning with version 11.2, Stata changed the
way that the seed given in command set seed was used to form the starting point
for generation of normals using rnormal()
or drawnorm().
It is best to still use the set seed command as given in the original programs.
However, if you want to reproduce exactly the results of the book when running Stata
12 with Stata 12 version control, change command set seed 10101 to version
11.1: set seed 10101
This needs to be done:
- once in section 3.5 (p.103-4 of revised edition)
- in many places in chapter 4 (p.122-150 of revised edition)
- once in section 5.3 (p.157-162 of revised edition)
- once in section 7.4 of mus07p1qr.do (p.223-226 of revised edition)
- once in section 11.5.7 of mus11p1opt.do (p.382-383 of revised edition)