Computes discount weights for a sequence of cycles given a discount rate expressed per annum and the length of each cycle. These weights can be multiplied by costs or QALYs to obtain discounted values.
Arguments
- discount_rate
Annual discount rate expressed as a fraction (e.g. 0.03).
- num_cycles
Integer giving the number of cycles to simulate.
- cycle_length
Numeric. Length of each cycle in years. Defaults to 1.
- assert
Logical. Boolean for whether to run full assertion of inputs. This feature is useful when running probabilistic sensitivity analysis (PSA).