Function pb
offers Peters-Belson(PB) type of regression method which gets the disparity between a majority group
and a minority group based on various regression models.
pb(formula, group, data, family = "gaussian")
a formula for the model.
a vector within the data
which is used for separating majority and minority groups.
a data frame and data has to be included with the form of data.frame
.
a character indicating which model should be used. Details can be found later.
pb
returns an object of class "pb"
, which is a list containing
following components:
a matched call.
overall disparity between major and minor groups.
explained disparity between major and minor groups.
unexplained disparity between major and minor groups.
a majority group label.
a minority group label.