Assorted Collection of Stata ado files, especially for Discrete Choice Models, with disaggregated or aggregated data:
For dissagregate data
asclogit (Stata main code for Discrete Choice Models)
- asclogsum creates a variable -- equal for all alternatives of a given individual -- with the logsum
- El_asclogt creates a matrix of own price and cross price elasticities across alternatives -- average across individuals
mixlogit (Stata main code for Discrete Choice Models with RC -- by Arne Hole)
- mixlogsum creates a variable -- equal for all alternatives of a given individual -- with the logsum
- El_mixlogit creates a matrix of own price and cross price elasticities across alternatives -- average across individuals
For aggregate data
- ElastNL creates a matrix of own price elasticities across alternatives for a single level nested logit
- logsumNL Creates a variable -- equal for all markets -- with the logsum for a single level nested logit
Other Stuff
- BReiss.ado and BReiss_Pred.ado -- codes for estimating the Bresnahan and Reiss (1991, JPE) model of entry.
- coef_change.ado -- code for changing an element in a coefficient vector -- usually stored in e(b).
- Geolocation_HERE.do -- example for getting the HERE location service to get latitude and longitude -- you need to get appid and appcode with the HERE service, though
Do-files for estimating a Discrete Choice model with Disaggregated data for São Paulo city using the 2007 Origin-Destination Survey.
Please cite:
Lucinda, C., Moita, R., Meyer, L. and Ledo, B. (2017) "The Economics of Sub-Optimal Policies for Traffic Congestion" - Journal of Transport Economics and Policy, forthcoming.