powered by
Data for generating Lorenz curve.
blr_prep_lorenz_data(model, data = NULL, test_data = FALSE)
An object of class glm.
glm
A tibble or data.frame.
tibble
data.frame
Logical; TRUE if data is test data and FALSE if training data.
TRUE
FALSE
# NOT RUN { model <- glm(honcomp ~ female + read + science, data = hsb2, family = binomial(link = 'logit')) data <- model$data blr_prep_lorenz_data(model, data, FALSE) # }
Run the code above in your browser using DataLab