aihuman1.0.1 package

Experimental Evaluation of Algorithm-Assisted Human Decision-Making

A_llama

Llama3 Recommendations (internal)

AiEvalmcmc

Gibbs sampler for the main analysis

aihuman-package

tools:::Rd_package_title("aihuman")

APCEsummary

Summary of APCE

APCEsummaryipw

Summary of APCE for frequentist analysis

BootstrapAPCEipw

Bootstrap for estimating variance of APCE

BootstrapAPCEipwRE

Bootstrap for estimating variance of APCE with random effects

BootstrapAPCEipwREparallel

Bootstrap for estimating variance of APCE with random effects

CalAPCE

Calculate APCE

CalAPCEipw

Compute APCE using frequentist analysis

CalAPCEipwRE

Compute APCE using frequentist analysis with random effects

CalAPCEparallel

Calculate APCE using parallel computing

CalDelta

Calculate the delta given the principal stratum

CalDIM

Calculate diff-in-means estimates

CalDIMsubgroup

Calculate diff-in-means estimates

CalFairness

Calculate the principal fairness

CalOptimalDecision

Calculate optimal decision & utility

CalPS

Calculate the proportion of principal strata (R)

compute_bounds_aipw

Compute Risk (AI v. Human)

compute_nuisance_functions_ai

Fit outcome/decision and propensity score models conditioning on the A...

compute_nuisance_functions

Fit outcome/decision and propensity score models

compute_stats_agreement

Agreement of Human and AI Decision Makers

compute_stats_aipw

Compute Risk (Human+AI v. Human)

compute_stats_subgroup

Compute Risk (Human+AI v. Human) for a Subgroup Defined by AI Recommen...

compute_stats

Compute Risk (Human+AI v. Human)

crossfit

Crossfitting for nuisance functions

g_legend

Pulling ggplot legend

nca_follow_policy_dec

NCA follow policy (internal; decreasing monotonicity)

nca_follow_policy

NCA follow policy (internal; increasing monotonicity)

nca_provide_policy_dec

NCA provide policy (internal; decreasing monotonicity)

nca_provide_policy

NCA provide policy (internal; increasing monotonicity)

nuis_func_ai

Nuisance functions conditioning on AI (internal)

nuis_func

Nuisance functions (internal)

plot_agreement

Visualize Agreement

plot_diff_ai_aipw

Visualize Difference in Risk (AI v. Human)

plot_diff_human_aipw

Visualize Difference in Risk (Human+AI v. Human)

plot_diff_human

Visualize Difference in Risk (Human+AI v. Human)

plot_diff_subgroup

Visualize Difference in Risk (Human+AI v. Human) for a Subgroup Define...

plot_preference

Visualize Preference

PlotAPCE

Plot APCE

PlotDIMdecisions

Plot diff-in-means estimates

PlotDIMoutcomes

Plot diff-in-means estimates

PlotFairness

Plot the principal fairness

PlotOptimalDecision

Plot optimal decision

PlotPS

Plot the proportion of principal strata (R)

PlotSpilloverCRT

Plot conditional randomization test

PlotSpilloverCRTpower

Plot power analysis of conditional randomization test

PlotStackedBar

Stacked barplot for the distribution of the decision given psa

PlotStackedBarDMF

Stacked barplot for the distribution of the decision given DMF recomme...

PlotUtilityDiff

Plot utility difference

PlotUtilityDiffCI

Plot utility difference with 95% confidence interval

SpilloverCRT

Conduct conditional randomization test

SpilloverCRTpower

Conduct power analysis of conditional randomization test

table_agreement

Table of Agreement

TestMonotonicity

Test monotonicity

TestMonotonicityRE

Test monotonicity with random effects

vis_agreement

Visualize Agreement (internal)

vis_diff_ai

Visualize Risk (AI v. Human; internal)

vis_diff_human

Visualize Risk (Human+AI v. Human; internal)

vis_diff_subgroup

Visualize Risk (Human+AI v. Human; internal)

vis_preference

Visualize Preference (internal)

Provides statistical methods for analyzing experimental evaluation of the causal impacts of algorithmic recommendations on human decisions developed by Imai, Jiang, Greiner, Halen, and Shin (2023) <doi:10.1093/jrsssa/qnad010> and Ben-Michael, Greiner, Huang, Imai, Jiang, and Shin (2024) <doi:10.48550/arXiv.2403.12108>. The data used for this paper, and made available here, are interim, based on only half of the observations in the study and (for those observations) only half of the study follow-up period. We use them only to illustrate methods, not to draw substantive conclusions.

  • Maintainer: Sooahn Shin
  • License: GPL (>= 2)
  • Last published: 2025-05-07