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

Bug in add_difference() emmeans due to argument name change in the pkg #1205

Closed
ddsjoberg opened this issue Apr 20, 2022 · 0 comments · Fixed by #1207
Closed

Bug in add_difference() emmeans due to argument name change in the pkg #1205

ddsjoberg opened this issue Apr 20, 2022 · 0 comments · Fixed by #1207
Milestone

Comments

@ddsjoberg
Copy link
Owner

  1. Need to update transform= to regrid=
  2. add a unit test
  3. bump the min version required for emmeans
tt <-
  trial %>%
  select(death, response, trt) %>%
  tbl_summary(
    by=response,
    include = -trt
  ) 

tt %>%
  add_difference(
    adj.vars = trt,
    test = everything()~"emmeans"
  )


mod <- glm(as.factor(death) ~ response_copy + trt, 
           data = trial %>% rename(response_copy = response), 
           family = stats::binomial)
emmeans::emmeans(mod, specs = ~ response_copy, regrid = "response")
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

Successfully merging a pull request may close this issue.

1 participant