boot_optimization_function {EquiTrends} | R Documentation |
Finding the restricted placebo coefficients for the maximum equivalence test based on the bootstrap approaches
Description
boot_optimization_function
solves the optimization problem to find the restricted placebo coefficients, according to Dette & Schumann (2024).
Usage
boot_optimization_function(x, y, no_placebos, equiv_threshold, start_val)
Arguments
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. |
Value
A numeric vector containing the restricted placebo coefficients
References
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
[Package EquiTrends version 1.0.0 Index]