Internal function to visualize the agreement between human decisions and AI recommendations using a difference-in-means estimator of an indicator \(1\{D_i = A_i\}\).
vis_agreement(
df,
p.title = NULL,
p.lb = -0.2,
p.ub = 0.2,
y.lab = "Impact of PSA"
)A ggplot object.
A data frame generated by compute_stats_agreement and reshaped.
A title for the plot (character). Default NULL.
A lower bound for the y-axis (numeric). Default -0.2.
An upper bound for the y-axis (numeric). Default 0.2.
A label for the y-axis (character). Default "Impact of PSA".