This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Initial exercise E0 Charles S. Bos July 23, 2009 1 Introduction In mid-August you will be following the course on Advanced Programming in Quantita- tive Economics . In order to get a bit of a headstart, you’ll find attached a first complete program, written in the Ox Doornik (2006) programming language. During the course, we will study the concepts in detail. In order to streamline the discussions, you are asked to prepare for yourself. 2 Preparation Section 3 contains the listing of the program. Read this program through, don’t use a computer at all at this stage (maybe use a pocket calculator if you really want to). Ask yourself e.g. the following questions: 1. Where would execution of the program start? 2. What lines are comments, which are code? 3. What is the system in the naming of the variables? 4. After line 171, the value of mC is mC = 10- 7- 4 28- 7 59 18- 145- 4 18 58 56 What would its value be after line 176? And what would be the value of vX in the end? 5. Matrices are indexed throughout the program. How does this work? Where does the index start? 6. The program prints some final solution. In standard econometrics, what is the problem that is solved? What would you have written on line 5? 1 7. This same program could have been written in some 40 lines of code (of which roughly half initialisation of vY and mX ). What would be possible advantages of the present, rather extensive program, using 185 lines instead?present, rather extensive program, using 185 lines instead?...
View Full Document