You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beta regression have something similar with zero-inflated Poisson models, there are multi-components models, as you model both the mean and phi, each could have their own coefficients. Here, (phi) is properly interpreted as an intercept, but this is the intercept of another component.
I will therefore explore it and include betareg support in #233. Next week I'll be on leave but will explore it later after the 12 of August.
Hi guys, beta regression can't be processed with tbl_regression(). Would be nice if it worked:
d <- mtcars %>%
mutate(mpg = mpg/100,
cyl = factor(cyl))
library(betareg)
m <- betareg(mpg ~ cyl, data = d)
plot_model(m, type = "pred")
library(emmeans)
emmeans(m, pairwise ~ cyl, type = "response")
library(gtsummary)
tbl_regression(m, add_pairwise_contrasts = T)
The error message on my computer is:
Error in
dplyr::left_join()
:! Join columns in
x
must be present in thedata.
✖ Problem with
variable
.Backtrace:
Thanks upfront! Love gtsummary!!!
The text was updated successfully, but these errors were encountered: