pb {vcPB} | R Documentation |
Peters-Belson Disparity Analysis
Description
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.
Usage
pb(formula, group, data, family = "gaussian")
Arguments
formula |
a formula for the model. |
group |
a vector within the |
data |
a data frame and data has to be included with the form of |
family |
a character indicating which model should be used. Details can be found later. |
Value
pb
returns an object of class "pb"
, which is a list containing
following components:
call |
a matched call. |
overall_disparity |
overall disparity between major and minor groups. |
explained_disparity |
explained disparity between major and minor groups. |
unexplained_disparity |
unexplained disparity between major and minor groups. |
major |
a majority group label. |
minor |
a minority group label. |
[Package vcPB version 1.1.1 Index]