person_health_years: Person health years object constructor

Description Usage Arguments Value See Also Examples

View source: R/person_health_years.R

Description

For use as input to the QALY (and DALY) functions. Want to provide set-up info in different ways but which gives us all the necessary information to go calc QALYs later. individual level data. Don’t need to supply all of these otherwise there would be redundancy and possible conflicts. E.g. time horizon can be got from start and end year. Need to calculate QoL which is discounting due to age from start to end year.

Usage

1
2
3
person_health_years(start_year = 0, end_year = NA, delay = 0,
  age = NA, time_horizon = NA, utility, discount_rate = 0.035,
  utility_method = "add")

Arguments

start_year

Calendar year to begin calculation

end_year

Calendar year to end calculation

delay

If the start_year is in the future then the first discounting is not 1 but smaller accordingly (positive integer) We could alternatively define year_now

age

Age at start of period (could be an age group)

time_horizon

Number of time periods from start to end date

utility

Proportion health detriment. This may change over time. Could provide as a list of length end-start or as say list(c(2,3), c(u1,u2)) like in WinBUGs data.

discount_rate

Fixed proportion reduction over time or a (continuous) function e.g. negative exponential

utility_method

Should the yearly QALYs be summed to a scalar? add or prod

Value

Object of class person_health_years

See Also

QALY, DALY

Examples

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

total_QALYs(personHealthYears)
## 2.913622

## Not run: 
 total_QALY(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.