blr_prep_lorenz_data: Lorenz curve data

Description Usage Arguments Examples

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

Description

Data for generating Lorenz curve.

Usage

1
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

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

blorr documentation built on July 2, 2020, 2:15 a.m.