blr_prep_lorenz_data: Lorenz curve data

View source: R/blr-plots-data.R

blr_prep_lorenz_dataR Documentation

Lorenz curve data

Description

Data for generating Lorenz curve.

Usage

blr_prep_lorenz_data(model, data = NULL, test_data = FALSE)

Arguments

model

An object of class glm.

data

A tibble or data.frame.

test_data

Logical; TRUE if data is test data and FALSE if training data.

Examples

model <- glm(honcomp ~ female + read + science, data = hsb2,
             family = binomial(link = 'logit'))
data <- model$data
blr_prep_lorenz_data(model, data, FALSE)


rsquaredacademy/blorr documentation built on Nov. 12, 2024, 1:44 a.m.