Skip to contents

Key functions and datasets

dynpv()
Present values with dynamic pricing and dynamic uptake
futurepv()
Calculate present value for a payoff in a single cohort with dynamic pricing across multiple timepoints
oncpsm
Heemod cost-effectiveness model example

Methods to apply to dynpv S3 objects

`+`(<dynpv>)
Method to add two dynpv objects together
`-`(<dynpv>)
Method to subtract one dynpv object from another
mean(<dynpv>)
Mean present value per uptaking patient
ncoh()
Number of cohorts of uptaking patients
ntimes()
Number of times at which present value calculations are performed
sum_by_coh()
Present value for each uptake cohort and calculation time
summary(<dynpv>)
Summarize a dynpv object
total()
Total present value
uptake()
Total number of uptaking patients

Helper functions

addprod()
Method to add two dynpv objects together
get_dynfields()
Helper function to get a tibble of the relevant fields from heemod output
get_param_value()
Obtain parameter value(s) from a heemod output
trim_vec()
Trim the tailing zeroes from a long vector