The data used in the paper "The Opportunity Costs of Mandatory Military Service: Evidence from a Draft Lottery" are drawn from Danish administrative registers and are confidential. However, our access is not unique and others can gain similar access by following a procedure described by Statistics Denmark at 
http://www.dst.dk/en/TilSalg/Forskningsservice.aspx.
Researchers need to submit a written application to Statistics Denmark. The application should include a detailed research proposal describing the goals and methods of the project, a detailed list of variables, and the selection criteria to be used. Once received, applications must be approved by the Danish Data Protection Agency in order to ensure that data are processed in a manner that protects the confidentiality of registered individuals. Conditional on this approval, Statistics Denmark will then determine which data one may obtain in accordance with the research plan. All processing of individual data takes place on servers located at Statistics Denmark via secure remote terminal access.

For the analysis we used Stata 14 and ran the following three do files:
1. opp-cost-data-build-2.do.txt - to build the estimation dataset
2. opp-cost-tables-2.do.txt - to produce the tables in the paper
3. opp-cost-figures-2.do.txt - to produce the figures in the paper
