reflected the factor thing as been added as new additon

This commit is contained in:
Tanushree Tunstall 2022-08-05 20:00:04 +01:00
parent fe9c3f8afe
commit 1a513913ce

View file

@ -7,8 +7,9 @@ lf_unpaired_stats <- function(lf_data
, lf_col_statvars = "param_type"
, my_paired = FALSE
, stat_adj = "none"){
# ADDED NEW
lf_data[[lf_stat_group]] = as.factor(lf_data[[lf_stat_group]])
stat_formula = as.formula(paste0(lf_stat_value, "~", lf_stat_group))
my_stat_df = compare_means(stat_formula