summary_factorlist bringing up error

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

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.