chjackson / survextrap

Survival Extrapolation With a Flexible Parametric Model and External Data
https://chjackson.github.io/survextrap/
GNU General Public License v3.0
7 stars 3 forks source link

Discounting RMST using an exponential discounting function #12

Closed mikesweeting closed 3 months ago

mikesweeting commented 3 months ago

Hi Chris,

We're interested in calculating discounted RMST for health economic analyses, so I've taken the liberty of trying to implement this within your survextrap rmst() and irmst() functions.

It needs checking, but I believe it is doing the right thing. I haven't written any test function for it yet but have updated the documentation.

If you think this is useful, it could perhaps also be incorporated into flexsurv?

chjackson commented 3 months ago

Thanks folks, this looks good! I've: