Three diagnostic displays for a psave() fit:
"balance"a Love plot of covariate and prognostic-score balance before/after weighting, via
cobalt::love.plot()(dispatched throughbal.tab.psave(); cobalt is an Import, so always available)."distribution"the distribution of the propensity scores by treatment group: grey curves for the candidate models, a colored curve for the selected average (base graphics). Inspect this for extreme candidate scores.
"criterion"the selection criterion over the \(\lambda\) grid: exact for up to three candidates (a curve for M = 2, a colored grid map for M = 3); for M > 3, one profile per candidate (the minimum criterion value attainable at each value of \(\lambda_m\)). Requires the stored
path(keep.path = TRUEand a grid of at most 100,000 rows).
Arguments
- x
A
psaveobject.- type
One of
"balance"(default),"distribution","criterion".- ...
For
"balance", further arguments tocobalt::love.plot()(e.g.,thresholds = 0.1); otherwise further graphical parameters passed to the base plotting calls.
Value
For "balance", the ggplot object from cobalt::love.plot()
(invisibly, after printing); otherwise x, invisibly.