
Compare Treatment Effect Estimates Across Models
plot_coef_comparison.RdCreates a forest plot comparing point estimates and confidence intervals from multiple models or specifications. Useful for showing robustness of causal estimates across different identification strategies.
Usage
plot_coef_comparison(
models,
coef_name = NULL,
conf_level = 0.95,
title = "Treatment Effect Comparison",
xlab = "Estimate"
)Arguments
- models
A named list of model objects (from
lm,fixest::feols, etc.) or a data frame with columnsmodel,estimate,std_error.- coef_name
Character string. The name of the coefficient to extract from each model. Required when
modelsis a list of model objects.- conf_level
Numeric. Confidence level for intervals. Default is 0.95.
- title
Character string. Plot title. Default is
"Treatment Effect Comparison".- xlab
Character string. X-axis label. Default is
"Estimate".