htasurv: a Stata module for performing survival analysis in economic evaluations

Jan 2, 2017

Written by David Trueman, Director

htasurv is an open source Stata module for assessing alternative parametric distributions when extrapolating survival data for use in health economic models. The function distfind loops through alternative distributions (specified by the user) and reports statistics and produces plots specified in NICE DSU TSD 14.0. The function distanalysis writes out results and useful statistics (e.g. the variance-covariance matrix) for the analyst. The module can be installed directly from github, using the github module. Once the github module is installed, installation of htasurv is:

github install sourceHEOR/htasurv

Syntax
For distfind:

distfind [varlist], dlist(string) timevar(varname) failure(varname) [GRaphs]

Where varlist are the variables in the survival model (often treatment), timevar is the variable defining the time-to-event, and failure is a binary variable for failure vs censoring (1=failure, 0=censored). If the graphs option is used, plots will be saved to curentdirectory/graphs. dlist is the list of distributions to estimate as lowercase strings (see example below). For distanalysis:

distanalysis [varlist], sdist(string) doctitle(string) [caption(string)] [fname(string)]

distanalysis will estimate the model with variables given in varlist with distribution given in sdist (full title; all lowercase). The resulting model will be written to .csv and .rtf files with file names given by doctitle. If a folder location is specified by fname, all files will be stored there (otherwise, the current directory is used).

Example use

sysuse cancer.dta, clear

global dlist “gamma weibull gompertz exponential lognormal loglogistic”

distfind age i.drug, dlist($dlist) timevar(studytime) failure(died)

distanalysis age i.drug, sdist(gompertz) doctitle(test) caption(“Gompertz”)

The software can be downloaded here. This software is released under the GNU General Public License version 3.


More Insights

Quality assessment in single-arm trials: insights for systematic reviews

Quality assessment in single-arm trials: insights for systematic reviews

Written by Hannah Shapiro   Quality assessment in single-arm trials Quality assessment is a vital aspect of conducting a thorough systematic literature review (SLR), as the validity of the conclusions of the review depends on the ... Read more

A ‘NICE’ Innovation: The Proportionate Approach

A ‘NICE’ Innovation: The Proportionate Approach

Written by Kiera Lander, Assistant Project Manager   The National Institute for Health and Care Excellence (NICE) has long been at the forefront of health technology assessment (HTA), ensuring that patients have access to innovative, ... Read more

Out of the frying pan and into the fire: Moving to a market access consultancy company

Out of the frying pan and into the fire: Moving to a market access consultancy company

Written by Brian O'Toole, HTA Writing Lead   Last year I changed jobs. It was a major life decision that took time to make as it meant leaving the comfort and familiarity of academia for the hustle and bustle of a market access ... Read more

AI-enabled triage in the NHS: an economic analysis

AI-enabled triage in the NHS: an economic analysis

Written by Mark Pennington, Consultant Health Economist   With the UK’s National Health Service (NHS) facing an unprecedented patient demand for healthcare, there is increasing interest in artificial intelligence (AI) and how it can ... Read more