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_coefficients
A numeric vector of the estimated placebo coefficients,
abs_placebo_coefficients
a numeric vector with the absolute values of estimated placebo coefficients,
max_abs_coefficient
the maximum absolute estimated placebo coefficient,
bootstrap_critica_value
the by bootstrap found critical value for the equivalence test based on the maximum absolute placebo coefficient,
reject_null_hypothesis
a logical value indicating whether the null hypothesis of negligible pre-trend differences can be rejected at the specified significance level alpha
,
B
the number of bootstrap samples used to find the critical value,
significance_level
the chosen significance level of the test alpha
,
num_individuals
the number of cross-sectional individuals (n),
num_periods
the number of periods (T),
num_observations
the total number of observations (N),
base_period
the base period in the data,
placebo_names
the names corresponding to the placebo coefficients,
equiv_threshold_specified
a logical value indicating whether an equivalence threshold was specified.
is_panel_balanced
a 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")