insightsengineering / teal.modules.clinical

Provides teal modules for the standard clinical trials outputs
https://insightsengineering.github.io/teal.modules.clinical/
Other
32 stars 17 forks source link

Cannot split the columns by two variables in tm_t_event_patyear #1202

Closed imazubi closed 4 months ago

imazubi commented 4 months ago

Feature description

There are some cases where we would like to split the columns by more than one variable when using tm_t_event_patyear module. Currently it is not possible, as I get the following error:

image

However the documentation says the following in tm_t_event_patyear:

image

Could we enhance the module so that the user can stratify the incidence table by two variables?

Thanks!

IZ

Code of Conduct

Contribution Guidelines

Security Policy

edelarua commented 4 months ago

@imazubi this feature is now in as of the latest dev version (0.9.1.9014).

If you want to try it out, you can install the development version directly from GitHub via the following code:

if (!require("remotes")) install.packages("remotes")
remotes::install_github("insightsengineering/teal.modules.clinical")
imazubi commented 3 months ago

Thanks @edelarua ! I tried and works fine