QALY

Build Status AppVeyor build status Coverage status experimental

knitr::opts_chunk$set(
  comment = "#>",
  tidy = FALSE,
  error = FALSE,
  fig.width = 5,
  fig.height = 5)

A QALY is a QALY is a QALY

An R package for quality-adjusted life-years (QALY) calculation and manipulation.

Currently contains functions to:

To do

Request welcome; please use Issues

:warning: This package is in development so is not assured to work.

Installing QALY

To install the development version from github:

library(devtools)
install_github("Health-Economics-in-R/QALY")

Then, to load the package, use:

library(QALY)

Motivation

In cost-utility analyses arguably the most commonly used unit of health outcome is the QALY. There are others, most notably the diability-adjusted life-year (DALY). Calculation of QALYs consist of time and utility components. Time may be some predefined time horizon or an individual's excess life time. The utilities are health preference measures scaled between 0 and 1. These can be derived from such things as patient recorded outcome measures (PROMs), using surveys such as EuroQol-5D (EQ-5D) or the Short Form-36D/Short Form-6D (SF-6D). Co-morbidities, requiring some combining of utilities, may also be required.

QALY calculation in cost-effectiveness analyses is often done in an ad-hoc, project-by-project way. The aim of this package is to standardise these calculations and provide an easy-to-use suite of functions for the most common operations involving QALYs.

Basic example

suppressMessages(library(QALY))

Combined two co-morbidity utilities using the product approach:

HSUV_prod <- HSUV(method = "prod") 
tot_utility <- HSUV_prod(c(0.9, 0.8))

TODO use expected remaining life time...

Create a adjusted life-year type object which contains all the information needed to do subsequent operations:

personHealthYears <-
  person_health_years(
    start_year = 2016,
    end_year = 2020,
    age = 33,
    time_horizon = NA,
    utility = tot_utility,
    discount_rate = 0.035)

Calculate QALYS:

HRQoL_year <- total_QALYs(personHealthYears)
print(HRQoL_year)
summary(HRQoL_year)

Print a graph of the HRQoL over time: using ggplot2?

plot(HRQoL_year)

See package vignette for more details and examples.

License

GPL-3 ©



n8thangreen/QALY documentation built on Oct. 25, 2020, 10:07 p.m.