| aib_audit | R Documentation |
A convenience wrapper that runs the complete audit pipeline: 'aib_describe()', 'aib_transition()', 'aib_amplify()' and 'aib_decompose()'. Optionally runs 'aib_bootstrap()' for uncertainty quantification of every component.
aib_audit(
object,
ref_group = NULL,
bootstrap = FALSE,
B = 500,
seed = NULL,
verbose = TRUE,
...,
decompose = TRUE,
lag = c("scheduled", "recorded"),
min_cell = 10
)
object |
An 'aibias' object from [AIBias::aib_build()], OR a data frame (in which case '...' arguments are passed to [AIBias::aib_build()]). |
ref_group |
Character. Reference group. |
bootstrap |
Logical. Run bootstrap CIs? Default FALSE. |
B |
Integer. Bootstrap replicates if 'bootstrap = TRUE'. |
seed |
Integer. Random seed. |
verbose |
Logical. |
... |
If 'object' is a data frame, additional arguments passed to [AIBias::aib_build()]. |
decompose |
Logical. Run [AIBias::aib_decompose()]? Default TRUE. |
lag |
Character. Pairing rule for transitions and the amplification index; see [AIBias::aib_transition()]. |
min_cell |
Integer. Sparse-cell threshold passed to [AIBias::aib_decompose()]. |
A fully-populated 'aibias' object.
data(lending_panel)
result <- aib_audit(lending_panel,
id = "applicant_id",
time = "year",
group = "race",
decision = "approved",
ref_group = "White")
summary(result)
plot(result, type = "trajectory")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.