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

[Question]: Is it possible to change label of arm_var in "tm_t_summary_by" shown on left sidebar panel? #1244

Open Mia-data opened 2 weeks ago

Mia-data commented 2 weeks ago

What is your question?

in tm_t_summary" arm_var is labelled in the left-sde panel as "Select Column(s) variable" which is great. However, arm_var parameter is tm_t_summary_by is labelled "Select Treatment Variable" which is may not be true for all available variables to be selected. Is is possible to customize label of arm_var in tm_t_summary_by that is shown in left sidebar panel?

and here attached picture what I mean arm_var name

Code of Conduct

Contribution Guidelines

Security Policy

llrs-roche commented 2 weeks ago

Hi Milena, looking at the help page it doesn't seem like it is customizable. Are you suggesting to change it to a more general one like "Select Variable" or would you like something like this for other data (this one has some particularities for clinical data from ADaM datasets)?

Mia-data commented 1 week ago

@llrs-roche Exactly, I'm suggesting to name it in tm_t_summary_by to sth more generalizable for example "Select Column Variable" - as it was already done for tm_t_summary. Because a variable used in columns to splitvariables not neccessairuly must be treatment arm, for example this module can be used to analyse data from one arm with columns by age group. (I know I can select multiple columns for splitting by for the sake of simplicity and interest I wanna narrow focus to one arm). Thus labeling column variable to sth more generalizable would be very helpful.

m7pr commented 1 week ago

@Melkiades any thoughts on this?

shajoezhu commented 1 week ago

hi @Mia-data , many thanks for the suggestion.

yes, I think we can just simply change it to "Select Column Variable" and making things consistent

Mia-data commented 1 week ago

@shajoezhu Great, thank you for your flexibility and openness for feedback :)