Learn R Programming

EquiTrends (version 1.0.0)

boot_optimization_function: 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)

Value

A numeric vector containing the restricted placebo coefficients

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.

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: tools:::Rd_expr_doi("10.1080/07350015.2024.2308121")