Estimates the Transfer Entropy-informed Difference-in-Differences model
using panel data methods with two-way fixed effects.
Usage
estimate_tedid_model(
tedid_dataset,
formula = "IncomingFlow ~ EarlyAdopter * CrisisPeriod",
method = "plm",
robust = FALSE
)
Arguments
- tedid_dataset
data.frame prepared by prepare_tedid_dataset()
- formula
Character string or formula object for model specification
- method
Character string specifying estimation method ("plm" or "lm")
- robust
Logical indicating whether to use robust standard errors
Value
Model object (plm or lm) with estimation results
Examples
if (FALSE) { # \dontrun{
# Basic TE-DiD model
model1 <- estimate_tedid_model(tedid_dataset)
# Enhanced model with controls
model2 <- estimate_tedid_model(tedid_dataset,
formula = "IncomingFlow ~ EarlyAdopter * CrisisPeriod + AvgStringency")
} # }