Plot ATE-style effect summaries
plot.causalmixgpd_ate.Rdplot.causalmixgpd_ate() visualizes objects returned by
ate, att, cate, and
ate_rmean. The type parameter controls the plot style.
When type is omitted, cate() objects default to
"effect":
"both"(default): Returns a list with bothtrt_control(treated vs control means) andtreatment_effect(ATE curve) plots"effect": ATE curve/points vs index/PS with pointwise CI error bars"arms": Treated mean vs control mean, with pointwise CI error bars
Arguments
- x
Object of class
causalmixgpd_ate.- y
Ignored.
- type
Character; plot type:
"both"(default): returns a list with both arm means and treatment-effect plots"effect": ATE curve/points with pointwise CI error bars"arms": treated vs control mean with pointwise CI error bars
- plotly
Logical; if
TRUE, convert theggplot2output to aplotly/htmlwidgetrepresentation via.wrap_plotly(). Defaults togetOption("CausalMixGPD.plotly", FALSE).- ...
Additional arguments passed to ggplot2 functions.
Value
A list of ggplot objects with elements trt_control and treatment_effect
(if type="both"), or a single ggplot object (if type is "effect" or
"arms").
Details
The effect panel visualizes the posterior summary of the treatment contrast on the mean scale, namely \(E(Y^1) - E(Y^0)\) or its conditional or treated-standardized analogue. The arms panel instead shows the treated and control mean predictions whose difference defines that contrast.
For cate() objects, the x-axis follows the prediction profiles; otherwise it
uses the estimated propensity score when available or a simple index order.
This keeps the comparison aligned with how the effect object was standardized.