This function test \(H_{0,j}: Y_j \perp X\), for \(j=1,\dots,p\) using the block-multiplier bootstrap test of Olivares, Olma, and Wilhelm (2025).
Arguments
- dat
Data frame. There are two elements in the data frame, X and Y, where X is a random variable and Y corresponds with the \(Y_j\) in the individual hypothesis \(Y_j \perp X\).
- B
Numeric. The number of bootstrap samples.
- alpha
Numeric. The significance level.
- type
Character. This argument specifies whether and how the test statistic and the bootstrap statistic are studentized. Options are "bmb" (no studentization), "bmb1" (default option), and "bmb2" (alternative studentization). The types are formally described in Olivares, Olma, and Wilhelm (2025).
- seed
Numeric. The seed for the random number generator. If
NULL
, the seed is not set. If a positive integer, it sets the seed for reproducibility.
Value
An object of class "BMB_indep", a list containing the following components:
- type
Type. See description above
- T_obs
The value of the test statistic.
- n
Sample Size.
- p
Number of hypotheses.
- block_size
Block size used in the bootstrap.
- B
Number of bootstrap samples.
- cv
Bootstrap critical value corresponding to the test statistic.