If you use the Gauss code below (in part or in the whole), please acknowledge so in your work and cite the paper listed above as well as the following papers:
Bhat, C.R. (2008), "The Multiple Discrete-Continuous Extreme Value (MDCEV) Model: Role of Utility Function Parameters, Identification Considerations, and Model Extensions," Transportation Research Part B, 42(3), 274-303.
Bhat, C.R. (2005), "A Multiple Discrete-Continuous Extreme Value Model: Formulation and Application to Discretionary Time-Use Decisions," Transportation Research Part B, 39(8), 679-707.