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

Refactor `sim_gs_n()` to improve interface and performance #196

Closed nanxstats closed 6 months ago

nanxstats commented 7 months ago

It would be great to leverage the functional programming patterns available in R, such as function factories, to avoid the explicit quoting and evaluation in the current implementation.

The goal is to enable users to use the established functions and extend them freely following a specification.

This also involves data.table rewrite for the current dplyr implementation.

This is a follow up to https://github.com/Merck/simtrial/pull/195.