regress(
diamonds,
rvar = "price", evar = c("carat", "clarity", "color", "x"),
int = c("carat:clarity", "clarity:color", "I(x^2)"), check = "standardize"
) %>%
write.coeff(sort = TRUE) %>%
format_df(dec = 3)
logistic(titanic, "survived", c("pclass", "sex"), lev = "Yes") %>%
write.coeff(intercept = FALSE, sort = TRUE) %>%
format_df(dec = 2)
Run the code above in your browser using DataLab