# NOT RUN {
Titanic %>%
dplyr::as_tibble() %>%
dplyr::mutate(Survived = factor(Survived, c("No", "Yes"))) %>%
glm(
Survived ~ Class + Age * Sex,
data = ., weights = .$n,
family = binomial
) %>%
model_identify_variables()
iris %>%
lm(
Sepal.Length ~ poly(Sepal.Width, 2) + Species,
data = .,
contrasts = list(Species = contr.sum)
) %>%
model_identify_variables()
# }
Run the code above in your browser using DataLab