This is a supporting function of the maxEquivTest function. It calculates the placebo coefficients and the absolute value of the placebo coefficients. It then calculates the critical value by bootstrap if an equivalence threshold is supplied for the test, according to Dette & Schumann (2024).
maxTestBoot_func(
data,
equiv_threshold,
alpha,
n,
B,
no_periods,
base_period,
type,
original_names,
is_panel_balanced
)an object of class "maxEquivTestBoot" with
placebo_coefficientsA numeric vector of the estimated placebo coefficients,
abs_placebo_coefficientsa numeric vector with the absolute values of estimated placebo coefficients,
max_abs_coefficientthe maximum absolute estimated placebo coefficient,
bootstrap_critica_valuethe by bootstrap found critical value for the equivalence test based on the maximum absolute placebo coefficient,
reject_null_hypothesisa logical value indicating whether the null hypothesis of negligible pre-trend differences can be rejected at the specified significance level alpha,
Bthe number of bootstrap samples used to find the critical value,
significance_levelthe chosen significance level of the test alpha,
num_individualsthe number of cross-sectional individuals (n),
num_periodsthe number of periods (T),
num_observationsthe total number of observations (N),
base_periodthe base period in the data,
placebo_namesthe names corresponding to the placebo coefficients,
equiv_threshold_specifieda logical value indicating whether an equivalence threshold was specified.
is_panel_balanceda logical value indicating whether the panel data is balanced.
The data.frame object containing the data for the test. Should be of the form what is returned by the EquiTrends_dataconstr function.
The equivalence threshold for the test.
The significance level for the test.
The number of cross-sectional individuals in the data.
The number of bootstrap replications.
The number of periods in the data.
The base period for the test. Must be one of the unique periods in the data.
The type of bootstrap to be used. Must be one of "Boot" or "Wild".
The original names of the control variables in the data.
A logical value indicating whether the panel data is balanced.
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")