boot_optimization_function {EquiTrends} | R Documentation |
boot_optimization_function
solves the optimization problem to find the restricted placebo coefficients, according to Dette & Schumann (2024).
boot_optimization_function(x, y, no_placebos, equiv_threshold, start_val)
x |
The double demeaned independent variables. |
y |
The double demeaned dependent variable. |
no_placebos |
The number of placebo coefficients. |
equiv_threshold |
The equivalence threshold for the test. |
start_val |
The starting values for the optimization. |
A numeric vector containing the restricted placebo coefficients
Dette, H., & Schumann, M. (2024). "Testing for Equivalence of Pre-Trends in Difference-in-Differences Estimation." Journal of Business & Economic Statistics, 1–13. DOI: doi:10.1080/07350015.2024.2308121