Economics 8747: Numerical Assignment #2 |
Fall 2003 | |
| Contact: Collin Starkweather | Economics Department | |
| Phone: (303) 492-4784 (do not leave messages) | University of Colorado | |
| E-mail: | Boulder, CO 80309-0256 |
ResourcesAn online introduction to Gauss. Gauss 5.0 Quick Start Guide Gauss 5.0 User's Guide Gauss 5.0 Language Reference
Numerical Assignment #1Web page Zip file
Numerical Assignment #2The Gauss data file New: The Solution |
Getting StartedYou may first want to download the zip file containing the first assignment for your records. As with the first numerical assignment, there is a bug in one of the header files for the maximum likelihood libraries in Gauss 5.0 in the computer labs. So the first thing you should do is create a working directory for yourself. I called mine D:\collin. Place the file MAXLIK.DEC in your working directory. This file is a corrected version of the buggy header file. Now open Gauss by selecting Start | Programs | Gauss 5.0 | Gauss 5.0. In the Gauss command window, issue the command chdir to change Gauss' working directory to your working directory: >> chdir "D:\collin";You are now ready to proceed.
The DataThe data file logit.dat contains 224 observations taken from consumer choices of automobiles.
Each observation consists of the following 21 columns. The columns are given names for reference.
The model must accomodate the following assumptions:
There are three parts to this numerical assignment.
Part 0: Fixed Coefficients Logit Maximum Likelihood EstimationIn the first assignment, you must estimate the coefficients of each of the six alternatives using a standard logit model with fixed coefficients. The data munging will likely be the most difficult conceptual problem associated with this part of the assignment. Comment on the parameter estimates.
Part 1: Fixed Coefficients Nested Logit Maximum Likelihood EstimationIn the second, you must assume a nested decision structure in which the first three alternatives, associated with the standard options package, are included in one nest and the remaining three alternatives, associated with the deluxe options package, are included in the other. Again, assume fixed coefficients. Use a variable named (let's call it lambda for now) to represent the degree of independence in unobserved utility among the alternatives (see Train pp. 83-84) in each nest. Comment on the differences between the results you received with and without nesting. Also comment on the value of lambda. Hint: Try using the parameter estimates you obtained in the nonnested estimation as initial values for the nested estimation. Part 2: Random Coefficients Logit Maximum Likelihood EstimationFinally, you must estimate the coefficient on the cost of the basic options package assuming a random coefficient. Assume the coefficient is distributed normally. Use 100 draws for each observation (see Train pp. 148-149). Comment on your estimate of the variance of the random coefficient. Hint: Choose one of the coefficients with a high t-statistic. |