Skip to contents

Creates a histogram of first-stage F-statistics with weak instrument threshold.

Usage

plot_first_stage_f_dist(results_clean, config = NULL, weak_iv_pct = NULL)

Arguments

results_clean

Data.frame. Cleaned simulation results.

config

List. Optional. Configuration object (not currently used).

weak_iv_pct

Numeric. Percentage of simulations with weak instruments.

Value

A ggplot2 object.

Examples

if (FALSE) { # \dontrun{
config <- create_default_config()
seeds <- generate_all_seeds(config)
results <- run_main_simulation(config, seeds)
results_clean <- na.omit(results)
weak_iv_pct <- mean(results_clean$first_stage_F <
  .hetid_const("WEAK_INSTRUMENT_F_THRESHOLD")) * 100
p4 <- plot_first_stage_f_dist(results_clean, weak_iv_pct)
print(p4)
} # }