# NOT RUN {
data(airquality)
est = feols(Ozone ~ Solar.R + Wind + poly(Temp, 3), airquality)
# Testing the joint nullity of the Temp polynomial
wald(est, "poly")
# Same but with clustered SEs
wald(est, "poly", cluster = "Month")
# Now: all vars but the polynomial and the intercept
wald(est, drop = "Inte|poly")
#
# Toy example: testing pre-trends
#
data(base_did)
est_did = feols(y ~ x1 + i(treat, period, 5) | id + period, base_did)
# The graph of the coefficients
coefplot(est_did)
# The pre-trend test
wald(est_did, "period::[1234]$")
# If "period::[1234]$" looks weird to you, check out
# regular expressions: e.g. see ?regex.
# Learn it, you won't regret it!
# }
Run the code above in your browser using DataLab