su_marke.gif (2405 bytes)

David Strömberg


WH 2008 Simulations


Home
IIES
New
People
Publications
Seminars
About
Institute for
International Economic Studies
Stockholm University
SE-106 91 Stockholm
SWEDEN

Phone: +46 8 16 43 77
Fax: +46 8 16 14 43
E-mail: info@iies.su.se
Webmaster:
www@iies.su.se

Last updated,

 October 1, 2008

How to run your own simulations

Please feel free to use and modify the programs as you like. For example, the forecasting can be updated with new opinion polls, the variables used to forecast the election can be changed, and different statistics can be computed in the simulations. 

Download this zip file. The file HowToSimulateElections.doc contains instruction on how to updata the polling data, estimate and simulate the model. The zip-file also contains four Stata do-files.

  • 1_datastep.do assembles the data.
  • 2_estimation estimates the model.
  • 3_simulation simulates election outcomes and derives win probabilities, etc.
  • 4_Qs.do computes the statistic Qs that drives campaigning.

Finally, the zip-file contains the data files used when estimating the model, including opinion poll data available October 1.