HEDG - Health Econometrics and Data Group

Software and Data Resources

This page provides links to programs that have been prepared by members of HEDG. These programs are supplied as is and have not been externally validated. They should be used at the user's own risk. No user support will be provided.

This file contains the Stata code used in A.M.Jones (2007) Applied Econometrics for Health Economists, 2nd Edition, Oxford: Radcliffe Medical Publishing (ISBN: 1 84619 171 8). [AEE.do ( 12kb download)

The following files contain the Stata code used in A.M. Jones, N. Rice, T. Bago d'Uva and S. Balia (2012) Applied Health Economics, Routledge. 

The subsets of data from the British Household Panel Survey (BHPS) and Health and Lifestyle Survey (HALS) that are used in the book are available in the 'dta' files. Anyone wishing to make use of these datasets should register at the ESDS pages: BHPSHALS.

Further information about the BHPS can be found at the ISER web page.

The topics covered in the second edition (2012) are:

Describing the dynamics of health AHE_2ed_Ch_2.do ( 7kb download) AHE_2ed_Ch_2.dta ( 10,440kb download)
Describing health care costs and cost regressions AHE_2ed_Ch_3&12.do ( 13kb download) AHE_2ed_Ch_3.dta ( 700kb download)
Repairing heterogeneity in health AHE_2ed_Ch_4.do ( 17kb download) gop do file.do ( 1kb download) hopit do file.do ( 2kb download)
Health and lifestyles AHE_2ed_Ch_5.do ( 8kb download) APE_probit.do ( 3kb download) APE_mvprobit.do ( 4kb download) AHE_2ed_Ch_5.dta ( 444kb download)
Smoking and mortality AHE_2ed_Ch_6.do ( 17kb download) AHE_2ed_Ch_6.dta ( 408kb download)
Health and retirement AHE_2ed_Ch_7.do ( 4kb download) AHE_2ed_Ch_7.dta ( 8,267kb download)
Health and wages AHE_2ed_Ch_8.do ( 2kb download) hausman_alt.do ( 1kb download) AHE_2ed_Ch_8.dta ( 3,332kb download)
Modelling the dynamics of health AHE_2ed_Ch_9.do ( 9kb download) AHE_2ed_Ch_2.dta ( 10,440kb download)
Non-response and attrition bias AHE_2ed_Ch_10.do ( 8kb download) AHE_2ed_Ch_2.dta ( 10,440kb download)
Models for count data AHE_2ed_Ch_11.do ( 20kb download) lcnb_pan do file.do ( 1kb download) lchurdle_pan do file.do ( 2kb download)

The topics covered in the first edition (2007) are:

Data description and graphical analysis AHE_Chap_02.do ( 7kb download) bhps.dta ( 9,153kb download)
Distributional analysis and categorical responses AHE_Chap_03.do ( 8kb download)
Reporting bias and HOPIT AHE_Chap_04.do ( 12kb download)
Multivariate probits AHE_Chap_05.do ( 13kb download) HALS_APPHEC_mvp.dta ( 226kb download)
Continuous time duration models AHE_Chap_06.do ( 8kb download) hals_duration.dta ( 407kb download)
Discrete time duration models AHE_Chap_07.do ( 3kb download) H&R_application.dta ( 8,257kb download)
Linear panel data models AHE_Chap_08.do ( 2kb download) wageest.dta ( 3,349kb download)
Nonlinear panel data models and attrition AHE_Chap_09-10.do ( 8kb download)
Count data and latent class models AHE_Chap_11.do ( 18kb download)

Methods for estimating the distribution of health care costs

The do-file newmethcosts.do ( 17kb download) presents code for estimating flexible parametric models and generating values of conditional means and tail probabilities. These models were used as part of work contained in the following three papers:

Jones AM, Lomas J, Rice N. Healthcare cost regressions: going beyond the mean to estimate the full distribution. Health Economics 2015;24(9):1192-1212. http://onlinelibrary.wiley.com/doi/10.1002/hec.3178/abstract

Jones AM, Lomas J, Rice N. Applying beta-type size distributions to healthcare cost regressions. Journal of Applied Econometrics 2014;29(4):649-670. http://onlinelibrary.wiley.com/doi/10.1002/jae.2334/abstract

Jones AM, Lomas J, Moore P, Rice N. A quasi-Monte Carlo comparison of developments in parametric and semi-parametric regression methods for heavy tailed and non-normal data: with an application to healthcare costs. Health Econometrics and Data Group (HEDG), University of York 2013;working paper 13/30. (forthcoming in JRRSA) http://www.york.ac.uk/media/economics/documents/hedg/workingpapers/13_30.pdf