total_QALYs: Calculate Life-Time QALYs

Description Usage Arguments Value Examples

View source: R/total_QALYs.R

Description

Calculate Life-Time QALYs

Usage

1
2
3
4
5
6
7
total_QALYs(person_health_years)

## Default S3 method:
total_QALYs(person_health_years)

## S3 method for class 'person_health_years'
total_QALYs(person_health_years)

Arguments

person_health_years

Object of class person_health_years

Value

QALYs object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
personHealthYears <- person_health_years(
                      start_year = 2016,
                      end_year = 2020,
                      delay = 0,
                      age = NA,
                      time_horizon = NA,
                      utility = 0.9,
                      discount_rate = 0.035,
                      utility_method = "add")

total_QALYs(personHealthYears)
## 2.913622

## Not run: 
 total_QALYs(1)
 ## "Error: Not an person_health_years class input object."

## End(Not run)

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