Closed donyunardi closed 1 year ago
Hello Team, need to report several findings:
the parameter only takes value of 1L which means user can only choose one numeric statictic. However, by default, multiple statistics are selected (n, mean_sd, median, range). Shouldn't numeric_stats parameter allows more than one statistic? https://github.com/insightsengineering/teal.modules.clinical/blob/e225371a7cc9c5eb27fad06798747a06f19862c7/R/tm_t_summary.R#L290
n
mean_sd
median
range
numeric_stats
The parameter is not being used in the module. This line hard-code the selected numeric statistic to be used in the shiny app. https://github.com/insightsengineering/teal.modules.clinical/blob/e225371a7cc9c5eb27fad06798747a06f19862c7/R/tm_t_summary.R#L374 No matter what I pass in numeric_stats, it always shows the default. Shouldn't this line use the numeric_stats parameter?
Per discussion with @kumamiao, tagging @shajoezhu
Closed by https://github.com/insightsengineering/teal.modules.clinical/pull/771
Hello Team, need to report several findings:
the parameter only takes value of 1L which means user can only choose one numeric statictic. However, by default, multiple statistics are selected (
n
,mean_sd
,median
,range
). Shouldn'tnumeric_stats
parameter allows more than one statistic? https://github.com/insightsengineering/teal.modules.clinical/blob/e225371a7cc9c5eb27fad06798747a06f19862c7/R/tm_t_summary.R#L290The parameter is not being used in the module. This line hard-code the selected numeric statistic to be used in the shiny app. https://github.com/insightsengineering/teal.modules.clinical/blob/e225371a7cc9c5eb27fad06798747a06f19862c7/R/tm_t_summary.R#L374 No matter what I pass in
numeric_stats
, it always shows the default. Shouldn't this line use thenumeric_stats
parameter?Per discussion with @kumamiao, tagging @shajoezhu