Hi there,
I'm trying to make a summary table with finalfit
. My df (here called df) contains one row per person with columns as variables.
The following code:
dependent <- "age_group"
explanatory <- c("deprivation_group", "disease_a_binary", "disease_b_binary")
df %>%
summary_factorlist(dependent, explanatory, total_col = TRUE, na_include = TRUE, p = TRUE, add_col_totals = TRUE) %>%
as_tibble() -> table 1
Gives the following error message:
"Error in summary_factorlist(., dependent, explanatory, total_col = TRUE, :
unused argument (add_col_totals = TRUE)
Any ideas what I am doing wrong?
Many thanks