Calculate Discounting Over the Model Run Time.

calc_discounting(discount = 1.035, duration = NULL)

Arguments

discount

Numeric, the discount that should be applied to the costs and QALYs. Defaults to 1.035.

duration

Numeric, how many long to run the model for.

Value

A vector of length duration.

Examples

calc_discounting(1.035, 10)
#> [1] 1.0000000 0.9661836 0.9335107 0.9019427 0.8714422 0.8419732 0.8135006 #> [8] 0.7859910 0.7594116 0.7337310