Estimators

DiffinDiffsBase.DefaultDIDType
DefaultDID <: DiffinDiffsEstimator

Default difference-in-differences estimator selected based on the context.

InteractionWeightedDIDs.RegressionBasedDIDType
RegressionBasedDID <: DiffinDiffsEstimator

Estimation procedure for regression-based difference-in-differences.

A StatsSpec for this procedure accepts the following arguments:

KeyType restrictionDefault valueDescription
dataA Tables.jl-compatible data table
trDynamicTreatment{SharpDesign}Treatment specification
prTrendOrUnspecifiedPR{Unconditional,Exact}Parallel trend assumption
ytermAbstractTermA term for outcome variable
treatnameSymbolColumn name for the variable representing treatment time
subsetUnion{BitVector,Nothing}nothingRows from data to be used for estimation
weightnameUnion{Symbol,Nothing}nothingColumn name of the sample weight variable
vceVcov.CovarianceEstimatorVcov.CovarianceEstimatorVariance-covariance estimator
treatinttermsTermSetTermSet()Terms interacted with the treatment indicators
xtermsTermSetTermSet()Terms for covariates and fixed effects
contrastsUnion{Dict{Symbol,Any},Nothing}nothingContrast coding to be processed by StatsModels.jl
drop_singletonsBooltrueDrop singleton observations for fixed effects
nfethreadsIntThreads.nthreads()Number of threads to be used for solving fixed effects
fetolFloat641e-8Tolerance level for the fixed effect solver
femaxiterInt10000Maximum number of iterations allowed for the fixed effect solver
cohortinteractedBooltrueInteract treatment indicators by treatment time
solvelsweightsBoolfalseSolve the cell-level least-square weights with default cell partition
lswtnamesIterable of Symbolstuple()Column names from treatcells defining the cell partition used for solving least-square weights