Diagnostic plots for drlate fits
Arguments
- x
A fitted
drlate()object (withkeep_data = TRUE).- type
One of:
"overlap": histograms (or kernel densities, seegeom) of the estimated instrument propensity score by instrument arm, with thepstolerancebounds marked. Mass piling up near 0 or 1 signals overlap problems."balance": a love plot of standardized mean differences frombalance(), unweighted vs IPW-weighted, with the conventional |SMD| = 0.1 reference lines."balance_density": kernel densities of the covariates by instrument arm, raw versus IPW-weighted (the Statalatebalance densitydisplay). Weighting that balances a covariate brings the two arm densities together in the weighted panel."weights": distributions of the implied IPW weights by arm; a long right tail means a few observations dominate the estimate.
- bins
Number of histogram bins for
"overlap"and"weights".- geom
For
type = "overlap", either"histogram"(default) or"density"(a kernel-density overlap matching Statalateoverlap).- var
For
type = "balance_density", an optional character vector selecting covariates to plot; defaults to all model covariates.- ...
Currently unused.