Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: estimate_fun list of formulas in tbl_regression #2058

Open
MauKappel opened this issue Nov 6, 2024 · 1 comment
Open

Feature request: estimate_fun list of formulas in tbl_regression #2058

MauKappel opened this issue Nov 6, 2024 · 1 comment

Comments

@MauKappel
Copy link

Would it be possible for the estimate_fun in tbl_regression to take a list of formulas like the estimate_fun in add_difference instead of one function?

glm(response ~ age + grade, trial, family = binomial()) |>
    tbl_regression(exponentiate = TRUE,
                   estimate_fun = list(age ~ label_style_ratio(digits = 3)))

Thanks!

@ddsjoberg
Copy link
Owner

I will probably keep it as it is as to not introduce a breaking change in an argument that has been around for many many years. In case you're not already aware, you can get similar functionality with modify_fmt_fn(). But I'll keep this issue open for a while and consider it further.

https://www.danieldsjoberg.com/gtsummary/reference/modify_fmt_fun.html?q=modify_fmt#ref-usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants