Parallel to plot.fetwfe(). ETWFE does not perform selection, so all
points are uniformly styled (no selected = TRUE / FALSE encoding).
Arguments
- x
A fitted object from
fetwfe(),etwfe(), orbetwfe(). (twfeCovsis not currently supported – see GitHub issue #58 for the broader treatment oftwfeCovsclass methods.)- type
Character; either
"event_study"(default; event-time pooled coefficients fromeventStudy()) or"catt"(per-cohort ATTs fromresult$catt_df).- conf_int
Logical; if
TRUE(default), include confidence interval error bars.- alpha
Numeric; overrides the fit's alpha for CI computation.
NULL(default) uses the fit's alpha (so 95% CIs when the fit's alpha is 0.05). With the defaultNULL, both views show the fit'sci_typeband (simultaneous by default): the"catt"view reads the bounds stored incatt_df, and the"event_study"view re-derives them viaeventStudy()(which inherits the fit'sci_type). Asymmetry under an explicitalpha: for the"event_study"view, the explicit alpha is forwarded toeventStudy(), which re-runs the joint machinery and so still produces a simultaneous band at that alpha (when the fit'sci_typeis"simultaneous"); for the"catt"view, an explicit alpha recomputesci_low/ci_highfromestimate +/- qnorm(1 - alpha/2) * se, i.e. a pointwise band at that alpha (the stored simultaneous bounds are at the fit's alpha and are not re-derived at a new alpha for the catt view). To plot simultaneous catt bands at a different alpha, refit at that alpha or callsimultaneousCIs()directly.- ...
Currently unused; reserved for future arguments.
See also
plot.fetwfe() for the full documentation; eventStudy();
cohortStudy().
Examples
if (FALSE) { # \dontrun{
coefs <- genCoefs(G = 3, T = 6, d = 2, density = 0.5, eff_size = 2)
dat <- simulateData(coefs, N = 120, sig_eps_sq = 1, sig_eps_c_sq = 0.5, seed = 123)
res <- etwfeWithSimulatedData(dat)
if (requireNamespace("ggplot2", quietly = TRUE)) {
plot(res)
}
} # }