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

RR in tbl_regression header #788

Closed
zongell-star opened this issue Feb 16, 2021 · 3 comments
Closed

RR in tbl_regression header #788

zongell-star opened this issue Feb 16, 2021 · 3 comments

Comments

@zongell-star
Copy link

Hello,

I am running the tbl_regression for a gee model with a log link to obtain the relative risk.

The table header for relative risk states "exp(Beta)" - how can I change this to show "RR"?

gee2 <- geeglm(y ~ treatment + days_since_download + age + AUDIT_score_cat + treatment*days_since_download, id=ID, data=PO_final, family=binomial(link="log"), corstr="independence")

tbl_regression(gee2, exponentiate = TRUE)
Thanks.

@ddsjoberg
Copy link
Owner

hey @zongell-star , you can use the modify_header() function to change the column headers

@zongell-star
Copy link
Author

Thanks - found your tutorial, which made it clear

http://www.danieldsjoberg.com/gtsummary/reference/modify.html

@ddsjoberg
Copy link
Owner

Great, glad that page was helpful.

In the future, when you have questions about how to use the package, please post to stackoverflow.com, use the gtsummary tag, and I will be notified of your post.

Users search SO for help more often than GH. Thanks!

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