Merck / simtrial

Clinical trial simulation for time-to-event endpoints
https://merck.github.io/simtrial/
GNU General Public License v3.0
16 stars 8 forks source link

Define `one_rmst()` and `diff_rmst()` outside of `rmst_multiple()` #191

Closed nanxstats closed 7 months ago

nanxstats commented 7 months ago

one_rmst() and diff_rmst() are internal functions currently defined inline, within rmst_multiple().

Following engineering best practices, it is advisable to define them outside of rmst_multiple().

Similar to https://github.com/Merck/simtrial/issues/106.

The current implementation was added in https://github.com/Merck/simtrial/pull/188.