Skip to contents

Convenience wrapper mirroring the *WithSimulatedData() pattern: fits fetwfe() on a "FETWFE_simulated" object (via fetwfeWithSimulatedData()) and returns debiasedATT() on the fit.

Usage

debiasedATTWithSimulatedData(simulated_obj, q = 0.5, alpha = NULL, ...)

Arguments

simulated_obj

An object of class "FETWFE_simulated" (from simulateData()).

q

Numeric; the L_q bridge penalty exponent. Must be < 1 (the debiased SE requires bridge selection). Defaults to 0.5.

alpha

Numeric in (0, 1) or NULL; confidence level 1 - alpha. Default NULL, inheriting the alpha stored on the fit.

...

Further arguments forwarded to fetwfeWithSimulatedData() (e.g. fusion_structure, lambda_selection, cv_seed).

Value

An object of class "debiased_att" (see debiasedATT()).

Examples

if (FALSE) { # \dontrun{
  coefs <- genCoefs(G = 3, T = 6, d = 2, density = 0.5, eff_size = 2, seed = 1)
  dat <- simulateData(coefs, N = 200, sig_eps_sq = 1, sig_eps_c_sq = 0.5, seed = 1)
  debiasedATTWithSimulatedData(dat)
} # }