Skip to contents

Like tidy.etwfe() but for a TWFE-with-covariates fit. Has no selected column (twfeCovs is pure OLS and does no regularized selection). twfeCovs estimates one pooled effect per cohort, so the returned frame has the same G + 1 rows (overall ATT in row 1, then one row per cohort) as the sibling estimators.

Usage

# S3 method for class 'twfeCovs'
tidy(x, conf.int = TRUE, conf.level = 1 - x$alpha, ...)

Arguments

x

An object of class "twfeCovs" returned by twfeCovs().

conf.int

Logical; include CI columns.

conf.level

Numeric in (0, 1); defaults to 1 - x$alpha. Applies only to the overall-ATT row; the cohort rows pass through the fit-time catt_df bounds (reflecting the fit's ci_type) and are not recomputed at conf.level (#197). See tidy.fetwfe().

...

Unused.

Value

A data frame with G + 1 rows.

Examples

if (FALSE) { # \dontrun{
  res <- twfeCovsWithSimulatedData(
    simulateData(genCoefs(G = 3, T = 6, d = 2, density = 0.5, eff_size = 2),
                 N = 120, sig_eps_sq = 1, sig_eps_c_sq = 0.5, seed = 123)
  )
  broom::tidy(res)
} # }